Results 1 to 4 of 4

Thread: How do you open another aspx page in .net

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Posts
    95

    How do you open another aspx page in .net

    Newbie to ASP.NET Longtime VB6 Programmer

    I do not want to place code in HTML but Rather in WebForm .net code. How do you reference another page.

    Say I am Login.aspx webform and I click a button. I want to send them to a welcome page called test.aspx.

    How do I write the code in .net Design and not HTML??

    Also, Is it better to code in HTML or .NET in a webform??

  2. #2
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    response.redirect in the buttons click event


    "Also, Is it better to code in HTML or .NET in a webform??"

    You use both. You obviously wouldnt want to use web form controls when you dont need server side processing
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  3. #3

    Thread Starter
    Lively Member
    Join Date
    May 2001
    Posts
    95
    So lets say a user gets to a web page without going through my login page, (They type it directly in) and I have some script on my page in the Page_Load

    If Session("Level") <> 1 then
    response.redirect("Login.aspx")
    end if

    Since this is not in HTML and in the WebForm, is this server side instead of Client side. How do you tell.

  4. #4
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    http://www.asp.net/tutorials/quickstart.aspx

    Would be better for you if you go through the info on that link than it would be for me to try to explain it as you need to learn the fundimentals of ASP.NET.

    Good luck.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width