Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Validation controls and UpdatePanel

Reply
Thread Tools

Validation controls and UpdatePanel

 
 
J055
Guest
Posts: n/a
 
      08-12-2009
Hi

I have a number of problems using validation controls within an UpdatePanel.
I'm using the latest framework. I have a ListView control with some text
boxes and validators and a ValidationSummary control all within the
UpdatePanel.

1. When I use an insert command the first time the validator and
ValidationSummary work as expected. When I click another button and then
try to insert again, the validators don't display. Works ok with
EnablePartialRendering="false".

2. When I delete a row in the ListView and then click another linkbutton I
get a null object error in the client script. The control object is null:

function ValidatorGetValue(id) {
var control;
control = document.getElementById(id);
if (typeof(control.value) == "string") {
return control.value;
}
return ValidatorGetValueRecursive(control);
}

What do I need to do to allow these validators to work correctly when used
inside an UpdatePanel?

Many thanks
Andrew

 
Reply With Quote
 
 
 
 
Allen Chen [MSFT]
Guest
Posts: n/a
 
      08-13-2009
Hi Andrew,

>I have a number of problems using validation controls within an

UpdatePanel.
>I'm using the latest framework. I have a ListView control with some text
>boxes and validators and a ValidationSummary control all within the
>UpdatePanel.


I'm willing to assist on this issue. But first, I think I need a demo
project that can reproduce this issue. Could you send it to me? Then I can
do some tesets on my side for troubleshoting. To make it as simple as
possible, I suggest you create a new project that doesn't interact with
database. Then add code logic until the problem occurs.

My email is . Please update here after sending the
project in case I missed that email.

Regards,
Allen Chen
Microsoft Online Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/en-us/subs...#notifications.

Note: MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 2 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions. Issues of this
nature are best handled working with a dedicated Microsoft Support Engineer
by contacting Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/en-us/subs.../aa948874.aspx
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.


 
Reply With Quote
 
 
 
 
J055
Guest
Posts: n/a
 
      08-14-2009
Hi Allen

I started creating a new project yesterday but couldn't reproduce the
problem. I eventually found that the original project's web.config file had
an empty compilation segment, i.e. no

<add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=31BF3856AD364E35"/>

entry which I believe is where the ajax friendly validation controls are.

Anyway, the project seems to work as expected now.

Thanks
Andrew

 
Reply With Quote
 
Allen Chen [MSFT]
Guest
Posts: n/a
 
      08-14-2009
Hi Andrew,

>I started creating a new project yesterday but couldn't reproduce the
>problem. I eventually found that the original project's web.config file

had
>an empty compilation segment, i.e. no


><add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral,
>PublicKeyToken=31BF3856AD364E35"/>


>entry which I believe is where the ajax friendly validation controls are.


>Anyway, the project seems to work as expected now.


Glad to know you've resolved this issue on your own. Creating a new project
is always a good option to troubleshoot. We're likely to find out the
culprit by comparing two projects.

Thank you for using our Newsgroup Support Service!

Regards,
Allen Chen
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
.
=================================================

 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
UpdatePanel and controls DavidC ASP .Net 1 04-02-2010 12:10 PM
Triggering an UpdatePanel with a trigger located outside of the UpdatePanel Nathan Sokalski ASP .Net 1 06-15-2009 06:23 PM
How get past invalid postback when using AJAX ScriptManager and UpdatePanel controls? Ronald S. Cook ASP .Net 0 01-23-2008 07:33 PM
Custom controls and UpdatePanel Fabien Henriet ASP .Net Building Controls 0 01-12-2008 01:26 PM
refresh an updatePanel in an other updatePanel fran_j_diaz@yahoo.fr ASP .Net 3 08-08-2007 06:30 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57