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

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -