I have a grid and one cell is Hyperlink. Once the user click that link, I have to do a postback, do some processing and then open up a popup. What is the best approach? Is hyperlink that right column type? Which serverside event I should tap into to do the serverside processing and then what I have to do to open the popup?
Thanks,
Vinod
Hello,
I think the best option would be the Page.ClientScript class and the set of register methods it provides, for example RegisterClientStartupScript. A good example for this is demonstrated here:
http://forums.asp.net/p/1060981/1525852.aspx#1525852
When I click on HyperLink, its doing a post back and firing the Grid_Click(object sender, ClickEventArgs e) event. Here I was able to check e.Cell.Key and based on its value, I am doing ScriptRegistration to launch a popup.
Thanks for the sugession and it helped me. Please let me know if I am intercepting the correct event?