124
rated 0 times
[
127]
[
3]
/ answers: 1 / hits: 42527
/ 11 Years ago, thu, march 28, 2013, 12:00:00
i am using bootstrap in my c# asp.net project and i want to show to show the modal popup from code behind.
in my page header i have a javascript function as follows:
function LoginFail() {
$('#windowTitleDialog').modal('show');
}
and on the click of my button i am calling the javascript as follows
ScriptManager.RegisterClientScriptBlock(this, typeof(System.Web.UI.Page), LoginFail, LoginFail();, true);
this does not show the modal popup. however, if i use something like alert('login failed')
, it works fine.
can anybody please help with this?
More From » c#