How to get parameters out of an ascx back to the main aspx page

Posted by Hallaghan on Stack Overflow See other posts from Stack Overflow or by Hallaghan
Published on 2010-06-15T10:53:41Z Indexed on 2010/06/15 13:12 UTC
Read the original article Hit count: 219

Filed under:

I've got an aspx page that renders an ascx page with filtering capabilities. Inside the ascx page, parameters are passed as follows:

<tr>
    <td class="label">Plataforma</td>
    <td class="field lookup"><%= Html.Lookup("s.Site", null, Url, "Sites") %></td>
</tr>
<tr>
    <td class="label">Data</td>
    <td class="field date"><%= Html.TextBox("s.Date", DateTime.Today.ToString("yyyy-MM-dd")) %></td>
</tr>

I need to be able to get those parameters on the main aspx page, because they are needed for an action that is called there. How could I access these parameters?

© Stack Overflow or respective owner

Related posts about asp.net-mvc