Hi,
I want to pass cid genarated in selling.aspx to orderform.aspx .
How to retrieve the query string in orderform.aspx
I gave the code below in selling.aspx
SqlConnection con;
SqlDataReader dr;
con = new SqlConnection("Persist Security Info=False;Uid=sa;Password=q1w2e3/;Initial Catalog=YOGADATA;Data Source=PC-1");
con.Open();
t=0;
SqlCommand com = new SqlCommand("select * from Custlogin", con);
dr = com.ExecuteReader();
dr.Read();
try
{
do
{
if (TextBox1.Text.Trim() == dr[0].ToString().Trim() && TextBox2.Text.Trim() == dr[1].ToString().Trim())
{
t = 1;
id = dr[2].ToString().Trim();
}
} while (dr.Read());
}
catch
{
}
finally
{
con.Close();
dr.Close();
}
if (t == 1)
{
[B][U] Response.Redirect("Orderform.aspx?id=");[/U][/B] }
else
{
Label11.Visible = true;
Label11.Text = "Login failed,try again";
}
please help me soon
Thank U.