Hi,
In my application iam using webmethod.and i want access value of variable declare outside of the web method. following is my code
[WebMethod]
public static StudentDetails[] GetStudentsNext(string id)
{
BAL obj = new BAL();
List<StudentDetails> details = new List<StudentDetails>();
DataSet ds = obj.DisplayStudents(id);
i = Convert.ToInt32(hdint.Value);
if (i < ds.Tables[0].Rows.Count - 1)
{
}
}
my problem is based on this code
i = Convert.ToInt32(hdint.Value);
here i is an integer declared in page_load event and hdint is a hidden field also declared and store value in page_load event.
my requirement is to access these values in webmethod.
how it is possible.
Regards
Baiju