In your program logic sometimes you need to show alert messages in .NET Web Applications.. You can do this by adding java script attributes to the actions of your controls:
Simple Alert Message:
Button1.Attributes.Add("OnClick", "javascript:alert('Write your message here')");Confirmation Alerts (Okey, Cancel):
Button1.Attributes.Add("OnClick", "javascript:if(!confirm('Are you sure about this opertaion?')) return false;");Yours sincerely...
Hiç yorum yok:
Yorum Gönder