[求助]传值问题
CS:private void dl_ItemDataBound(object sender, System.Web.UI.WebControls.DataListItemEventArgs e)
{
HyperLink hp=(HyperLink)e.Item.FindControl("hl1");
if(hp!=null)
{
hp.NavigateUrl="HD_01.aspx? id=<%# DataBinder.Eval(Container.DataItem,'title') %> ";
}
HyperLink hp1=(HyperLink)e.Item.FindControl("hl2");
if(hp!=null)
{
hp.NavigateUrl="HD_01.aspx? id=<%# DataBinder.Eval(Container.DataItem,'title') %> ";
}
}
HTML:
<asp:datalist id="dl" runat="server">
<HeaderTemplate>
<FONT face="宋体">
<TABLE id="Table1" cellSpacing="0" cellPadding="0" width="750" border="0">
<TR>
<TD width="315" height="25" align="center">活动主题</TD>
<TD width="100" height="25" align="center">发起人</TD>
<TD width="100" height="25" align="center">活动时间</TD>
<TD width="65" height="25" align="center">地区</TD>
<TD width="70" height="25" align="center">活动类别</TD>
<TD width="100" height="25" align="center">人均消费</TD>
</TR>
</TABLE>
</FONT>
</HeaderTemplate>
<ItemTemplate>
<FONT face="宋体">
<TABLE id="Table2" cellSpacing="0" cellPadding="0" width="750" border="0">
<TR>
<TD align="center" width="315" bgColor="#f2fcff" height="25">
<asp:HyperLink id="hl1" runat="server" Width="171px">
<%# DataBinder.Eval(Container.DataItem,"title") %>
</asp:HyperLink></TD>
<TD align="center" width="100" bgColor="#f2fcff" height="25"><%#DataBinder.Eval(Container.DataItem,"user_name")%></TD>
<TD align="center" width="100" bgColor="#f2fcff" height="25"><%#DataBinder.Eval(Container.DataItem,"start_time")%></TD>
<TD align="center" width="65" bgColor="#f2fcff" height="25"><%#DataBinder.Eval(Container.DataItem,"city")%></TD>
<TD align="center" width="70" bgColor="#f2fcff" height="25"><%#DataBinder.Eval(Container.DataItem,"type")%></TD>
<TD align="center" width="100" bgColor="#f2fcff" height="25"><%#DataBinder.Eval(Container.DataItem,"pay_way")%></TD>
</TR>
</TABLE>
</FONT>
</ItemTemplate>
<AlternatingItemTemplate>
<FONT face="宋体">
<TABLE cellSpacing="0" cellPadding="0" width="750" border="0">
<TR>
<TD align="center" width="315" bgColor="#fbfeff" height="25">
<asp:HyperLink id="hl2" runat="server" Width="161px">
<%# DataBinder.Eval(Container.DataItem,"title")%>
</asp:HyperLink></TD>
<TD align="center" width="100" bgColor="#fbfeff" height="25"><%#DataBinder.Eval(Container.DataItem,"user_name")%></TD>
<TD align="center" width="100" bgColor="#fbfeff" height="25"><%#DataBinder.Eval(Container.DataItem,"start_time")%></TD>
<TD align="center" width="65" bgColor="#fbfeff" height="25"><%#DataBinder.Eval(Container.DataItem,"city")%></TD>
<TD align="center" width="70" bgColor="#fbfeff" height="25"><%#DataBinder.Eval(Container.DataItem,"type")%></TD>
<TD align="center" width="100" bgColor="#fbfeff" height="25"><%#DataBinder.Eval(Container.DataItem,"pay_way")%></TD>
</TR>
</TABLE>
</FONT>
</AlternatingItemTemplate>
</asp:datalist></td>
怎么样才能把TITLE这列的ID传到下一页面呀