Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 6th, 2007, 03:23 AM
Registered User
 
Join Date: Mar 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default URGENT-->Problem in validation

How to validate a textbox placed in .ascx page from .aspx page??

 
Old March 6th, 2007, 08:10 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi

Can you be more specific with your issue, so that we can assist you in a better way...

Regards
Mike

Fortune favours the brave, so don't regret on missed oppurtunities.
 
Old March 9th, 2007, 06:16 AM
Registered User
 
Join Date: Mar 2007
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,

        Actually,there is one textbox with id=t1 on .ascx page(User Control).
I have registered The control using LoadControl()method on .aspx page.
Now,I want to Validate t1 on .aspx page.I have tried it by retrieving ID of textbox by using Get() method.I passed this id to the dynamically created required field validator's controlToValidate().But it gives me an error:Control with id t1 not found

        Please reply me as soon as possible.
Thanks,
Aekta


 
Old March 9th, 2007, 07:29 AM
Authorized User
 
Join Date: Feb 2007
Posts: 20
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi,

the control should be validated in the ascx using the required field validator or any other validation tool from the validation toolbox, setting the validator control to validate property to t1, after finish working with the ascx control, just drag and drop it in the desired place in the aspx form, then the control and the validation will work properly.

have a nice day
nesrine






Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent Validation!! mike_remember ASP.NET 1.0 and 1.1 Professional 5 September 7th, 2007 10:25 AM
please help me in validation urgent akssmv C# 2005 1 July 9th, 2007 05:49 AM
validation help urgent please akssmv C# 2005 1 June 24th, 2007 01:44 PM
textbox validation please help urgent akssmv C# 2005 5 June 11th, 2007 11:19 AM
xslt -> xhtml validation rahulsk1947 XSLT 3 May 17th, 2007 02:54 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.