How to validate Usercontrol text Box

Posted by Self-Innovator under ASP.NET on 2/27/2012 | Points: 10 | Views : 2031 | Status : [Member] | Replies : 3
Hi friends...
how do i validate the User control textbox is empty or not...
i've tried but the framework didn't intellisense wit .ext property
If UcAddress1.FindControl("txtAddressLin1").Text=="" Error here

Join Hands Change lives
Thanks & Regards
Straight Edge Society



Responses

Posted by: Blessyjees on: 2/27/2012 [Member] Bronze | Points: 25

Up
0
Down
Hi,

You can add validation control in your usercontrol for validation. Or you can use a public property for textbox value and check that property in the web page like UcAddress1.TextProperty == string.empty

Blessy Baby
Digitalmesh Softech pvt Ltd
https://blessybaby.wordpress.com/

Self-Innovator, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Vijayar on: 2/27/2012 [Member] Starter | Points: 25

Up
0
Down
Hi
Refer the link
http://forums.asp.net/t/868938.aspx/1

vijaya

Self-Innovator, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response