473,699 Members | 2,656 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

textbox in panel cannot validate

how do I do this:
textbox is in a panel control.
the required field validator doesn't work.
I tried putting the required field validator inside the panel and it
doesn't work there either.
my validators are working for controls OUTSIDE the panels..
help please?
And, thank you.
J.

Nov 19 '05 #1
3 1692
JJ****@hotmail. com wrote:
how do I do this:
textbox is in a panel control.
the required field validator doesn't work.
I tried putting the required field validator inside the panel and it
doesn't work there either.
my validators are working for controls OUTSIDE the panels..
help please?
And, thank you.
J.

Hmmm, they do work inside panels...done this alot in my current project
as well. You may have to explain 'doesn't work' and show sample code...

--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
Nov 19 '05 #2
Doesn't work means: on validation, the page validates, even though
there is nothing in the textbox (in the panel) for which there is an
associated required field validator.

Textboxes that are not in the panel, and also have required field
validators, do not validate if they are missing an assigned value when
the page is validated.

There is no code other than before I call a method to save the form, I
say: Page.Validate and if valid, I call the save method.

If textboxes do work inside panels, I'm missing how to do this because
they are not working inside "my" panels...and, the textboxes outside
the panels do.

Thanks for help.

J.

Nov 19 '05 #3
Working nicely now. Not sure why...but have made sure that the
validators are associated with the panel and with the grid layout
control therein.
Maybe just taking the night off made the difference...

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1567
by: Marius Horak | last post by:
Hi, TextBox myTextBox = new TextBox(); myTableCell.Controls.Add(myTextBox); When I execute this code and myTextBox is empty I cannot focus on myTextBox using mouse unless I click at the very begining (next to the left edge). What's wrong?
1
4270
by: David Smith | last post by:
What I want to be able to do: A textbox is available that the user can enter information into. Specifically (for the purposes of this post), the user is asked to enter a number, and that number has an upper limit. I want to do validation on what the user enters as they type it in. I set up an event handler for KeyPress that restricts them from being able to enter non-numeric characters (only allowing numbers, decimal point, control...
6
4736
by: Henri | last post by:
Very strange problem : if I write: <asp:TextBox runat="server" id="myBox" /> the control's ViewState stays always empty, so it loses its properties if it's not always displayed. But if I write:
2
2448
by: A. Nonymous | last post by:
Hello, I am trying to set up a panel that appears on a page that prompts a user to enter in a note. This panel object is initially invisable and appears when the user clicks on a button. Contained within the panel are a couple of buttons and a textbox. Code is as follows: ASPX page: ---------
9
3181
by: Bill Long | last post by:
I have a control that simply displays a list of links. Following one of the links doesn't post back or redirect to another page, it simply hides the current panel and shows the one you selected... So the behavour is similar to a tab control. The user is expected to fill out required data on each of the panels before pressing a submit button which is visible from all panels. Problem I have is validating the data entered by the user. I...
11
4565
by: Keith | last post by:
I apologize for those of you who think I'm posting on the same topic. It is not that I don't appreciate all of your comments - and I'm definitely reading them all - but I think I have a differing opinion of how I want to handle the 'user experience' in the application I'm creating. While I know I could allow the user to enter in number and alpha text - in a text box - and then tell them when the execuate a command "This is not numeric data", I...
10
1771
by: aarepasky | last post by:
I am using ASP Web 2005 express. I created the user control below and I am listing the html code. I have 2 textboxes. One is txtCompanyName. The main page has 2 panels on it and a button. Panel1 contains the user control1 which is a form that has the txtCompanyName. Panel2 contains another user control2 which is another form. When I click the button, I want to do something with the textbox
0
1216
by: Brooke | last post by:
I am having problems with controls on a panel not firing. The controls that are directly on the form will validate, but the controls on the panel will not validate. I have the AutoValidate property for the form set to EnableAllowFocusChange and then I call the ValidateChildren method when the save button is clicked. If I cannot get the form to validate the controls, can I loop through each control and call the validate event? Thanks
0
1539
by: durga2005 | last post by:
hi i just added one textbox and regular expression validator in the form and set the properties for regular expression validator control. then i placed these two controls inside update panel . when i execute this, the validation was not working before placing in update panel validation was working
0
9171
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9032
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8880
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6532
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2342
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2008
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.