In my Produktet.aspx page is this code:
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
IDKat = int.Parse(Request.QueryString["ID_Kategoria"]);
Session["ID_Kateg"] = IDKat;
}
}
From this page i go to DetajetEProduktit.aspx page and after doing something there and clicking a linkButton (in button_click event i try to redirect to Produktet.aspx page but than my sesion variable is lost).
here is the button click event:
protected void lnkbKtheu_Click(object sender, EventArgs e)
{
string url = "~/Produktet.aspx?ID_Kategoria = " + Session["ID_Kateg"] ;
Response.Redirect(url);
}
I tried this : Respnse.Redirect(url,false) but it doesn`t work.
Does anyone know the solution?

New Topic/Question
Reply




MultiQuote





|