Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 390
  • Last Modified:

Custom hyperlink in gridview

Hi experts

i need to create some hyperlinkfield
but i wish to launch a popup (no adress bar, cannot resize the popup) when the user click on the hyperlink

in fact i just want to call a javascript function with the hyperlinkfield of the gridview and send some value of the gridview to the javascript function

can you show me how to do that?

regards
0
Dnx_7
Asked:
Dnx_7
  • 2
  • 2
1 Solution
 
SystemExpertCommented:
Hi.

see this link from codeproject

which shown how to open popup window from grid and pass value

http://www.codeproject.com/aspnet/ItemCreated.asp

thanks
0
 
Dnx_7Author Commented:
thanks for your link but i have to send a value of a hidden column

how can you access this hidden column of the gridview?

regards
0
 
SystemExpertCommented:
Hi,

Yes surely you can access the hidden column

according to type of the control you have set Cast it like

Label lblID = (Label)e.Item.FindControl("dgLabel0");

this is already shown in example

Thanks
0
 
Dnx_7Author Commented:
Great job!

thank for your quick support!

regards
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now