`enter code here` NET application, I have inserted a button that call a Javascript function (OnClick event) and a asp.net function (OnClick event)
The problem is that when I click the button, it refreshes the page.
How can I avoid the page refreshes click on asp button using javascript?

```js
 document.getElementById('pageurl').innerHTML = "tryfblike.aspx";
          $('#<%= btnsave.ClientID %>').click();
          $('#auth-loggedout').hide();
```

```
<asp:Button runat="server"  ID="btnsave" OnClick="btnsave_Click();"  Visible="true" style="display: none;"  />

protected void btnsave_Click(object sender, EventArgs e)
{
    objda.agentid = "2";
    string currenttime = DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss");
    objda.datetime = currenttime;
    ds = objda.tbl_log();
}

```