I got a problem with anchor tag and server code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bharathreddy
    New Member
    • Aug 2006
    • 116

    I got a problem with anchor tag and server code

    hi guys,

    I want to send the data from one page to another page using the anchor tag. I have a usergroupid data which i need to sent to the other page. I am getting the syntax error in it. Can any one tell me whats wrong in my clientside code.

    <a id="lnkBtnEdit " runat="server" href='AddUserGr oups.aspx?UserG roupId=<%# Eval("UserGroup Id") %>&Mode=Update ' >


    Thanks & Regards
    Bharath Reddy VasiReddy
  • bharathreddy
    New Member
    • Aug 2006
    • 116

    #2
    hi I got it.
    Clientside and Server side code for anchor tag.

    <a id="HyperLink1 " runat="server" href="<%# Eval("UserGroup Id", "AddUserGroups. aspx?UserGroupI d={0}") + "&Mode=Upda te" %>">Click Me</a>


    Thanks
    Bharath Reddy VasiReddy

    Comment

    Working...