textbox in grid
-
hi, i have a txtbox in grid where user gives the input.i have to store the text into database. but iam unable to get the text. this is code iam using: Dim TxtBox As TextBox = CType(DataGrid1.Items(count).FindControl("TxtTimings"), System.Web.UI.WebControls.TextBox) Dim Timing As String = TxtBox.Text Response.Write(timing) please help Thanks and Regards, David Boon.
-
hi, i have a txtbox in grid where user gives the input.i have to store the text into database. but iam unable to get the text. this is code iam using: Dim TxtBox As TextBox = CType(DataGrid1.Items(count).FindControl("TxtTimings"), System.Web.UI.WebControls.TextBox) Dim Timing As String = TxtBox.Text Response.Write(timing) please help Thanks and Regards, David Boon.
Are you getting an error? Where is this code running (in datagrid command event or after a button click?)
-
Are you getting an error? Where is this code running (in datagrid command event or after a button click?)
hi, the code is written in button click event. iam not getting any error. the value is null and no action takes place
-
hi, i have a txtbox in grid where user gives the input.i have to store the text into database. but iam unable to get the text. this is code iam using: Dim TxtBox As TextBox = CType(DataGrid1.Items(count).FindControl("TxtTimings"), System.Web.UI.WebControls.TextBox) Dim Timing As String = TxtBox.Text Response.Write(timing) please help Thanks and Regards, David Boon.
Dim TxtBox As TextBox = CType(DataGrid1.Items(count).Cells(indexOfCellWIthTextBox).FindControl("TxtTimings"), System.Web.UI.WebControls.TextBox) I think that's the syntax - you could give that a try.
-
Dim TxtBox As TextBox = CType(DataGrid1.Items(count).Cells(indexOfCellWIthTextBox).FindControl("TxtTimings"), System.Web.UI.WebControls.TextBox) I think that's the syntax - you could give that a try.
i have tried still not working