Developers Heaven Forum
Desktop Programming => .NET Programming => ASP.NET => Topic started by: admin on May 12, 2008, 02:09:55 PM
-
Two ways to bind links :)
<a href='Default.aspx?Id=<%# Eval("SenderID") %>&BlogId=<%# Eval("BlogID") %>'>
<asp:Label ID="Label2" runat="server" ForeColor="OrangeRed" Text='<%# Bind("BlogTitle") %>' Font-Bold="True" Font-Size="Large"></asp:Label>
<asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="True" Font-Size="Larger"
ForeColor="OrangeRed" NavigateUrl= '<%# "~/SocialMembers/Blog/Default.aspx?Id="+ Eval("SenderID")+"&BlogId="+ Eval("BlogID") %>'>
<asp:Label ID="Label3" runat="server" ForeColor="OrangeRed" Text='<%# Bind("BlogTitle") %>' Font-Bold="True" Font-Size="Large"></asp:Label>
</asp:HyperLink>