keyongtech


  keyongtech > dotnet.framework.aspnet.* > dotnet.framework.aspnet.main > 02/2005

 #1  
02-22-05, 10:45 AM
Anushi
I have a strange problem.. once I put any validators on my form, say a
simple RequiredFieldValidator, then there is no postback happening.

Even on a button click, there is no refreshing of the form in the browser,
and no postback !!!

Is anyone else facing a similar problem ? What could be the possible
reasons?

I have even tried reinstalling VS.NET and IIS afresh, but no help !!

Please suggest.

Thanks.
 #2  
02-22-05, 11:09 AM
DotNetJerome
Hi Anushi,

Really strange probs...

Postback will not happened, only if the validator controls are not met their
requirements or conditions. Otherwise post back has to occur.

Make sure that you are clearing all the coditions of the vaildator
control(s) you placed in your web form.

Cheers,

Jerome. M




"Anushi" wrote:
[..]
 #3  
02-22-05, 12:30 PM
Jos
"Anushi" <someone> wrote in message
news:1392
> I have a strange problem.. once I put any validators on my form, say a
> simple RequiredFieldValidator, then there is no postback happening.
>
> Even on a button click, there is no refreshing of the form in the browser,
> and no postback !!!
>
> Is anyone else facing a similar problem ? What could be the possible
> reasons?
>
> I have even tried reinstalling VS.NET and IIS afresh, but no help !!


Sometimes this happens when you use ID's that conflict with particular
JavaScript methods or objects.
For instance, never give your button an ID="submit".

Jos
 #4  
02-22-05, 12:35 PM
Anushi
Hi Jerome,

Thanks for the response.
My validators are correctly set.
I tried the same application on other machines, they are working fine. So I
am suspecting there are some system level configurations which are missing..
maybe something in the machine.config file..
any ideas ?

Thanks again !


"DotNetJerome" <reachjerome@_yahoo.com-remove-the-underscore-after@> wrote
in message news:080b
[..]
 #5  
02-22-05, 01:19 PM
Teemu Keiski
Maybe you have just upgraded to Framework1.1 SP 1? Check this out:

BUG: The Submit button on ASP.NET pages does not work after you install the
..NET Framework 1.1 Service Pack 1
http://support.microsoft.com/default...b;en-us;889877
 #6  
02-22-05, 01:33 PM
Teemu Keiski
Was going to add that see this for detailed explanation
http://scottonwriting.net/sowBlog/posts/2943.aspx
 #7  
02-22-05, 03:07 PM
Iain Norman
On Tue, 22 Feb 2005 15:33:10 +0200, "Teemu Keiski"
<joteke> wrote:

>Was going to add that see this for detailed explanation
>[..]



Thank you I've been having this problem and had just got around it by
disabling the client side checking!

Thanks again.

Would help if Microsofts KB article had the correct path in it though!

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322.aspne t_regiis.exe -c

should be

C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\aspne t_regiis.exe -c

Doh.

I
 #8  
02-23-05, 07:23 AM
Anushi
Thank you everyone for your inputs. However, I just got it working.

The .js files located here..
C:\Inetpub\wwwroot\aspnet_client\system_web\1_1_43 22 were bad.

I replaced them with the ones created when I ran resiis again ! They were
at.. C:\WINNT\Microsoft.NET\Framework\v1.1.4322\ASP.NET ClientFiles

P.S. Ian Norman.. disabling client-side scripting is a work-around, yes. But
the validators start behaving wierdly after this. This has to do with the
client-side scripting, and the two javascript files which perform these
checks for you need to be in place :-)



"Jos" <jnospambranders> wrote in message
news:1396
[..]
Similar Threads
Why are my validators refusing to work?

Hi guys, this is really driving me crazy, any help appreciated. using ASP.NET 2.0 in VS 2005 and reviewing with IE7. I have some fields with validators attached to them. If...

postback doesn't work with validators.!

I have a strange problem.. once I put any validators on my form, say a simple RequiredFieldValidator, then there is no postback happening. Even on a button click, there is...

Validators does not work in production

Hi My RequireFieldValidator works fine in my Development machine, but when I deploy it to the hosting, the validator does not work. What is happening here?

postback doesn't work in ascx

Hi all, i've got a control that has a button and when clicked on it would send a postback, all of this works fine when the control is placed on a webform (aspx) but doesn't...

HTML Reset Button Doesn't work after postback with Submit button

Hi, I have an HTML RESET button and Web Control Button that posts back to the server. Problem is the reset button doesn't work after the postback occurs. Any ideas...


All times are GMT. The time now is 09:24 AM. | Privacy Policy