The function below is found in a class called page.cs
C#
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?
Code
protected void Page_Load(object sender, EventArgs e)
{
//call MyFunction()
}
Sachin SinghRank #66 · 26.2K reputationPosted Sep 17, 2021, 2:09 PM EDT
tanweeruddin beeharry110 reputationPosted Sep 17, 2021, 2:32 PM EDT