webserver - Asp.net MutiView parameter passing issue -
i doing dotnetnuke module development. put asp.net mutiview control on view.ascx. there 3 views in mutiview. each view has custom module control wrapped place holder. on first module control in first view, select 1 row grid view, , active second view. on second view, receives value passed session object. however, problem cannot see value been assigned label want value assigned when second view has been activated @ first time. have redirect second view again clicking link button.
is there able me it? appreciate kindness.
on control one(selectjob):
protected void gridviewjoblist_selectedindexchanged(object sender, eventargs e) { job newjob=new job(convert.toint32(gridviewjoblist.selectedvalue)); onselectedjob(newjob); } public event jobselectedeventhandler jobselected; protected virtual void onselectedjob(job j) { session["jobid"]=j.jobid; jobselected(this,j); }
one view.ascx design view:
<asp:linkbutton id="linkbuttonjobpost" runat="server" causesvalidation="false" onclick="linkbuttonjobpost_click">job post</asp:linkbutton> <asp:linkbutton id="linkbuttonjobapplication" runat="server" causesvalidation="false" onclick="linkbuttonjobapplication_click">job application</asp:linkbutton> <asp:multiview runat="server" id="mutiviewjob" activeviewindex="0"> <asp:view runat="server" id="viewjobpost"> <asp:placeholder id="placeholderjobpost" runat="server"> <job:selectjob id="selectjob" runat="server" /> </asp:placeholder> </asp:view> <asp:view runat="server" id="viewjobapplication"> <asp:placeholder id="placeholderjobapplication" runat="server"> <job:inputjob runat="server" id="inputjob"/> </asp:placeholder> </asp:view> </asp:multiview>
on control two(inputjob):
protected void page_load(object sender, eventargs e) { try { if (!ispostback) { } else { labeljobid.text = session["jobid"].tostring(); } catch (exception exc) { exceptions.processmoduleloadexception(this, exc); } }
Comments
Post a Comment