Question how to pop up alert message when forgot to insert a value?

kinki_2046

Member
Joined
Jun 8, 2011
Messages
23
Programming Experience
Beginner
Dear all,

I am using vb.net with the aspx.
how to pop up alert message when forgot to insert a value in the textbox?


Thanks.
 
how to make alert message when does not insert value into a textbox?

Dear all,

This is in the aspx with vb.
I have a textbox that request user to insert a value.

So, I need to check whether user has insert or not.

If has value, then redirect to other page, if not then will pop up an alert message to inform user to insert value.
I have google it, maybe can use "ClientScript", but I was fail to do it

Please show me an example.

Thanks.
 
Producing a pop-up or Modal window is relatively straight forward... check out ModalPopup Sample

What you may want to consider is hitting two birds with one stone and using Validators, on page submit the validation logic will check the relevant controls and can flag where a control fails validation - for example when the user has left it blank.
 
re

Producing a pop-up or Modal window is relatively straight forward... check out ModalPopup Sample

What you may want to consider is hitting two birds with one stone and using Validators, on page submit the validation logic will check the relevant controls and can flag where a control fails validation - for example when the user has left it blank.




Thanks for your reply.

But I need a separate pop up message.
Can you give me an example that will prompt up an alert message if does not insert a value.

I have try the clienscript.registerStartupScript, but I was fail.

Can you help me.

Thanks
 
Back
Top