Hi, I want to create a class and its methods at run-time. Users will write the class code in text-box and then use it. How can I do this? Savaş Külah savaskulah@msn.com
savaskulah
Posts
-
Dynamic Create Class -
ArrayList arrayprotected ArrayList[] arrColl = new ArrayList[4]; .... .... for (int i=0; i < 4; i++) { for (int j=0; j < 9; j++) arrColl[i].Add((TextBox)FindControl("txtbox"+i.ToString()+j.ToString())); // ERROR:Object reference not set to an instance of an object. } ....... This error is reporting the run-time, not compile-time. How can i correct this error? Thanks for help. Savaş Külah savaskulah@msn.com
-
Design Time Run timeHi, At the design time, I have added 6 textbox on the webform. Thing I want to do, to add these textboxes an array at runtime. How can i do that? .....(the other webcontrols).............. protected System.Web.UI.WebControls.TextBox txt0; protected System.Web.UI.WebControls.TextBox txt1; protected System.Web.UI.WebControls.TextBox txt2; protected System.Web.UI.WebControls.TextBox txt3; protected System.Web.UI.WebControls.TextBox txt4; protected System.Web.UI.WebControls.TextBox txt5; .....(the other webcontrols).............. .... TextBox[] txtArray = new TextBox[6]; for (int i=0; i < txtArray.Length; i++) { txtArray[i] = ??????????;(Controls["txt"+i.ToString()]; dont working) } Thanks for your help... Savaş Külah savaskulah@msn.com
-
Printing ASP.NET Web FormHi, How can I programmatically print the current Web page? On the page (.aspx),there are labels and textboxes. Can it possible? Thanks Savaş Külah savaskulah@msn.com