Click here to Skip to main content
15,886,095 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all.
In my database I have address, name, dob of registered users.

In the design page there is a gridview which binds data of name, dob and address (invisible=false). There is a button in gridview. If I click on that then the address of the corresponding registered user opens in google.
How can I do that? Can anybody help me?

Thanks in Advance!
Posted
Updated 15-Dec-10 19:25pm
v2
Comments
JF2015 16-Dec-10 1:26am    
Edited to remove pre tags, fix spelling and grammar.

1 solution

Well, there can be multiple ways of doing it. Using client side events of that button would be one of the ways to go for.

You need to keep a hidden column of address in your grid. Tie up the address to the button client click handler using grid's Itemdatadound or Rowdatabound handler. Once done, whenever you click button, a javascript method would be invoked with address value as a parameter to it. Use it and open a new window, display the address as per your need.

Try!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900