473,586 Members | 2,490 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="xxx xx" inside
the <asp:DetailView and 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_ServerInfo rmation_Updatin g' matches delegate
'System.Web.UI. WebControls.Sql DataSourceComma ndEventHandler'
C:\Inetpub\wwwr oot\list\listSe verInformation. aspx 35
C:\Inetpub\wwwr oot\list\listSe verInformation. aspx 35 ==>
<asp:SqlDataSou rce.....
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="sD S_ServerInforma tion_Selecting"
OnUpdating="sDS _ServerInformat ion_Updating">
</asp:SqlDataSour ce>
Jul 4 '07 #1
0 1233

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

Similar topics

0
1108
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 detailview to open up, in insert mode, they enter the data, hit insert, and the detailview goes away. Their data now appears in the gridview. When the...
1
3068
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 fields. Code : Label1 Name : Textbox1
0
1239
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 ok. Now what I want is to click on Select Button of DetailView and that row should appear in DetailView, using the same ObjectDataSource, any idea...
0
1159
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 name, which is now shown on the left side next to details. How to hide the column name? 2/
0
3140
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 it. It doesn't work. I have setup 2 sqlDatasource for each Control. the Select Query for SqlDatasource which is bound to the DetailView has the...
2
3762
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 Template Field text box. I tried following in DetailView1_ModeChanged Event but could not succeed. Protected Sub DetailsView1_ModeChanged(ByVal sender...
0
1038
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 dataset, using one tableadapter based on the test table, select both fields, and use the wizard to build the get, update,insert, delete queries.
0
1517
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 (System.Collections.DictionaryEntry o in e.OldValues) { Response.Write("Old Values:" + o.Key.ToString() + "==>" + o.Value + "<br/>"); } foreach...
0
5313
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 animation is quite simple...it disables all of the buttons in the UpdatePanel when it is updating...and enables all the buttons within the UpdatePanel once...
0
7915
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7841
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
8204
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5712
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3869
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2345
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 we have to send another system
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1184
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.