|
Subject:
|
Unable to fetch textbox values
|
|
Posted By:
|
triveni_sh
|
Post Date:
|
1/5/2006 12:28:41 AM
|
Hi
I am trying to add four textbox arrays dynamically to the web page on click of button, depending on the no of list items added by user. Although i m able to add textboxes as desired in the table on web form,but unable to retreive values .
code is something like this:
for(i=0;i<ListBox1.Items.Count;i++) { tc=new TableCell(); txtCallPrem[i]=new System.Web.UI.WebControls.TextBox(); tr.cells.add(tc);
tc=new TableCell(); txtOnCall[i]=new System.Web.UI.WebControls.TextBox(); tr.cells.add(tc); table2.rows.add(tr); }
Now I am trying to add values inserted by user into an arraylist
alCall.add(Request.Params["txtShiftAll[0]"]);
but everytime value returned is 'null'.
Please let me know what needs to be done to fetch the textbox values?
|
|