A
Amil
I have a page with a hyperlink (actually in a datalist). I want the
URL to do a postback essentially. I tried to use Page.Request in
the NavigateUrl, but it's always empty? How do I tell it to use the
current page url for the url?
<aspataList id="dlstItems" runat="server" OnItemCommand="OnItemCommand"
SelectedIndex="0">
<ItemTemplate>
<asp:HyperLink NavigateUrl="<%# Request.Path %>" Runat="server">
MyLinkText</asp:HyperLink>
</ItemTemplate>
..
..
..
URL to do a postback essentially. I tried to use Page.Request in
the NavigateUrl, but it's always empty? How do I tell it to use the
current page url for the url?
<aspataList id="dlstItems" runat="server" OnItemCommand="OnItemCommand"
SelectedIndex="0">
<ItemTemplate>
<asp:HyperLink NavigateUrl="<%# Request.Path %>" Runat="server">
MyLinkText</asp:HyperLink>
</ItemTemplate>
..
..
..