hi
I have 1 textbox 1 button in my page and user's table in database in this table is BEHCODE column that when users enter their behcode in TB they go to their page i use query string for it on button click event
protected void ImageButton3_Click(object sender, ImageClickEventArgs e)
{
string data = Server.UrlEncode(txtNumeric.Text);
SqlCommand _cmd = new SqlCommand("traidname", _cn);
_cmd.CommandType = CommandType.StoredProcedure;
_cmd.Parameters.Add("@BehCode", data);
_cn.Open();
string tName = _cmd.ExecuteScalar().ToString();
_cn.Close();
Response.Redirect(tName +"?BehCode=" + Server.UrlEncode(txtNumeric.Text));
}
when i use querystring when users click on button and go to their page they see in address bar this address
behtob.com/store?BehCode=1111
and if i use session when they click on button and go to their page they see this address in address bar
behtob.com/store.aspx
Now i want when user's enter their behcode in TB and click on button when they go to their page they see this address in address bar
behtob.com/1111
1111 is user's behcode in DB is there any way to do it?
thanks alot