ASP.NET webform Fileupload inside an ascx which is inside an updatepanel in the aspx -
ASP.NET webform Fileupload inside an ascx which is inside an updatepanel in the aspx -
here code in page :
<asp:updatepanel id="updatepaneleqselector" runat="server" updatemode="conditional"> <contenttemplate> <uc12:eqselector id="custeqselector" oneqchange="custeqselector_oneqchange" runat="server" /> </contenttemplate> </asp:updatepanel> inside user control, i'm asked add together fileuploader. after coding simply, tested , fileuploader empty. i've searched while , discovered normal behavior. solution create work add together postbacktrigger updatepanel.
when tested in aspx page, achieved , fileuploader had file. tried add together dynamically (to in control), worked :
postbacktrigger trigger = new postbacktrigger(); trigger.controlid = this.btntest.id; this._updatepaneleqselector.triggers.add(trigger); but can't manage create code work in command (i passed updatepanel parameter command set in load, fileupload empty)
do see solution ?
thanks
does postback, leaves command empty? or not posting @ all. if it's not posting @ i'd add together this
scriptmanager.getcurrent(this).registerpostbackcontrol(btntest); to page_load of user control.
if posting back, command empty, i'd wager there dodgy html somewhere on page , values getting lost.
asp.net webforms
Comments
Post a Comment