Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.††If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old July 27th, 2005, 03:45 PM
Friend of Wrox
 
Join Date: Jun 2003
Location: Harrisburg, PA, USA.
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default Error rendering Validator control

Hello,

I have a composite control that has a validator in it, but the weird thing is, I have another composite control and the validator works in one, but not in the other. I have the same settings (just copied over); I can't figure it out. In CreateChildControls I have:


rfvSearchText = New RequiredFieldValidator

With rfvSearchText

.ID = "rfvSearchText"

.Display = ValidatorDisplay.Static

.Text = "*"

.ErrorMessage = "Please enter search text"

.ToolTip = .ErrorMessage

.ControlToValidate = txtSearchText.ID

End With

And in the Render method, I render it as such:


If (Me.SearchTextRequiredErrorMessage <> String.Empty) Then

rfvSearchText.RenderControl(writer)

End If

It renders, but it shows by default, whereas the other one is hidden. Any idea why the * appears by default? This is at runtime, not design time. The * appears for the first control, but it properly hides it for the second one.

Thanks.

Brian
__________________
Brian
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
error rendering control pnlAddEdit in Wrox Blog admwta ASP.NET 2.0 Basics 2 July 31st, 2008 10:48 AM
validator control error amit.jagtap ASP.NET 1.0 and 1.1 Basics 2 October 1st, 2007 07:07 AM
User Control not rendering in Master Page skmcusp ASP.NET 2.0 Basics 2 September 10th, 2007 04:58 PM
Control validator Lofa ASP.NET 1.0 and 1.1 Basics 0 February 21st, 2006 12:57 PM
DataGrid Controls Within custom validator control geetha_ganesan ADO.NET 1 March 26th, 2005 03:38 PM



All times are GMT -4. The time now is 01:30 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.