Author: dipakprodhan | Posted on: 9/29/2009 10:44:39 AM | Views : 256

Hi Guys,
I am using Asp.Net 2.0  and C# for my website.But i have a problem here when i am trying to pass my Page class instance to a Class in App_code folder.Actually i want to get hold of the controls like textbox,list box etc which r present on my Page Class from a Class in App_code.In order to achive this i am using code which is as follows:-
Test.aspx --> Contains Some textbox,list box and a submit button.

Code --> Test.aspx.cs
ArrayList objControlCol = new ArrayList();
      objControlCol.Add (this.TextBox1);
      objControlCol.Add (this.TextBox2);
Common obj = new Common(); // Class file in App_Code folder

int x = obj.SetValue(objControlCol,this).ToString();

App_Code --> Co ...

Go to the complete details ...