In a vb.net 2010 webform application, I am going to display a popup javascript alert message for the user when there are 2 records in the database for the current school year for each unique student. This popup message is displayed since the user needs to
update the database using vendor software.
For the javacript alert message, I have the following questions:
1. At the top the alert message, it says 'Message from Web Page' since that is probably the default value. Is there a way that I can change this message to something I want? If so, how can I change the message?
2. I am wondering what if there maximum length that I can display in the error message? If so, what is the maximum length?
3. Can I extend the maximum size of the message and if so, can you show me how to extend the size of the error message?
4. Can I change the display icon to be an error instead of a warning? If so, how would I accomplish this goal?
It seems there is no way to create the alert message for a custom style. However, you could use Bootstrap Modal Plugin or AJAX ModalPopupExtender. They are dialog box/popup window displayed on top of the current page and can be designed for a custom style.
Member
70 Points
129 Posts
javascript alert message
Aug 17, 2016 06:15 PM|peggy_girl|LINK
In a vb.net 2010 webform application, I am going to display a popup javascript alert message for the user when there are 2 records in the database for the current school year for each unique student. This popup message is displayed since the user needs to update the database using vendor software.
For the javacript alert message, I have the following questions:
1. At the top the alert message, it says 'Message from Web Page' since that is probably the default value. Is there a way that I can change this message to something I want? If so, how can I change the message?
2. I am wondering what if there maximum length that I can display in the error message? If so, what is the maximum length?
3. Can I extend the maximum size of the message and if so, can you show me how to extend the size of the error message?
4. Can I change the display icon to be an error instead of a warning? If so, how would I accomplish this goal?
Member
540 Points
130 Posts
Re: javascript alert message
Aug 18, 2016 09:59 AM|Ailleen|LINK
Hi peggy_girl,
It seems there is no way to create the alert message for a custom style. However, you could use Bootstrap Modal Plugin or AJAX ModalPopupExtender. They are dialog box/popup window displayed on top of the current page and can be designed for a custom style.
Bootstrap Modal Plugin:
http://www.w3schools.com/bootstrap/bootstrap_modal.asp
AJAX ModalPopupExtender:
https://ajaxcontroltoolkit.codeplex.com/wikipage?title=ModalPopup%20Control&referringTitle=Tutorials
Best Regards,
Ailleen
MSDN Community Support
Please remember to "Mark as Answer" the responses that resolved your issue.