Hello Telerik Team,
I have a requirement where i need to pass some values from another method to the user functions.
I found that we cant use viewstate in static methods..and user functions should be static always.
How can we use session state here .
The following code is:
public reportname()
{
foreach (SPListItem item in listItemsCollection)
{
string Type = item["Columnname"].ToString();
}
}
public static string FormType(string Type)
{
// string TypeVal = "AA";
switch (Type)
{
case "AA":
Type = "Approved";
break;
}
return Type;
}
In the above code i need to pass "Type" value to the user function FormType.I appreciate your support.
Thank you,
Smith