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

jquery - How do you format the date used in the popover widget title of FullCalendar? -

Bubble Sort Manually a Linked List in Java -

asp.net mvc - SSO between MVCForum and Umbraco7 -