I want to show a message box when the user enters the wrong "A" D or password. I type the following function in the .aspx file:
& lt; Script type = "text / javascript" & gt; Function Warning Message () {$ .msgbox ({title: "HatalÄ ± GiriÅ ??", Content: "Kullan ± numerals ± or da A ... efre removed ± ...", type: "error", Button: [{Value: "OK"}]}); } & Lt; / Script & gt; And I write the following code in the aspx.cs file:
ScriptManager.RegisterStartupScript (this.page, this.GetType (), "warning message "," Warning message () ", incorrect); But this code does not work Can you help me?
It is necessary to include 3 files while using:
& Lt; Script src = "scripts / jquery-2.0.0.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Script src = "script / jquery.msgBox.js" type = "text / javascript" & gt; & Lt; / Script & gt; & Lt; Link href = "Styles / msgBoxLight.css" rel = "stylesheet" type = "text / css" & gt; I used this code on client-side:
On the server-side:
Page.ClientScript.RegisterStartupScript (this.GetType (), blank, "warning message ();", true) ; This works best for me
No comments:
Post a Comment