DW and asp.net: validator problem?

Ask a Question related to Dreamweaver AppDev, Design and Development.

  1. #1

    Default DW and asp.net: validator problem?

    Hi,

    I've created an asp.net insert page in DW MX 2004 using the wizard. The
    page works alright and the data entered is saved. I've then also added
    validators to certain controls, but they're not used!? Meaning the
    record gets saved even if some fields that have a validator connected to
    it are empty!

    What am I doing wrong or what is missing?

    Thanks,

    Jerome
    Jerome Guest

  2. Similar Questions and Discussions

    1. validator qs.(1.5)
      Hi, I have a field in the form for which I have to check that it should have some specific string e.g 1234. I tried using below it works if I...
    2. ANN: TMT Validator
      This is my latest toy. It's not strictly DW related (not yet at least), but it can be handy to people that build web applications:...
    3. Validator
      Hi, I have a little problem with me form validation. When i run my page on the "Localhost" everything work fine, but when i run the page on...
    4. Help: Requiredfield validator
      Hi, I have 2 buttons A and B, textbox C and dropdown list D. When A is clicked, C is required field. When B is clicked, C and D are required...
    5. problem with button ASPX (running javascript) since I have added a control validator.
      Hi, J'ai un bouton ASPX qui doit déclencher un script java. I have an ASPX button running a javascript. To do this, I have added in the...
  3. #2

    Default Upd: DW and asp.net: validator > Firefox problem???

    Hi,

    I've now replaced the normal submit button with a 'runat="server"'
    button and activated the 'causes validation' option.

    I've tried that page with Firefox: ignores the validators, saves the data.

    Now the same page with Internet Explorer: the validators work!!

    Why does it fail with Firefox though???? :(

    Any help is greatly appreciated,

    Jerome


    Jerome wrote:
    > Hi,
    >
    > I've created an asp.net insert page in DW MX 2004 using the wizard. The
    > page works alright and the data entered is saved. I've then also added
    > validators to certain controls, but they're not used!? Meaning the
    > record gets saved even if some fields that have a validator connected to
    > it are empty!
    >
    > What am I doing wrong or what is missing?
    >
    > Thanks,
    >
    > Jerome
    Jerome Guest

  4. #3

    Default Re: DW and asp.net: validator > Firefox problem???

    > Why does it fail with Firefox though???? :(

    Because the .NET Validator controls will only output client validation code
    for IE, you should never rely on client validation.



    The main problem is because your using DreamweaverCtrls, MM built this in
    too much of a hurry and failed to include a check of Page.IsValid before
    inserting/updating DB data, DreamweaverCtrls will always blindly insert to
    the DB regardless is the page is valid or not.



    Download our modified version of DreamweaverCtrls which corrects this and
    many other problems.


    --
    Kevin Marshall
    WebXeL.com Ltd
    [url]http://www.webxel.com[/url]

    ASP.NET Dreamweaver Extensions
    [url]http://www.webxel-dw.co.uk[/url]
    "Jerome" <xxx@xxx.com> wrote in message
    news:cuv827$bj0$1@forums.macromedia.com...
    > Hi,
    >
    > I've now replaced the normal submit button with a 'runat="server"'
    > button and activated the 'causes validation' option.
    >
    > I've tried that page with Firefox: ignores the validators, saves the data.
    >
    > Now the same page with Internet Explorer: the validators work!!
    >
    > Why does it fail with Firefox though???? :(
    >
    > Any help is greatly appreciated,
    >
    > Jerome
    >
    >
    > Jerome wrote:
    >> Hi,
    >>
    >> I've created an asp.net insert page in DW MX 2004 using the wizard. The
    >> page works alright and the data entered is saved. I've then also added
    >> validators to certain controls, but they're not used!? Meaning the
    >> record gets saved even if some fields that have a validator connected to
    >> it are empty!
    >>
    >> What am I doing wrong or what is missing?
    >>
    >> Thanks,
    >>
    >> Jerome

    Kevin Marshall 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