473,503 Members | 1,609 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

is there such a Cancel() method for FormView or ObjectDataSource?

hi everybody there,

i want to cancel inserting records on specific circumstance based on a
validation using ObjectDataSource's Inserting event. but need a
Cancel() method to rollback record insertion. is there any way?

i'm using datasets(xsd) and my final goal is to prevent some aspnet
users from inserting, updating and deleting records from specific
tables.

thanks in advance
afshar

Apr 25 '07 #1
1 1520
On Apr 25, 10:32 am, Afshar <afshar.mohe...@gmail.comwrote:
hi everybody there,

i want to cancel inserting records on specific circumstance based on a
validation using ObjectDataSource's Inserting event. but need a
Cancel() method to rollback record insertion. is there any way?

i'm using datasets(xsd) and my final goal is to prevent some aspnet
users from inserting, updating and deleting records from specific
tables.

thanks in advanceafshar


found it myself,
the e parameter passed to all events has a Cancel property that must
set to false in order to cancel operation.

Apr 30 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
2169
by: Jurgen Appelo | last post by:
I'm at a loss here... My FormView control automatically performs a databind at each postback on the server. But in some cases I don't want this to happen. Like when the business layer decides that...
2
6604
by: hooterbite | last post by:
I am using an object datasource to call a stored procedure to update an SQL table. THE STORED PROCEDURE WORKS FINE! THE OBJECTDATASOURCE WORKS FINE! When the textbox is inside a standard HTML tag...
5
1445
by: Dot Net Daddy | last post by:
Hello, I have an objectDateSource. But sometime there might not be any data for my application. So how can I know if the objectDataSource has no data? I binded a dropdownlist to this...
0
1256
by: kidders | last post by:
I have an business object bound to a formview with through an object datasource, in edit mode when i click update i receive the following error: The 'ActionID' property on the type specified by...
0
263
by: Afshar | last post by:
hi everyone there, i am checking a specific circumstance in Inserting event of FormView or ObjectDataSource controld and wants to be able to cancel inserting based upon my validation. but don't...
0
1313
by: m.bagattini | last post by:
Hello folks, I'll try to be as much clear as I can. This is my issue: Asp.NET 2.0 page w/ FormView (later: FW), an ObjectDataSource (ODS). It works with my Business logic layer, where I have...
3
8083
by: KaOne | last post by:
Hi All, excuse me in advance for my not very perfect english. I need some help about a problem with a FormView bounded to an ObjectDataSource. In practise I have an ObjectDataSource that uses some...
0
1829
by: TarTar | last post by:
Hello, I have the following code on my ASP.NET page: <asp:DataList ID="CustomersList" DataSourceID="CustomerDataSource" runat="server"> <ItemTemplate> Name: <asp:Label id="lblName" Text='<%#...
4
4673
by: TarTar | last post by:
Hello, I have already posted this problem, but I have not received any response yet. I will try to describe it again. We have a list control (e.g. DataList) and an ObjectDataSource on an...
0
1082
by: jphaycock | last post by:
I have a formview that uses an objectdatasource to insert and update records. I don't want to use the objectdatasource's "Delete" method so I have defined this method as "none" in the "configure...
0
7086
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7332
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6991
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4673
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
736
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.