c# - <a> tag refreshes my asp.net page -


i have tag within listview direct user profile page

<a class="btn btn-sm btn-default" href="profile.aspx?id=<%# eval("ownerid") %>"></a> 

the profile page works can load myself. when hover on tag shows the correct link it'll directed to, when click on it, refreshes current page, i've used tag same way in different pages , works reason not work here.

what reason why?

i think need try anchor tag, href should in single quote.

<a class="btn btn-sm btn-default" href='profile.aspx?id=<%# eval("ownerid")%>'>for test</a> 

Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -