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?




Go to topic 38149

Return to index page 403
Return to index page 402
Return to index page 401
Return to index page 400
Return to index page 399
Return to index page 398
Return to index page 397
Return to index page 396
Return to index page 395
Return to index page 394