Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Capturing a postback inside a control.
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00761847
Message ID:
00762365
Views:
14
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
Previous
Reply
Map
View

Click here to load this message in the networking platform