Click here to Skip to main content
15,895,084 members
Articles / Web Development / ASP.NET
Tip/Trick

Querystring for Beginners

Rate me:
Please Sign up or sign in to vote.
1.00/5 (1 vote)
10 Nov 2011CPOL 10.2K   1
Multiple Parameters with QueryString
I learned a new thing today, while I was working on querystring in GridView.
  1. Passing a querystring with one parameter:

    "~/User/Units.aspx?Nodeid="+Eval("NODE_ID")


  2. Passing Querystring with two parameters:

    Wrong Code


    "~/User/Units.aspx?Nodeid="+Eval("NODE_ID")+"& Under_Parent="+Eval("UNDER_PARENT")


    Don't give space after "&" while you are passing querystring with multiple parameters.

    Right Code


    "~/User/Units.aspx?Nodeid="+Eval("NODE_ID")+"&Under_Parent="+Eval("UNDER_PARENT")

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralReason for my vote of 1 Describe first what is querystring h... Pin
shashikanth 201110-Nov-11 21:05
shashikanth 201110-Nov-11 21:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.