Hi
How to Assign Session value from Array value in C# and compare if statement from session value all element in C# how will do this
for ex:
when i button click event i pass different different ID after submit i need
to assign session value like this
for ex:
1 post Id =4
2 post Id =8
3 post Id =11
after how to contain this ids using sesssion like this
Session["SID"]=4,8,11
after another button click for checking
if (Session["SID"].ToString().Contains(4,8,11))
{
--- then
}
Else
{
--- Else part
}
Mark as Answer if its helpful to you
Kumaraspcode2009@gmail.com