how to assign QueryString value to a variable
-
Hi I have a question: how to assign QueryString value to a variable, that should return unique ID of a user from ASPDBNET table. I used wrote this way:
string id=Request.QueryString["UserID"];
but it doesn't assigns any value... :( Thank ustring id=Request.QueryString["UserID"].ToString(); Best Regard Pathan
---------------------------------------------------
-
string id=Request.QueryString["UserID"].ToString(); Best Regard Pathan
---------------------------------------------------
-
Hi I have a question: how to assign QueryString value to a variable, that should return unique ID of a user from ASPDBNET table. I used wrote this way:
string id=Request.QueryString["UserID"];
but it doesn't assigns any value... :( Thank uwhat is the url? is this something like yourwebpage.aspx?Userid=??? << >>
-
what is the url? is this something like yourwebpage.aspx?Userid=??? << >>
-
Can you put the break point there and debug the code..to see if there is any element in querystring collection or not? << >>
-
Can you put the break point there and debug the code..to see if there is any element in querystring collection or not? << >>
-
Hi I have a question: how to assign QueryString value to a variable, that should return unique ID of a user from ASPDBNET table. I used wrote this way:
string id=Request.QueryString["UserID"];
but it doesn't assigns any value... :( Thank uuse this one man Dim strcom As String strcom = Request.QueryString.GetValues("CID")(0)
Piyush Vardhan Singh Programmer TAS NewDelhi India
-
use this one man Dim strcom As String strcom = Request.QueryString.GetValues("CID")(0)
Piyush Vardhan Singh Programmer TAS NewDelhi India
-
string strcom = Request.QueryString.GetValues("CID")();
Piyush Vardhan Singh Programmer TAS NewDelhi India
-
string strcom = Request.QueryString.GetValues("CID")();
Piyush Vardhan Singh Programmer TAS NewDelhi India
-
string strcom = Request.QueryString.GetValues("CID")();
Piyush Vardhan Singh Programmer TAS NewDelhi India
Piyush Vardhan Singh wrote:
string strcom = Request.QueryString.GetValues("CID")();
:confused::confused:
-
I'm sorry, but now it gives me this kind of exception: System.NullReferenceException was unhandled by user code Message="Object reference not set to an instance of an object." Source="App_Web_p-lbdwwh" Thank you
It gives error becoz ur quiry string is null. check condition first if(Request.QueryString["id"]!=null) { code here } Best Regard Pathan
---------------------------------------------------