Button to redirect to another frame?

asp.net United States
  • 18 years ago

    I basically have a signout button on one frame, and what I want it to do is execute the sub, then redirect to Main.aspx...on the main frame, not the navigational frame.  



    top frame          -signout button



    main frame






    signout button needs to load main.aspx onclick. but i can't figure out how!
    response.redirect() just redirects itself
    server.transfer() does the same

  • 18 years ago

    If you use the HyperLink Web Control it has target property that will do this and I'm fairly sure you can capture the click event too to do the logout stuff. If not make the link have a querystring that will notify your code to logout.

Post a reply

Enter your message below

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“It works on my machine.” - Anonymous