473,406 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Datagrid Rec Field Validator!!

Hi all,

I have a asp:required field validator in a datagrid footer containing a
textbox control. (To add new row)
I have an issue in that while the footer is hidden and not required it is
cause 'Page Validator' not defined javascript errors when any unrelated link
buttons are clicked.

I have tried setting the enabled property to false, but that had no effect.
When i have the datagrid footer displayed no errors occur. But that kind of
spoils everything i am out to achieve.

Any Suggestions!!
AK
Nov 19 '05 #1
1 1390
There is a bug in the DataGrid that affects controls which output javascript
when they are placed into the footer (or header) and that part is invisible.
You must set the Visible property on your control to false when the footer
is also invisible. (You were close - setting Enabled to false. Switch to
setting Visible=false)

--- Peter Blum
www.PeterBlum.com
Email: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"Adam Knight" <de*@brightidea.com.au> wrote in message
news:uC**************@tk2msftngp13.phx.gbl...
Hi all,

I have a asp:required field validator in a datagrid footer containing a
textbox control. (To add new row)
I have an issue in that while the footer is hidden and not required it is
cause 'Page Validator' not defined javascript errors when any unrelated
link buttons are clicked.

I have tried setting the enabled property to false, but that had no
effect.
When i have the datagrid footer displayed no errors occur. But that kind
of spoils everything i am out to achieve.

Any Suggestions!!
AK

Nov 19 '05 #2

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

Similar topics

4
by: RA | last post by:
Hi How do I disable it if the user pressed a button: asp:imagebutton id="btnHome" onclick="test()" runat="server" What I want to have is that if someone presses this button then the required...
6
by: Paul | last post by:
I am trying to setup a field validator and tried using the control to validate set to a dropdown list box but did not seem to work. Is there anyway to set this up or do you need to use client side...
2
by: z. f. | last post by:
Hi, i have a field with required field validator. on the client side it's working. when i submit without the required field the page gets back because of not valid, but the message from the...
1
by: Sam Collett | last post by:
Is there a way of having a required field validator check to see if at least one of a set of controls has information in it? I'm sure this can somehow be done using a custom validator, but would...
6
by: hansiman | last post by:
I'm having trouble getting the required field validator to work. I can still save the row in the datagrid... I can't see what I'm doing wrong. <asp:TemplateColumn SortExpression="c.Password"...
0
by: Santosh | last post by:
Dear all i am using datagrid control with in my web page i am adding required field validator in datagrid i want to activate it only when save button is pressed for that i am initially set...
7
by: Newbie Coder | last post by:
How do I use a Required Field Validator control in ASP.NET 2.0 to validate an e-mail address entered into a textbox control because there is no VALIDATION EXPRESSION like in previous versions? ...
0
by: nimeshdotnet | last post by:
Hi All, I have a textbox whose readonly property is set to true. This textbox is also guarded by a required field validator. What i m doing that I have a calendar control whose on date selection i...
0
by: cmrhema | last post by:
Hi, I populate two dropdownlist in asp.net. Both are assigned to a required field validator. The codebehind is as below if (!Page.IsPostBack) { DataTable dt = new...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
marktang
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,...
0
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...
0
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,...
0
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...
0
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...
0
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...

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.