<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="QueryStringExample.aspx.cs" Inherits="StateManagement.QueryStringExample" %>

 

<!DOCTYPE html>

 

<html xmlns="http://www.w3.org/1999/xhtml">

<head id="Head1" runat="server">

    <title>HTTP QueryString Example</title>

</head>

<body bgcolor="#ffff99">

   

    <h3>This example uses the HTTP Querystring to store data in the URL, which is used to transfer data between pages.

        An HTTP Request for a page can contain data in the body of the HTTP Request (POST method) or the URL (GET Method).

        This example ASPX page appends data from the Textboxes to a URL for the requested page to use. </h3>

 

    <form id="form1" runat="server">

   

        <asp:Label ID="Label1" runat="server" Text="Enter your school's name:"></asp:Label>

        <br />

        <asp:TextBox ID="txtSchoolName" runat="server"></asp:TextBox>

        <br />

        <br />

        <asp:Label ID="Label2" runat="server" Text="Enter your major:"></asp:Label>

        <br />

        <asp:TextBox ID="txtMajor" runat="server"></asp:TextBox>

        <br />

        <br />

       

        <asp:Button ID="btnProcess" runat="server" Text="Submit Information" OnClick="btnProcess_Click" />

 

    </form>

</body>

</html>