ASP 2 .net FindControl method no longer works
-
this method worked fine in asp.net, now when a user select a select command on my datalist the ((TextBox)e.item.findcontrol("txtBlah")).Text does not return the value of my textbox control in the editItem of my datalist. Has the datalist got something in asp2 that i should attempt?:^)
-
this method worked fine in asp.net, now when a user select a select command on my datalist the ((TextBox)e.item.findcontrol("txtBlah")).Text does not return the value of my textbox control in the editItem of my datalist. Has the datalist got something in asp2 that i should attempt?:^)
-
this method worked fine in asp.net, now when a user select a select command on my datalist the ((TextBox)e.item.findcontrol("txtBlah")).Text does not return the value of my textbox control in the editItem of my datalist. Has the datalist got something in asp2 that i should attempt?:^)
Hi there, Do you have anything with the issue suggested by OMalleyW? Or could you be more specific about your sample code? Here is just an example of using the FindControl method with a datalist control: http://msdn2.microsoft.com/en-us/library/49fe2efd(en-US,VS.80).aspx[^]
-
all these methods fail still stuck TextBox txt = ((TextBox)e.Item.FindControl("txtLastname2")).Text; string fart = Parent.FindControl("txtLeadID2").ID; if (((TextBox)e.Item.FindControl("txtLeadID2")).Text.Length > 0) { leadID = Convert.ToInt32(((TextBox)e.Item.FindControl("txtLeadID2")).Text); }