ASP.NET GridView postback not setting posted controls' values -
when adding edititemtemplate of complexity (mulitple fields in 1 template), , parsing controls rowupdating event, controls manually entered user have no values. guess there going on when data bound, i've had instances adding , attribute control in codebehind started behavior , removing code made code work. work-around, can request(controlname.uniqueid) it's value, rather hack.
edit when access value so
textbox txtvalue = gvwsettings.selectedrow.findcontrol("txtvalue") textbox;
the text box found, .text not user input.
did turn off viewstate? did add control programmatically in template? if so, did create them @ correct stage?
Comments
Post a Comment