Author Topic: Two ways to bind links  (Read 5583 times)

Offline admin

  • Administrator
  • Sr. Member
  • *****
  • Posts: 296
    • View Profile
Two ways to bind links
« on: May 12, 2008, 02:09:55 PM »
Two ways to bind links  :)


Code: [Select]
  <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>
           


       
Code: [Select]
<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>