Re: ASP Button to open link

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Thu, 09 Mar 2006 10:06:10 -0800, Coolsat wrote:

I need to do something simple but am new to asp.net. I want to add a
button to my page and when selected, to open a url in a seperate page.
The more I google how to do this, I keep seeing to do it via javascript
with window.open but the problem is, I need to build the url dynamicaly
thru code. I have the url as a string in vb. Is there a command I can
enter under the button click event to do this?

Thanks
Yes, do it like you would in Asp using <%= url %> inside the button html.
.



Relevant Pages

  • Q: PL*SQL stored procedure, oracle objects and Java
    ... Oracle technical network as well as Google have let me down. ... this example returns a simple address as string. ... String command = ""; ... // Make the command into a callable statement ...
    (comp.lang.java.databases)
  • ASP Button to open link
    ... The more I google how to do this, I keep seeing to do it via javascript ... I have the url as a string in vb. ... Is there a command I can ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: ASP Button to open link
    ... button to my page and when selected, to open a url in a seperate page. ... The more I google how to do this, I keep seeing to do it via javascript ... Is there a command I can ... Page.Response.Redirect(YourNewURL) will take you to the new page ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: utility to remove CR/LF characters
    ... What you need is a "command line hex editor". ... Check Google ... for this string. ...
    (microsoft.public.win2000.general)
  • Converting tuple to String
    ... Is their a command to convert a tuple to string? ... Is their any way of getting print to see xyz as being one string i.e. ... "There" being, in reality, seperate? ...
    (comp.lang.python)