I develop a webpage in that the user want to call a JavaScript function. Based on what the function returns I want to continue the link button URL. I paste my code below.
<script type="text/javascript">
function fvalidate()
{
var i = document.getElementById('txtvalue').value;
if(i=='23')
{
Here I want to execute server side code
}
else
{
I want to show some alert message to the user and the page won't refresh.
}
}
</script>
<asp:LinkButton
Width="35px"
ID="updateUserL"
runat="server"
OnClick="updateForm_Click"
CssClass="btn"
OnClientClick="fvalidate();"
>Update</asp:LinkButton>