keyongtech


  keyongtech > dotnet.framework.aspnet.* > dotnet.framework.aspnet.security > 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-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
Validators work on dev box but not in production

For several Validators on different pages in my app, they work fine on my dev box (localhost) but not when the app is deployed to production. How can I troubleshoot...

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 12:03 PM. | Privacy Policy