how to apply condition at session value
actually i am taking value from one page to other page using sessions .
but i want at secont page that if the value of session["s1"] ==2 to webcontrol should be generate two times.and it ==3 then usercontrols should be generate 3 times .so i have to apply condition :
if(session["s1"]==1)
{
}
if(1<session["s1"]<=2)<b>(error)</b>
{
}
<b>now i get error:
Operator '|' cannot be applied to operands of type 'bool' and 'int'</b>
what should i do.
thanks
|