Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > gridview hyperLinkField

Reply
Thread Tools

gridview hyperLinkField

 
 
ashim
Guest
Posts: n/a
 
      07-24-2006
i want a hyperLinkFiled or hyperlinkColumn in my dataview/gridview
where the hyperlink is a javascript function xyz(p1,p2):

p1 = Request["x"]; p2= one of the dataset columns;

please help


 
Reply With Quote
 
 
 
 
Ben Schumacher
Guest
Posts: n/a
 
      07-24-2006
add a template column that is a linkbutton. Then, when each data row binds
to the gridview control (GridControl_RowDataBound) do somthing like ...

ctype(e.row.cells(0).controls(0), LinkButton).attributes.add("OnClick",
"javascriptfunction()")




"ashim" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>i want a hyperLinkFiled or hyperlinkColumn in my dataview/gridview
> where the hyperlink is a javascript function xyz(p1,p2):
>
> p1 = Request["x"]; p2= one of the dataset columns;
>
> please help
>
>



 
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
Gridview HyperlinkField question Peter ASP .Net 2 11-20-2007 06:45 PM
Gridview hyperlinkfield - pop new window with certain attributes boevermann@gmail.com ASP .Net 1 08-31-2007 07:25 PM
GridView HyperLinkField problem... =?Utf-8?B?TWlrZSBSYW5k?= ASP .Net 8 02-02-2007 04:12 PM
GridView or HyperLinkField with call to a javascript function SP ASP .Net 2 09-13-2006 05:06 PM
GridView and HyperLinkField dm1608 ASP .Net 1 02-23-2006 06:03 AM



Advertisments