473,508 Members | 2,218 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DetailView onUpdating problem

By Double clicking the object detailview, it will auto make a sub-procedure
called XXXXX_Selecting, however I want a sub-procedure to be called while
the detailview is being updated, so that i add a onUpdating="xxxxx" inside
the <asp:DetailViewand make a sub in the cs file, but while try to run the
project, it has the following error, is there any other method to make a
onupdating sub rather than i have to write the code myself, thanks.

Error 1 No overload for 'sDS_ServerInformation_Updating' matches delegate
'System.Web.UI.WebControls.SqlDataSourceCommandEve ntHandler'
C:\Inetpub\wwwroot\list\listSeverInformation.aspx 35
C:\Inetpub\wwwroot\list\listSeverInformation.aspx 35 ==>
<asp:SqlDataSource.....
UpdateCommand="UPDATE serverDetail SET location = @location, server_owner =
@server_owner, application = @application, backup_type = @backup_type WHERE
(server_id = (SELECT id FROM serverList WHERE (serverip = @serverip)))"
OnSelecting="sDS_ServerInformation_Selecting"
OnUpdating="sDS_ServerInformation_Updating">
</asp:SqlDataSource>
Jul 4 '07 #1
0 1226

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

Similar topics

0
1106
by: Mike | last post by:
I have a detailview, with several template columns in it. It's setup so that a user views info from a datagrid, and if they want to add another row, they click a button. The button causes a...
1
3064
by: Luqman | last post by:
The detailview control is combination of textboxes and labels, while detailview is in edit mode, how can I change the textbox value through code ? For example: My detailView has following...
0
1234
by: Luqman | last post by:
I have used a single objectDataSource for GridView and DetailView, and when I load the page, the GridView shows all the entries of Invoice, and DetailView shows the 1st entry of Invoice, thats all...
0
1154
by: =?Utf-8?B?THVib21pcg==?= | last post by:
Hi, I have a GridView and Dataview controls. If user clicks on a row in GridView, the details will be shown in DetailView. 1/ I want to show in DetalView only details field - without column...
0
3135
by: Deepak Palkar | last post by:
Hi I have Gridview and DetailView both on one page. I am showing the list in the Gridview and the particular record in DetailView. the problem is When i EDIT on the DetailView and try to UPDATE...
2
3758
by: Luqman | last post by:
Hi, Any Idea how to Display Todays Date in DetailView Template Field while Inserting ? For example: When I click on New Button of DetailView Control, I need to display Today's Date in a...
0
1037
by: =?Utf-8?B?RWQgV2FycmVu?= | last post by:
After working on this for the past three days!! 1. I build a simple table in sql server 2005 TestID (int, auto increment) (key) TestText (nvchar,10) 2. In visual studio 2005, I build a simple...
0
1510
by: LamSoft | last post by:
In the object of detailView, i added a function to check the values during itemUpdating, the source is: protected void test2(object sender, DetailsViewUpdateEventArgs e) { foreach...
0
5301
Frinavale
by: Frinavale | last post by:
I have a peculiar problem with an UpdatePanelAnimationExtender wherein the animation for the OnUpdating event only fires the first time the UpdatePanel it target's performs a PostBack. The...
0
7132
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
7401
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
7063
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...
1
5059
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
4720
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
3211
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1568
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
773
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.