Return to Snippet

Revision: 14152
at May 20, 2009 13:31 by jink


Updated Code
/// <summary>
/// Returns the sender ID of the post back received by ASP.net. 
/// (Usually a button's ID)
/// </summary>
/// <returns></returns>
private string GetPostBackSender()
{
	return Request.Params.Get("__EVENTTARGET");
}

Revision: 14151
at May 20, 2009 13:31 by jink


Initial Code
/// <summary>
		/// Returns the sender ID of the post back received by ASP.net. 
		/// (Usually a button's ID)
		/// </summary>
		/// <returns></returns>
		private string GetPostBackSender()
		{
			return Request.Params.Get("__EVENTTARGET");
		}

Initial URL


Initial Description
Returns the postback sender ID.  This is usually a button ID from a form that caused a post back.

Initial Title
ASP.net: Retrieve PostBack sender (on Page_Load)

Initial Tags
aspnet

Initial Language
C#