c# - Navigate Url in Hyperlink is not redirect my page? -


i have hyperlink use navigateurl attribute , give url link in not redirect target page. can when redirect url using code behind working properly. have mention code use in code behind, don't want put code on code behind. can me wrong here.

        <asp:hyperlink id="hlnkadduser" runat="server" onclick="return gb_show('add hiring manager', this.href, 500, 650)"             imageurl="~/images/resources/thumb/add.png" tooltip="add hiring manager" text="add hiring manager"></asp:hyperlink>         **<%--navigateurl='<%# "~/recruiter/adduser.aspx?userid=0" + "&profileid=" + hdnclientid.value  + "&usertypeid=8"  %>'--%>**          string hlnkadduserurl = string.format("~/recruiter/adduser.aspx?userid=0" + "profileid=" + hdnclientid.value + "usertypeid=8");         hlnkadduser.navigateurl = hlnkadduserurl; 

if onclick function return 'false' default browser action (redirect page provided in href attribute) not take place.

make sure gb_show not return false.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -