Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Capturing a postback inside a control.
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00761847
Message ID:
00762365
Vues:
13
Mario,

To find out the control that caused the postback you can use the __EVENTTARGET hidden control. In the Page_Load method you can use the following:
if (this.IsPostBack)
{
	Response.Write(Request.Params["__EVENTTARGET"].ToString());
}
>Thanks for the response. In this moment i do exactly that, i can post sucefully the form to the server, my problem is that in the *server* i don't can know *wath* control initiate the postback. So, if the AutoPostback is true for the edit Edit1, i need capture in the server that Edit1 send the postback...
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform