Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Datagrid update command

Reply
Thread Tools

Datagrid update command

 
 
=?Utf-8?B?c2lhag==?=
Guest
Posts: n/a
 
      02-28-2005
Helo All,
If some one has faced a similar issue..
My datagrid Update command is not getting fired in fact it seems that the no
event fires on clicking the update link. Although the cancel and the Edit
Commmand are getting fired properly.

The One difference I have seen is that in the task bar ..on hovering on the
link the javascript for the update link seems different. I dont know if it
makes sense..

Edit Button : javascript:__doPostBack('DataGrid1$_ctl7$_ctl3','' )
Cancel buton : javascript:__doPostBack('DataGrid1$_ctl7$_ctl0','' )
Update button :
javascript:{if%20(typeof(Page_ClientValidate)%20!= %20'function'%20||%20%20Page_ClientValidate())%20_ _doPostBack('DataGrid1$_ctl7$_ctl2','')}


I have in the datagrid code OnUpdateCommand="DataGrid1_UpdateCommand"
and in Code behind..
Public Sub DataGrid1_UpdateCommand(ByVal source As System.Object, ByVal e As
System.Web.UI.WebControls.DataGridCommandEventArgs ) Handles
DataGrid1.UpdateCommand

Cheers,
siaj
 
Reply With Quote
 
 
 
 
Craig G
Guest
Posts: n/a
 
      02-28-2005
have you set the OnUpdateCommand or OnItemCommand in the HTML for the Grid?

"siaj" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Helo All,
> If some one has faced a similar issue..
> My datagrid Update command is not getting fired in fact it seems that the

no
> event fires on clicking the update link. Although the cancel and the Edit
> Commmand are getting fired properly.
>
> The One difference I have seen is that in the task bar ..on hovering on

the
> link the javascript for the update link seems different. I dont know if it
> makes sense..
>
> Edit Button : javascript:__doPostBack('DataGrid1$_ctl7$_ctl3','' )
> Cancel buton : javascript:__doPostBack('DataGrid1$_ctl7$_ctl0','' )
> Update button :
>

javascript:{if%20(typeof(Page_ClientValidate)%20!= %20'function'%20||%20%20Pa
ge_ClientValidate())%20__doPostBack('DataGrid1$_ct l7$_ctl2','')}
>
>
> I have in the datagrid code OnUpdateCommand="DataGrid1_UpdateCommand"
> and in Code behind..
> Public Sub DataGrid1_UpdateCommand(ByVal source As System.Object, ByVal e

As
> System.Web.UI.WebControls.DataGridCommandEventArgs ) Handles
> DataGrid1.UpdateCommand
>
> Cheers,
> siaj



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Datagrid update command - and validators John Blair ASP .Net 4 01-30-2008 01:23 PM
How to call javascript when click update command(it Edit command c prakash ASP .Net Web Controls 2 04-11-2005 04:07 AM
datagrid update command =?Utf-8?B?YWJkb2x5?= ASP .Net 10 03-19-2005 01:01 PM
To all Gurus: How can I edit/update a DataGrid in a DataGrid (nested DataGrid)? Possible? Andreas Klemt ASP .Net Datagrid Control 0 10-08-2003 01:19 AM
copying value of DDL in a Datagrid "pre-edit command" to value in "post edit command" San Diego Guy ASP .Net 0 08-07-2003 08:59 PM



Advertisments