open link from button

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I have a webcontrol.button on a asp.net page. When the user clicks the
button I would like to dynamically build a link with values from the config
file and then open this link.

I know how to build the link but I dont know how I open the link from the
*.cs file?

Thanks
J
 
Once you have the url, you can call either Server.Transfer or
Response.Redirect methods to navigate the current browser window to the new
url. Are you happy with this or you need to open another browser window?
 
Look at the RegisterClientScriptBlock method (deprecated in 2.0).

Only deprecated as a member of the Page class - now exists in the
ClientScript class, which is the currently recommended usage...
 
Back
Top