【发布时间】:2014-01-06 06:30:48
【问题描述】:
我有两页..在第一页有下拉菜单:
<asp:DropDownList ID="ddlStatus" runat="server">
<asp:ListItem >All</asp:ListItem>
<asp:ListItem Selected="True" >Active</asp:ListItem>
<asp:ListItem >InActive</asp:ListItem>
</asp:DropDownList>
从第二页到第一页我必须使用查询字符串将 InActive listitem 作为输入传递
lnkmyCandidates.NavigateUrl = "~/Employer.aspx?value="InActive";
我不知道如何将非活动作为输入传递到第一页。
【问题讨论】:
-
你的意思是:如果查询字符串中有一个值,你需要在下拉列表中添加一个带有 that 值的列表项吗?
-
问题不清楚,你想要什么?您是否希望在使用 ddlSatus 进入页面时,您需要一个查询字符串,其中应将固定值 InActive 作为查询字符串传递?或者是其他东西 ???你还需要展示你到目前为止为实现它付出的努力
-
我需要 inactive 作为固定值