Note that there are some explanatory texts on larger screens.

plurals
  1. POAsp.net MutiView parameter passing issue
    primarykey
    data
    text
    <p>I am currently doing DotNetNuke module development. I put a asp.net mutiview control on view.ascx. There are three views in this mutiview. Each view has a custom module control wrapped with place holder. On first module control in first view, I select one row from a grid view, and it active the second view. On second view, it receives a value that is passed by a session object. However, the problem is that I cannot see the value been assigned to the label that I want the value to be assigned to when the second view has been activated at first time. I have to redirect to second view again by clicking a link button.</p> <p>Is there anyone who is able to help me with it? I will appreciate your kindness.</p> <p>On Control One(SelectJob): </p> <pre><code>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); } </code></pre> <p>One View.ascx Design view:</p> <pre><code>&lt;asp:LinkButton ID="LinkButtonJobPost" runat="server" CausesValidation="False" OnClick="LinkButtonJobPost_Click"&gt;Job Post&lt;/asp:LinkButton&gt; &lt;asp:LinkButton ID="LinkButtonJobApplication" runat="server" CausesValidation="False" OnClick="LinkButtonJobApplication_Click"&gt;Job Application&lt;/asp:LinkButton&gt; &lt;asp:MultiView runat="server" ID="MutiViewJob" ActiveViewIndex="0"&gt; &lt;asp:View runat="server" ID="ViewJobPost"&gt; &lt;asp:PlaceHolder ID="PlaceHolderJobPost" runat="server"&gt; &lt;job:SelectJob ID="SelectJob" runat="server" /&gt; &lt;/asp:PlaceHolder&gt; &lt;/asp:View&gt; &lt;asp:View runat="server" ID="ViewJobApplication"&gt; &lt;asp:PlaceHolder ID="PlaceHolderJobApplication" runat="server"&gt; &lt;job:InputJob runat="server" id="InputJob"/&gt; &lt;/asp:PlaceHolder&gt; &lt;/asp:View&gt; &lt;/asp:MultiView&gt; </code></pre> <p>On control Two(InputJob):</p> <pre><code>protected void Page_Load(object sender, EventArgs e) { try { if (!IsPostBack) { } else { LabelJobId.Text = Session["JobId"].ToString(); } catch (Exception exc) { Exceptions.ProcessModuleLoadException(this, exc); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload