ValidatorOnSubmit()

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Alejandro Molina (amolina_at_pragma.com.co)
Date: 07/15/04


Date: 14 Jul 2004 17:28:55 -0700

HEllo people
im having a big trouble with Web apps
Recently (6 months ago) i´ve installed the webApps on a production
server, and all works very fine, but some weeks ago the users are
sending a lot mails of malfunctioning on the system.

The things is that the web server are generating a wrong HTML

normally an .aspx page generate code like this:

<form name="frmLogin" method="post"
action="login.aspx?ReturnUrl=/AdministracionUsuarios/get_aspx_ver.aspx"
language="javascript" onsubmit="ValidatorOnSubmit();" id="frmLogin">
<input type="hidden" name="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE"
value="dDwtMzQ4Njk3NzQwOztsPGltZ0FjZXB0YXI7Pj7k7GMkKvN2RdNz5fH9vAqnYYFWaA=="
/>

<script language="javascript">
<!--
        function __doPostBack(eventTarget, eventArgument) {
                var theform;
                if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1)
{
                        theform = document.forms["frmLogin"];
                }
                else {
                        theform = document.frmLogin;
                }
                theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
                theform.__EVENTARGUMENT.value = eventArgument;
                theform.submit();
        }
// -->
</script>
<script language=javascript>forma.idUsuario.value='66';</script>

        
<script language="javascript"
src="/aspnet_client/system_web/1_1_4322/WebUIValidation.js"></script>

but the server now is only generating this code:

<form name="encuesta" method="post" action="encuesta.aspx"
id="encuesta">

nothing about viewstate, nothing of onsubmit="ValidatorOnSubmit();"

im getting crazy
im fighting with this problem 2 weeks.

What im done is:

Verify all the configuration of the server, Virtual servers, virtual
directories and seems to be normal.

On the same IIS server i have a secure site, and all the web apps that
are running there works perfectly.

I did a test: copying one app (from a virtual server) that wont work;
on the secure site (https) and there works ok ??????

can u imagine that????

more things:
All this things happens if im behind a firewall, if i dont use the
configuration of Proxy serves of Internet explorer, all the web apps
worjs fine

PLEASE
PLEASE HELP
HELP



Relevant Pages

  • Re: FAX virus
    ... to loading a virus" to be disingenuous. ... he has a fax server (this will convert from ... Need to secure your web apps NOW? ... buy it or download a solution FREE today! ...
    (Pen-Test)
  • RE: Web Application Testers.
    ... programmed to remain on the original server. ... Achillesor subwebwhen breaking web apps; ... This list is provided by the SecurityFocus Security Intelligence Alert ...
    (Pen-Test)
  • RE: External Pentests Obsolete?
    ... documented services/hosts. ... On Behalf Of Yiannis Koukouras ... only have a few servers on their DMZ (web server, mail server, SSL ... Need to secure your web apps NOW? ...
    (Pen-Test)
  • Re: FAX virus
    ... Kindly discuss about the various attack vectors, and ways to safeguard against the same. ... My FAX server allows me to receive faxes from my clients from Internet. ... My fax server routes the stuff to the document processing ... Need to secure your web apps NOW? ...
    (Pen-Test)
  • Re: Building Web Applications C#
    ... If you just want to learn C# web apps without complicated server setup, VS2005 has a built-in web server, you don't need IIS at all. ... but note that IIS5 is what you get with Win2k; if you have XP you'll get IIS 5.1` and if you use Windows Server 2003 you'll get IIS6. ... However, if you're writing serious C# web apps for small business, you'll need two computers; a client with Win2k/XP/Vista and a server running Win2003 or Longhorn. ...
    (microsoft.public.vsnet.general)