[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.webcontrols

Why Validation Control does not work with Mozilla Firebird 0.6

imagina

2/19/2004 8:31:00 AM

The validation control is working well with IE. Here is the code I mentioned
for IE.
....
<form name="General" method="post" action="Default.aspx"
language="javascript" onsubmit="ValidatorOnSubmit();" id="General">
....
<script language="javascript"
src="/aspnet_client/system_web/1_1_4322/WebUIValidation.js"></script>
....

But for Mozilla it seems does not load the javascript file and do not
validate. Here is the code.
....
<form name="General" method="post" action="Default.aspx" id="General">
....

This really happen with some pages. I relly do not know why....
Hope someone could help me. Thankz in advance.


5 Answers

Alessandro Zifiglio

2/19/2004 12:35:00 PM

0

All asp.net validation controls validate clientside only on IE. For all
other browsers you get serverside validation. If you still want this kind of
funtionality you might want to develop your own suite of validation controls
which is made easy if one wanted to extend validation controls, or you could
just save yourself the time and the effort by purchasing such a control.

The most affordable and the nicest that i know of is PeterBlums Validation
controls, and they work client on a variety of browsers.

http://www.peterblum.com/VAM...

"imagina" <imagina23@yahoo.com> wrote in message
news:uvOPnCs9DHA.1592@TK2MSFTNGP10.phx.gbl...
> The validation control is working well with IE. Here is the code I
mentioned
> for IE.
> ...
> <form name="General" method="post" action="Default.aspx"
> language="javascript" onsubmit="ValidatorOnSubmit();" id="General">
> ...
> <script language="javascript"
> src="/aspnet_client/system_web/1_1_4322/WebUIValidation.js"></script>
> ...
>
> But for Mozilla it seems does not load the javascript file and do not
> validate. Here is the code.
> ...
> <form name="General" method="post" action="Default.aspx" id="General">
> ...
>
> This really happen with some pages. I relly do not know why....
> Hope someone could help me. Thankz in advance.
>
>


imagina

2/20/2004 3:40:00 AM

0

But the validation control also works on some pages with Mozilla.
I think it should has some error about my web server because yesterday it
said something about
client side javascript error and I follow the instruction it said. Something
like "aspnet_regiis.exe..."
Then the validation control does not work with Mozilla. Before this error
occured , it was working fine.

"Alessandro Zifiglio" <alessandrozifiglio@NO-SPAM-hotmail.com> wrote in
message news:X82Zb.9053$HO2.2260@news.edisontel.com...
> All asp.net validation controls validate clientside only on IE. For all
> other browsers you get serverside validation. If you still want this kind
of
> funtionality you might want to develop your own suite of validation
controls
> which is made easy if one wanted to extend validation controls, or you
could
> just save yourself the time and the effort by purchasing such a control.
>
> The most affordable and the nicest that i know of is PeterBlums Validation
> controls, and they work client on a variety of browsers.
>
> http://www.peterblum.com/VAM...
>
> "imagina" <imagina23@yahoo.com> wrote in message
> news:uvOPnCs9DHA.1592@TK2MSFTNGP10.phx.gbl...
> > The validation control is working well with IE. Here is the code I
> mentioned
> > for IE.
> > ...
> > <form name="General" method="post" action="Default.aspx"
> > language="javascript" onsubmit="ValidatorOnSubmit();" id="General">
> > ...
> > <script language="javascript"
> > src="/aspnet_client/system_web/1_1_4322/WebUIValidation.js"></script>
> > ...
> >
> > But for Mozilla it seems does not load the javascript file and do not
> > validate. Here is the code.
> > ...
> > <form name="General" method="post" action="Default.aspx" id="General">
> > ...
> >
> > This really happen with some pages. I relly do not know why....
> > Hope someone could help me. Thankz in advance.
> >
> >
>
>


Peter Blum

2/21/2004 6:43:00 PM

0

Validation will always work on the server side, to handle the browsers that
don't support Microsoft's client-side scripts. Perhaps that's what you were
seeing before it appeared broken. Then you managed to get the scripts onto
the page, perhaps by setting the ClientTarget property to "UpLevel". That
fools the page into thinking the browser is IE. The error indicates that not
everything is fine when you force client-side validation onto
Netscape/Mozilla.

Microsoft's WebUIValidation.js script file is written in DHTML. That
technology is on IE and IE for the Mac but not any of the Netscape/Mozilla
platform products. So even if you get the file to load, the browser cannot
run the javascript that it contains. That's why I rebuild validation for
ASP.NET from scratch in my "Professional Validation And More" product.

--- Peter Blum
www.PeterBlum.com
Email: PLBlum@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam...

"imagina" <imagina23@yahoo.com> wrote in message
news:%23c5NkE29DHA.2308@TK2MSFTNGP11.phx.gbl...
> But the validation control also works on some pages with Mozilla.
> I think it should has some error about my web server because yesterday it
> said something about
> client side javascript error and I follow the instruction it said.
Something
> like "aspnet_regiis.exe..."
> Then the validation control does not work with Mozilla. Before this error
> occured , it was working fine.
>
> "Alessandro Zifiglio" <alessandrozifiglio@NO-SPAM-hotmail.com> wrote in
> message news:X82Zb.9053$HO2.2260@news.edisontel.com...
> > All asp.net validation controls validate clientside only on IE. For all
> > other browsers you get serverside validation. If you still want this
kind
> of
> > funtionality you might want to develop your own suite of validation
> controls
> > which is made easy if one wanted to extend validation controls, or you
> could
> > just save yourself the time and the effort by purchasing such a
control.
> >
> > The most affordable and the nicest that i know of is PeterBlums
Validation
> > controls, and they work client on a variety of browsers.
> >
> > http://www.peterblum.com/VAM...
> >
> > "imagina" <imagina23@yahoo.com> wrote in message
> > news:uvOPnCs9DHA.1592@TK2MSFTNGP10.phx.gbl...
> > > The validation control is working well with IE. Here is the code I
> > mentioned
> > > for IE.
> > > ...
> > > <form name="General" method="post" action="Default.aspx"
> > > language="javascript" onsubmit="ValidatorOnSubmit();" id="General">
> > > ...
> > > <script language="javascript"
> > > src="/aspnet_client/system_web/1_1_4322/WebUIValidation.js"></script>
> > > ...
> > >
> > > But for Mozilla it seems does not load the javascript file and do not
> > > validate. Here is the code.
> > > ...
> > > <form name="General" method="post" action="Default.aspx"
id="General">
> > > ...
> > >
> > > This really happen with some pages. I relly do not know why....
> > > Hope someone could help me. Thankz in advance.
> > >
> > >
> >
> >
>
>


imagina

2/22/2004 10:03:00 AM

0

My problem seems the validation control does not work neither client or
server side. This problem occur with some pages. Otheerwise, when I created
new page, everything was fine.
Here is the code snippet

<%@ Register TagPrefix="mbdb" Namespace="MetaBuilders.WebControls"
Assembly="MetaBuilders.WebControls.DefaultButtons" %>
<%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="false"
Inherits="Huawei.Default"%>
<%@ Register TagPrefix="uc1" TagName="TopMenu" Src="Module/TopMenu.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>General Management</title>
<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" Content="C#">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5...
<LINK href="huawei.css" type="text/css" rel="stylesheet">
</HEAD>
<body leftmargin="0" topmargin="0">
<form id="General" method="post" runat="server">
<uc1:topmenu id="TopMenu1" runat="server"></uc1:topmenu>
<mbdb:DefaultButtons id="DefaultButtons1" runat="server">
<mbdb:DefaultButtonSetting Button="queryButton" Parent="cardNumber" />
<mbdb:DefaultButtonSetting parent="newpin" button="modifyPinButton" />
<mbdb:DefaultButtonSetting parent="serviceStart"
button="modifyDayButton" />
<mbdb:DefaultButtonSetting parent="serviceStop" button="modifyDayButton"
/>
<mbdb:DefaultButtonSetting parent="maxCall" button="modifyFocButton" />
</mbdb:DefaultButtons>
<table class="Normal" id="topTable" cellSpacing="0" cellPadding="0"
width="779" border="0"
runat="server">
<tr>
<td width="35%">&nbsp;</td>
<td class="TitleFont" align="center" width="30%">??????????</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width="35%">&nbsp;</td>
<td width="30%">&nbsp;</td>
<td>&nbsp;</td>
</tr>
<tr>
<td width="35%">&nbsp;</td>
<td width="30%" align="center">???????????&nbsp;
<asp:textbox id="cardNumber" Runat="server" Columns="20"
CssClass="Textbox" MaxLength="18"></asp:textbox>
</td>
<td>&nbsp;
<asp:button id="queryButton" runat="server" CssClass="Commandbutton"
Text="??????????"></asp:button>
<asp:button id="changeCardButton" runat="server"
CssClass="Commandbutton" Text="???????????"></asp:button></td>
</tr>
<tr>
<td width="35%">&nbsp;</td>
<td width="30%">&nbsp;
<asp:RequiredFieldValidator id="RequiredFieldValidator1"
runat="server" ErrorMessage="????????????????????????"
ControlToValidate="cardNumber"></asp:RequiredFieldValidator></td>
<td>&nbsp;</td>
</tr>
</table>
....

I am using "Default Button" from metabuilders.com.
Thank you a lot.

"Peter Blum" <PLBlum@Blum.info> wrote in message
news:#d7kApK#DHA.1052@TK2MSFTNGP12.phx.gbl...
> Validation will always work on the server side, to handle the browsers
that
> don't support Microsoft's client-side scripts. Perhaps that's what you
were
> seeing before it appeared broken. Then you managed to get the scripts onto
> the page, perhaps by setting the ClientTarget property to "UpLevel". That
> fools the page into thinking the browser is IE. The error indicates that
not
> everything is fine when you force client-side validation onto
> Netscape/Mozilla.
>
> Microsoft's WebUIValidation.js script file is written in DHTML. That
> technology is on IE and IE for the Mac but not any of the Netscape/Mozilla
> platform products. So even if you get the file to load, the browser cannot
> run the javascript that it contains. That's why I rebuild validation for
> ASP.NET from scratch in my "Professional Validation And More" product.
>
> --- Peter Blum
> www.PeterBlum.com
> Email: PLBlum@PeterBlum.com
> Creator of "Professional Validation And More" at
> http://www.peterblum.com/vam...
>
> "imagina" <imagina23@yahoo.com> wrote in message
> news:%23c5NkE29DHA.2308@TK2MSFTNGP11.phx.gbl...
> > But the validation control also works on some pages with Mozilla.
> > I think it should has some error about my web server because yesterday
it
> > said something about
> > client side javascript error and I follow the instruction it said.
> Something
> > like "aspnet_regiis.exe..."
> > Then the validation control does not work with Mozilla. Before this
error
> > occured , it was working fine.
> >
> > "Alessandro Zifiglio" <alessandrozifiglio@NO-SPAM-hotmail.com> wrote in
> > message news:X82Zb.9053$HO2.2260@news.edisontel.com...
> > > All asp.net validation controls validate clientside only on IE. For
all
> > > other browsers you get serverside validation. If you still want this
> kind
> > of
> > > funtionality you might want to develop your own suite of validation
> > controls
> > > which is made easy if one wanted to extend validation controls, or you
> > could
> > > just save yourself the time and the effort by purchasing such a
> control.
> > >
> > > The most affordable and the nicest that i know of is PeterBlums
> Validation
> > > controls, and they work client on a variety of browsers.
> > >
> > > http://www.peterblum.com/VAM...
> > >
> > > "imagina" <imagina23@yahoo.com> wrote in message
> > > news:uvOPnCs9DHA.1592@TK2MSFTNGP10.phx.gbl...
> > > > The validation control is working well with IE. Here is the code I
> > > mentioned
> > > > for IE.
> > > > ...
> > > > <form name="General" method="post" action="Default.aspx"
> > > > language="javascript" onsubmit="ValidatorOnSubmit();" id="General">
> > > > ...
> > > > <script language="javascript"
> > > >
src="/aspnet_client/system_web/1_1_4322/WebUIValidation.js"></script>
> > > > ...
> > > >
> > > > But for Mozilla it seems does not load the javascript file and do
not
> > > > validate. Here is the code.
> > > > ...
> > > > <form name="General" method="post" action="Default.aspx"
> id="General">
> > > > ...
> > > >
> > > > This really happen with some pages. I relly do not know why....
> > > > Hope someone could help me. Thankz in advance.
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Peter Blum

2/24/2004 12:01:00 AM

0

We already know that client-side validation will not work on Firebird
browser. So if you are saying that is does not work on IE, then lets focus
on the buttons. They fire some javascript to validate before the page is
submitted and prevent that from happening when an error occurs. The
Microsoft button classes all setup that javascript unless you set their
CausesValidation property to false. I don't know if the Metabuilders button
is subclassed from Microsoft's and inherits this capability. You didn't
specify which buttons are causing the problem. If it is the Metabuilders
button, email the author, (http://www.metabuilders.com/Co...) for
assistance.

On the server side, Microsoft's buttons again automatically validate unless
CausesValidation is false. If you want to manually validate, call
Page.Validate() and test the results with Page.IsValid. The only reason a
validator will not run on the server side when calling Page.Validate() is
when Visible=false or Enabled=false.

--- Peter Blum
www.PeterBlum.com
Email: PLBlum@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam...

"imagina" <imagina23@yahoo.com> wrote in message
news:OnhzyjS%23DHA.3860@TK2MSFTNGP09.phx.gbl...
> My problem seems the validation control does not work neither client or
> server side. This problem occur with some pages. Otheerwise, when I
created
> new page, everything was fine.
> Here is the code snippet
>
> <%@ Register TagPrefix="mbdb" Namespace="MetaBuilders.WebControls"
> Assembly="MetaBuilders.WebControls.DefaultButtons" %>
> <%@ Page language="c#" Codebehind="Default.aspx.cs"
AutoEventWireup="false"
> Inherits="Huawei.Default"%>
> <%@ Register TagPrefix="uc1" TagName="TopMenu" Src="Module/TopMenu.ascx"
%>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
> <HTML>
> <HEAD>
> <title>General Management</title>
> <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
> <meta name="CODE_LANGUAGE" Content="C#">
> <meta name="vs_defaultClientScript" content="JavaScript">
> <meta name="vs_targetSchema"
> content="http://schemas.microsoft.com/intellisense/ie5...
> <LINK href="huawei.css" type="text/css" rel="stylesheet">
> </HEAD>
> <body leftmargin="0" topmargin="0">
> <form id="General" method="post" runat="server">
> <uc1:topmenu id="TopMenu1" runat="server"></uc1:topmenu>
> <mbdb:DefaultButtons id="DefaultButtons1" runat="server">
> <mbdb:DefaultButtonSetting Button="queryButton" Parent="cardNumber" />
> <mbdb:DefaultButtonSetting parent="newpin" button="modifyPinButton" />
> <mbdb:DefaultButtonSetting parent="serviceStart"
> button="modifyDayButton" />
> <mbdb:DefaultButtonSetting parent="serviceStop"
button="modifyDayButton"
> />
> <mbdb:DefaultButtonSetting parent="maxCall" button="modifyFocButton"
/>
> </mbdb:DefaultButtons>
> <table class="Normal" id="topTable" cellSpacing="0" cellPadding="0"
> width="779" border="0"
> runat="server">
> <tr>
> <td width="35%">&nbsp;</td>
> <td class="TitleFont" align="center" width="30%">??????????</td>
> <td>&nbsp;</td>
> </tr>
> <tr>
> <td width="35%">&nbsp;</td>
> <td width="30%">&nbsp;</td>
> <td>&nbsp;</td>
> </tr>
> <tr>
> <td width="35%">&nbsp;</td>
> <td width="30%" align="center">???????????&nbsp;
> <asp:textbox id="cardNumber" Runat="server" Columns="20"
> CssClass="Textbox" MaxLength="18"></asp:textbox>
> </td>
> <td>&nbsp;
> <asp:button id="queryButton" runat="server" CssClass="Commandbutton"
> Text="??????????"></asp:button>
> <asp:button id="changeCardButton" runat="server"
> CssClass="Commandbutton" Text="???????????"></asp:button></td>
> </tr>
> <tr>
> <td width="35%">&nbsp;</td>
> <td width="30%">&nbsp;
> <asp:RequiredFieldValidator id="RequiredFieldValidator1"
> runat="server" ErrorMessage="????????????????????????"
> ControlToValidate="cardNumber"></asp:RequiredFieldValidator></td>
> <td>&nbsp;</td>
> </tr>
> </table>
> ...
>
> I am using "Default Button" from metabuilders.com.
> Thank you a lot.
>
> "Peter Blum" <PLBlum@Blum.info> wrote in message
> news:#d7kApK#DHA.1052@TK2MSFTNGP12.phx.gbl...
> > Validation will always work on the server side, to handle the browsers
> that
> > don't support Microsoft's client-side scripts. Perhaps that's what you
> were
> > seeing before it appeared broken. Then you managed to get the scripts
onto
> > the page, perhaps by setting the ClientTarget property to "UpLevel".
That
> > fools the page into thinking the browser is IE. The error indicates that
> not
> > everything is fine when you force client-side validation onto
> > Netscape/Mozilla.
> >
> > Microsoft's WebUIValidation.js script file is written in DHTML. That
> > technology is on IE and IE for the Mac but not any of the
Netscape/Mozilla
> > platform products. So even if you get the file to load, the browser
cannot
> > run the javascript that it contains. That's why I rebuild validation for
> > ASP.NET from scratch in my "Professional Validation And More" product.
> >
> > --- Peter Blum
> > www.PeterBlum.com
> > Email: PLBlum@PeterBlum.com
> > Creator of "Professional Validation And More" at
> > http://www.peterblum.com/vam...
> >
> > "imagina" <imagina23@yahoo.com> wrote in message
> > news:%23c5NkE29DHA.2308@TK2MSFTNGP11.phx.gbl...
> > > But the validation control also works on some pages with Mozilla.
> > > I think it should has some error about my web server because yesterday
> it
> > > said something about
> > > client side javascript error and I follow the instruction it said.
> > Something
> > > like "aspnet_regiis.exe..."
> > > Then the validation control does not work with Mozilla. Before this
> error
> > > occured , it was working fine.
> > >
> > > "Alessandro Zifiglio" <alessandrozifiglio@NO-SPAM-hotmail.com> wrote
in
> > > message news:X82Zb.9053$HO2.2260@news.edisontel.com...
> > > > All asp.net validation controls validate clientside only on IE. For
> all
> > > > other browsers you get serverside validation. If you still want this
> > kind
> > > of
> > > > funtionality you might want to develop your own suite of validation
> > > controls
> > > > which is made easy if one wanted to extend validation controls, or
you
> > > could
> > > > just save yourself the time and the effort by purchasing such a
> > control.
> > > >
> > > > The most affordable and the nicest that i know of is PeterBlums
> > Validation
> > > > controls, and they work client on a variety of browsers.
> > > >
> > > > http://www.peterblum.com/VAM...
> > > >
> > > > "imagina" <imagina23@yahoo.com> wrote in message
> > > > news:uvOPnCs9DHA.1592@TK2MSFTNGP10.phx.gbl...
> > > > > The validation control is working well with IE. Here is the code I
> > > > mentioned
> > > > > for IE.
> > > > > ...
> > > > > <form name="General" method="post" action="Default.aspx"
> > > > > language="javascript" onsubmit="ValidatorOnSubmit();"
id="General">
> > > > > ...
> > > > > <script language="javascript"
> > > > >
> src="/aspnet_client/system_web/1_1_4322/WebUIValidation.js"></script>
> > > > > ...
> > > > >
> > > > > But for Mozilla it seems does not load the javascript file and do
> not
> > > > > validate. Here is the code.
> > > > > ...
> > > > > <form name="General" method="post" action="Default.aspx"
> > id="General">
> > > > > ...
> > > > >
> > > > > This really happen with some pages. I relly do not know why....
> > > > > Hope someone could help me. Thankz in advance.
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>