Labels

Thursday, November 20, 2008

__EVENTTARGET __EVENTARGUMENT __VIEWSTATE __doPostBack

Hi,

 

Get a look at the ‘View Source’ structure on an HTML page.

You can foucs on below.

 

·          __EVENTTARGET

·          __EVENTARGUMENT

·          __VIEWSTATE

·          __doPostBack

 

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head><title>

</title>

</head>

<body>

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

<div>

<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />

<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />

<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="/wEPDwUIMTEzMDA5NjJkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYBBQlDaGVja0JveDEhCugQnV/py+Z1mFbX4q4OORRUhw==" />

</div>

 

<script type="text/javascript">

var theForm = document.forms['form1'];

if (!theForm)

{

    theForm = document.form1;

}

function __doPostBack(eventTarget, eventArgument)

{

    if (!theForm.onsubmit || (theForm.onsubmit() != false))

    {

        theForm.__EVENTTARGET.value = eventTarget;

        theForm.__EVENTARGUMENT.value = eventArgument;

        theForm.submit();

    }

}

//]]>

</script>

 

 

<script src="/TrialSite/WebResource.axd?d=nTKcDFUAsPO-CzOgiU2QPw2&amp;t=633621995606072446" type="text/javascript"></script>

<script src="/TrialSite/WebResource.axd?d=WA2RfCVo5ELQDwtqnK8I9w2&amp;t=633621995606072446" type="text/javascript"></script>

<div>

            <input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="/wEWBgLc7KWUCALs0bLrB" />

</div>

<div>

 <!-- Here actual HTML comes -->

</div>

 

</form>

</body>

</html>

No comments:

Post a Comment