1
    http://localhost:606/Default.aspx?TerminalNo=008

How can I copy the Terminal number=008 of the above path in to an x variable in the program.

1 Answers1

2

Try this..

 protected void Page_Load(object sender, EventArgs e)
 {
        string x = Request.QueryString["TerminalNo"];
        int y = convert.ToInt32(Request.QueryString["TerminalNo"]);
 }
Jameem
  • 1,840
  • 3
  • 15
  • 26