I have a problem where I have some text boxes in my datagrid.
The problem is the message gets displayed and moves the cells to the right.
Is there a way to tell the messages to go to a specific asp:label? If I
could put the label at the bottom of the page (or top) and tell the
Validator to put it there that would solve the problem.
I suppose I could use the CustomValidator for my ranges, but I was wondering
if there was a different way to handle this.
Thanks,
Tom 5 1003
Why dont you use Validation Summary control to display all the error
messages. This way you ensure that messages are displayed in the summary
control., which you can position where ever you want, possibly at the top of
the page
--
Kumar Reddi http://kumarreddi.blogspot.com
"tshad" <ts**********@ftsolutions.com> wrote in message
news:u7**************@tk2msftngp13.phx.gbl... I have a problem where I have some text boxes in my datagrid.
The problem is the message gets displayed and moves the cells to the
right. Is there a way to tell the messages to go to a specific asp:label? If I could put the label at the bottom of the page (or top) and tell the Validator to put it there that would solve the problem.
I suppose I could use the CustomValidator for my ranges, but I was
wondering if there was a different way to handle this.
Thanks,
Tom
"Kumar Reddi" <ku********@REMOVETHIS.gmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... Why dont you use Validation Summary control to display all the error messages. This way you ensure that messages are displayed in the summary control., which you can position where ever you want, possibly at the top
of the page
I'll check that out. I didn't know about that or how it works. Will check
it out tomorrow.
thanks,
Tom -- Kumar Reddi http://kumarreddi.blogspot.com
"tshad" <ts**********@ftsolutions.com> wrote in message news:u7**************@tk2msftngp13.phx.gbl... I have a problem where I have some text boxes in my datagrid.
The problem is the message gets displayed and moves the cells to the right. Is there a way to tell the messages to go to a specific asp:label? If I could put the label at the bottom of the page (or top) and tell the Validator to put it there that would solve the problem.
I suppose I could use the CustomValidator for my ranges, but I was
wondering if there was a different way to handle this.
Thanks,
Tom
tshad wrote: I have a problem where I have some text boxes in my datagrid.
The problem is the message gets displayed and moves the cells to the right.
Is there a way to tell the messages to go to a specific asp:label? If I could put the label at the bottom of the page (or top) and tell the Validator to put it there that would solve the problem.
I suppose I could use the CustomValidator for my ranges, but I was wondering if there was a different way to handle this.
Thanks,
Tom
The validator doesn't need to be right next to the textbox it is
validating, you can put it anywhere on the page. The link between
textbox and validator is via ControlToValidate.
(and, as others said, look into ValidationSummary)
--
Hans Kesting
"Hans Kesting" <ne***********@spamgourmet.com> wrote in message
news:ut*************@TK2MSFTNGP15.phx.gbl... tshad wrote: I have a problem where I have some text boxes in my datagrid.
The problem is the message gets displayed and moves the cells to the right.
Is there a way to tell the messages to go to a specific asp:label? If I could put the label at the bottom of the page (or top) and tell the Validator to put it there that would solve the problem.
I suppose I could use the CustomValidator for my ranges, but I was wondering if there was a different way to handle this.
Thanks,
Tom The validator doesn't need to be right next to the textbox it is validating, you can put it anywhere on the page. The link between textbox and validator is via ControlToValidate. (and, as others said, look into ValidationSummary)
You're right. I hadn't thought of that. I am going to look at both
options.
Thanks,
Tom -- Hans Kesting This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: John Sutter |
last post by:
I have a webpage which has a few asp:textbox's and an asp:button. I also
have a few RequiredFieldValidators for these text boxes. When I click on
the button while the textboxes are empty, I don't...
|
by: Helen |
last post by:
Hi
I'm using ASP.NET's standard validators to display error messages when
people don't fill in required fields on my form.
The error messages currently show as soon as the form is loaded, but...
|
by: gh0st54 |
last post by:
Hi
I have a weird javascript error that only happens on my live server
when i open the page http://www.imrated.co.uk/reg.aspx
i get the error 'Problems with this page ... blablabla
Line : 3...
|
by: tshad |
last post by:
I have a page that is very long so I have set it up to page using <div> to
display or hide the different pages. When I get to the last page the user
submits the page.
This works great, except...
|
by: David Thielen |
last post by:
Hi;
I have some error messages I have to create (can't use the validators). I
have done this using both labels and literals - is there any reason to prefer
one over the other?
Note: We are...
|
by: Mike Hofer |
last post by:
In my ASP.NET application, *one* page would not render in the
application. All others would show up just fine, but when the user
clicked the button to browse to this one page, I'd get a nasty error...
|
by: saurabh |
last post by:
Hey,
I have a form in which there are say 10 fields. I am using validator
control for all the fields. suppose user forgets to fill field no. 5, 8
, 9 and 10.
So on clicking the save...
|
by: Eric Layman |
last post by:
Hi,
Are there ways for customvalidator to have 2 different error messages?
eg: i have 2 conditions to check using customvalidator
depends on condition, i would need to return 2 different...
|
by: phpmel |
last post by:
Hi,
I don't really have a problem, I just wanted some advice on how to approach a certain situation. I have a form that is formatted using a table. there are 3 rows and 3 columns. the first column...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
| |