Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > How to call javascript when click update command(it Edit command c

Reply
Thread Tools

How to call javascript when click update command(it Edit command c

 
 
prakash
Guest
Posts: n/a
 
      04-08-2005
hi

can any one help out....

It is possible to call the javascript..when i click update command in
datagrid.
(in Edit Command Column) For validation.

eg:- like button.Attribute.Add("onclick","function name()")

I am using EDIT Commnad Column.


Another query...

my required field validator is working in my local system,when i click
the update command in datagrid. But it not workin in the main server machine.
so i gone 1 query.

Thanks In advance

Regards
Prakash.S
 
Reply With Quote
 
 
 
 
Steve Goodyear
Guest
Posts: n/a
 
      04-08-2005
Hi Prakash,

Yes it is possible to add a JavaScript onClick attribute exactly like you
mentioned. Another way thought if you want to use the built in .NET
validators is to create template columns in your DataGrid and just handle the
validator controls the same as you would on a regular page.

Cheers,
Steve Goodyear
Vancouver, Canada
 
Reply With Quote
 
 
 
 
prakash
Guest
Posts: n/a
 
      04-11-2005
hi steve,

how can i add javascript onclick attribute to update command(i am using Edit
Command Colume).can u give sample code plz .it would be helpful for me.

if we have button then it is easy by specifiying it id(name) we can add the
attributes to it.
but i am using Edit command column,how can i achive it ,how can i specify
the button name for the update command.

Thanks in advance

Regards
Prakash.S




 
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
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Snapshot restraint - edit, edit, edit Alan Browne Digital Photography 24 05-10-2005 10:15 PM
Snapshot restraint - edit, edit, edit Patrick Digital Photography 0 05-06-2005 10:53 PM
How to add javascript onClick attribute to datagrid's edit template (update command)? Smash ASP .Net Datagrid Control 3 02-21-2005 04:09 PM
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
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57