Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Jerome #1
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
-
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... -
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:... -
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... -
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... -
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... -
Jerome #2
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,
>
> JeromeJerome Guest
-
Kevin Marshall #3
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



Reply With Quote

