![]() |
|
|
|
#1 |
|
I have bound datagrid with edit,update events. I am able to extract textbox values of datagrid in edit event but in the update event, its returning null textbox value. I want to get the value of textbox that is dynamically generated by the datagrid in update event.
TextBox txtbox = new TextBox(); txtbox = (TextBox)e.Item.FindControl(e.Item.Cells[1].Controls[0].ID); the above code returns null value for txtbox.Text. I also tried extracting vaues using these lines of code, but still returns null TextBox txtbox = new TextBox(); txtbox = (TextBox)e.Item.Cells[1].Controls[0]; string lastname = txtbox.text kanchangorak |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Loading 24,000 rows into C# .net Datagrid | Kagu | Software | 0 | 03-10-2009 06:51 PM |
| validating textbox inside datagrid | susan_1516 | Software | 0 | 11-09-2008 01:29 PM |
| gridview textbox value refresh | apdbrl1 | Software | 1 | 06-12-2008 06:29 PM |
| ASP.NET VB Using ItemDataBound to create textbox in datagrid rows. | smi59550 | General Help Related Topics | 0 | 01-18-2008 07:42 PM |
| How do find out if a button was clicked before the textchanged event of textbox fires | Jack | General Help Related Topics | 0 | 10-27-2006 10:19 AM |