i need to compare string value in stored value in arrayList.if it find that value then method should return true.how to do it ?my following code is not working :
bool screen = Utilities.screenValidate("
Consignmen
tListPrice
.aspx");
if (screen == false)
{
Response.Redirect("../WebP
ages/FrmHo
me.aspx", false);
}
in utilities class:
public static bool screenValidate(string screenName)
{
ArrayList validScreen = (ArrayList)HttpContext.Cur
rent.Sessi
on["Screen
Name"];
validScreen.BinarySearch(s
creenName)
;
return true;
}
Start Free Trial