Hi there, when I click on Save button and if my text box is empty, I want to display an error pop up message box and grey out the page background. How can I achieve this in ASP.net page in VB, I have tried most of the code in quote in my code behind. The
only one working is Msgbox but Msgbox pop ups in ISS doesn't really work sometimes, please help.
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Member
4 Points
10 Posts
Display Pop Up Message Box and Grayout page background
Jul 04, 2017 04:39 AM|hansheung|LINK
Hi there, when I click on Save button and if my text box is empty, I want to display an error pop up message box and grey out the page background. How can I achieve this in ASP.net page in VB, I have tried most of the code in quote in my code behind. The only one working is Msgbox but Msgbox pop ups in ISS doesn't really work sometimes, please help.
Code behind
All-Star
52302 Points
15569 Posts
Re: Display Pop Up Message Box and Grayout page background
Jul 04, 2017 06:37 AM|oned_gk|LINK
Try this
Suwandi - Non Graduate Programmer
Contributor
6720 Points
2715 Posts
Re: Display Pop Up Message Box and Grayout page background
Jul 05, 2017 10:03 AM|Eric Du|LINK
Hi hansheung,
According to your description, you could use jQuery to check all the textboxes value, then show the message in the dialog:
Sample Code:
Best Regards,
Eric Du
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.