Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Update Panel Alert Comfirm Message

$
0
0

Hello everyone,

I want to do alert comfirm message . How can I do if click Yes go on process but if click the cancel return process. Can you help me?

  string message = "Yeterli puanınız yok. Dilerseniz Kredi Kartı ile alabilirsiniz.";
                    System.Text.StringBuilder sb = new System.Text.StringBuilder();
                    sb.Append("return confirm('");
                    sb.Append(message);
                    sb.Append("');");

                    
                    ScriptManager.RegisterStartupScript(this, typeof(string), "Message", "if(confirm('Yeterli puanınız yok. Dilerseniz Kredi Kartı ile alabilirsiniz.')){alert('Yes');}else{alert('cancel');}", true);


Viewing all articles
Browse latest Browse all 5678

Trending Articles