postback doesn't work with validators.!

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default 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 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.




    Anushi Guest

  2. Similar Questions and Discussions

    1. Validators
      I gave up and just wrote my own validator to handle all my date validation. bill "J. Marcelo Barbieri" <mbarbieri@bf.com.br> wrote in message...
    2. Combo Box & Validators
      Hi, I am trying to validate a form in Flex. The form is made up of many text input boxes and combo boxes. I can validate the text inputs quite...
    3. JS validation doesnt work when NET build-in validators are used
      I am frustrated by the issue, and looking for a workaround. I have a dropdown list, and a button and some other controls on the page. When the...
    4. Validators in version 1.1
      We have a technique for our order process whereby we simply turn panels on and off to capture data for the various stages, rather than the normal...
    5. After PostBack my UserControls Property doesn't work correct
      Hello, I have this page.aspx ---------- <%@ Register TagPrefix="uc1" TagName="Userdetails" Src="Userdetails.ascx" %> ... <asp:datagrid...
  3. #2

    Default RE: postback doesn't work with validators.!

    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:
    > 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.
    >
    >
    >
    >
    >
    DotNetJerome Guest

  4. #3

    Default Re: postback doesn't work with validators.!

    "Anushi" <someone@somewhere.com> wrote in message
    news:uCFOzuMGFHA.1392@tk2msftngp13.phx.gbl...
    > 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


    Jos Guest

  5. #4

    Default Re: postback doesn't work with validators.!

    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:068AF46A-AF31-418F-A5EA-A91B9B1B080B@microsoft.com...
    > 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:
    >
    > > 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.
    > >
    > >
    > >
    > >
    > >

    Anushi Guest

  6. #5

    Default Re: postback doesn't work with validators.!

    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@fastmail.fm> wrote in message
    news:Oenu4eOGFHA.1396@tk2msftngp13.phx.gbl...
    > "Anushi" <someone@somewhere.com> wrote in message
    > news:uCFOzuMGFHA.1392@tk2msftngp13.phx.gbl...
    > > 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
    >
    >

    Anushi Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139