• Passing Parameters (VS.net 2002)

    Home » Forums » Developers, developers, developers » DevOps Lounge » Passing Parameters (VS.net 2002)

    Author
    Topic
    #398212

    How do I pass a parameter, a three digit code, from an html page to my aspx page so the aspx.vb can read it?

    Viewing 1 reply thread
    Author
    Replies
    • #760247

      This concept is not specific to .NET – You can do this one of 2 ways: 1) Form variables, 2) Querystring variables

      Form Variables are passed from one page to another when the submitting page uses (where “scriptpage.aspx” is the name of your script page). Any form item (Textbox, checkbox, radio button, etc…) can be accessed from the script page using the following syntax: Request.Form(“ObjectID”) (where “ObjectID” is the ID of the item in question (textbox, checkbox, etc….)

      Querystring Variables are added to the URL of the script page’s name (like “scriptpage.aspx?VariableName=Value”). The script page can access the variables with the following syntax: Request.Querystring(“VariableName”).

      Check this page for a good ASP example (which also applies to .NET)

      Also, you may want to post more web-related questions in the Web Design, Coding, and Scripting board.

      Hope this helps!

    • #760248

      This concept is not specific to .NET – You can do this one of 2 ways: 1) Form variables, 2) Querystring variables

      Form Variables are passed from one page to another when the submitting page uses (where “scriptpage.aspx” is the name of your script page). Any form item (Textbox, checkbox, radio button, etc…) can be accessed from the script page using the following syntax: Request.Form(“ObjectID”) (where “ObjectID” is the ID of the item in question (textbox, checkbox, etc….)

      Querystring Variables are added to the URL of the script page’s name (like “scriptpage.aspx?VariableName=Value”). The script page can access the variables with the following syntax: Request.Querystring(“VariableName”).

      Check this page for a good ASP example (which also applies to .NET)

      Also, you may want to post more web-related questions in the Web Design, Coding, and Scripting board.

      Hope this helps!

    Viewing 1 reply thread
    Reply To: Passing Parameters (VS.net 2002)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: