Reputation: 1380
Hei, I want know how put in my application the bootstrap modals, but I need it launch them automatically, the objective is show a error message... I throw them on the catch block in ASP .NET(this I can do) ;D Thanks
Upvotes: 0
Views: 108
Reputation: 186
You may use the ScriptManager.RegisterStartupScript method, passing the script: $('#myModal').modal('show')
. If you are in a partial postback, you should use the RegisterClientScriptBlock instead.
[]s
Upvotes: 1