Posted on: 6/20/2013 5:22:17 AM | Views : 621

This is my html code on .aspx page:
<div class="rooms_rent"><a id="AnchorButton" runat="server">Rooms for Rent</a></div>
aspx.cs
    protected void HtmlAnchor_Click(Object sender, EventArgs e)     {         string innerHtml = "Thank you for clicking the HtmlAnchor control.";     }
    protected void Page_Load(object sender, EventArgs e)     {                AnchorButton.ServerClick += new System.EventHandler(this.HtmlAnchor_Click);     }
This gives me javascript error: object expected
I am not able to call the HtmlAnchor_Click as well.
Please suggest how to add server click on anchor button.
thanks
...

Go to the complete details ...