user1254053
user1254053

Reputation: 765

Anchor tag onserverclick not working

I am not sure why i am not able to call the server side event. Any help would be much appreciated:

<li>
    <a href="" runat="server" onserverclick="btnRoomsForRentCount_Click">
        <span class="fg1">2345</span><span class="nu1">Rooms for rent</span>
    </a>
</li>


protected void btnRoomsForRentCount_Click(object sender, EventArgs e)
{
}

Thanks

Upvotes: 2

Views: 2315

Answers (1)

Sneha
Sneha

Reputation: 31

Actually I found the code part you have provided here, is working perfect. It can be the problem with the any remaining part of code. Please check the rest of your code.

All the best...

Upvotes: 1

Related Questions