The function below is found in a class called page.cs
public static List MyFunction()
{
var retList = new List();
retList.Add("xzy");
retList.Add("abc");
return retList;
}
On page load how to call the function and check if the list contains xzy and abc?
protected void Page_Load(object sender, EventArgs e)
{
//call MyFunction()
}
Sachin SinghPosted Sep 17, 2021, 6:09 PM
tanweeruddin beeharryPosted Sep 17, 2021, 6:32 PM