I use to validate the TextBox which hasn't been empty and i am focussing using the button.But it is not validating it hasn't showing the message,it is directly inserting the value.This is the code
Else
If txtfilepath.Text <> "" Then
MsgBox("Select The File Path")
Button1.Focus()
Can any one help me?
Can any one help me?

Jignesh TrivediPosted May 6, 2014, 2:15 AM
I think we can perform the validation on readonly textbox. so make your txtfilepath text box readonly instead of disable.
Sathya NarayanPosted May 6, 2014, 1:40 AM
I am Validating through VB.net,but the validation hasn't taking the condition which comes out of the condition and not satisfying.The textbox(txtfilepath.text) which i have took is being enabled false.How to validate this.Please let me know about this?
This is how i am doing this validation and also going to modify the values.
Gopi ChandPosted May 5, 2014, 12:22 PM
http://www.c-sharpcorner.com/UploadFile/9a9e6f/form-validation-through-php/
http://www.c-sharpcorner.com/UploadFile/9a9e6f/validation-in-javascript/