Advertisement

03.27.2008 at 08:02AM PDT, ID: 23274266
[x]
Attachment Details

how to search in array list

Asked by ajay1feb in Microsoft Visual C#.Net

Tags: c#

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("ConsignmentListPrice.aspx");
        if (screen == false)
        {
            Response.Redirect("../WebPages/FrmHome.aspx", false);
       
        }

in utilities class:

public static bool screenValidate(string screenName)
    {

   
       
        ArrayList validScreen = (ArrayList)HttpContext.Current.Session["ScreenName"];
        validScreen.BinarySearch(screenName);
        return true;
            }Start Free Trial
 
 
[+][-]03.27.2008 at 09:32AM PDT, ID: 21223247

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual C#.Net
Tags: c#
Sign Up Now!
Solution Provided By: BillyDvD
Participating Experts: 1
Solution Grade: A
 
 
[+][-]03.27.2008 at 09:33AM PDT, ID: 21223256

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628