Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding client-side script after _dopostback
Message
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Adding client-side script after _dopostback
Divers
Thread ID:
01127355
Message ID:
01127355
Vues:
51
I'm working on a form and need to insert some code into the "_dopostback" function thats created on RUN AT="server" controls. I want to call an additional CLIENT-SIDE script AFTER the native behavior of the _dopostback...

how/where should I go. The client-side script is no problem and I already have that in the HTML portion of the .aspx page setup.

Basically, the following is automatically generated for the aspx page.
I changed the angle brackets with {} for the script/end script parts
{script language="javascript" type="text/javascript"}
	function __doPostBack(eventTarget, eventArgument) {
		var theform;
		if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
			theform = document.Form1;
		}
		else {
			theform = document.forms["Form1"];
		}
		theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
		theform.__EVENTARGUMENT.value = eventArgument;
		theform.submit();

                *****************************************************
                CALL MY CLIENT-SIDE FUNCTION HERE... AFTER THE SUBMIT

	}
{/script}
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform