Click here to Skip to main content
15,899,825 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
VB
error place :

int intForum = Convert.ToInt32(Request.QueryString["ForumID"]);
Posted

Error message is self descriptive.

Request.QueryString["ForumID"]
is Empty or having some string value.
 
Share this answer
 
in first page use like this.

page1.aspx:
--------------
string usr = "user";
int i = 15;
Response.Redirect("Default.aspx?name="+usr+"&value="+i.ToString());

Explain:
here i passed two values one string that is user, and second one integer is just 15;

you can access this value in second page like below code..


Default.aspx:
----------------
int i;
string user;
protected void Page_Load(object sender, EventArgs e)
{
user = Request.Params["name"];
i = Convert.ToInt32(Request.QueryString["value"]);
}
button click time access get your value in label.
protected void btnSubmit_Click(object sender, EventArgs e)
{
lable1.Text=user.Tostring();
lable2.Text=i.Tostring();
}


i hope this is useful to you...
take care bye....
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900