Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.0 and 1.1 Basics
| Search | Today's Posts | Mark Forums Read
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old February 22nd, 2005, 10:54 AM
Authorized User
 
Join Date: Jan 2005
Location: havana, , Cuba.
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default catching the control that causes postback

hi everybody, i have various controls placed in a dbgrid, one of them has its autopostback property set to true. i want to know in the page load event if this control was the one which fires the postback event.thanks....
  #2 (permalink)  
Old February 22nd, 2005, 04:00 PM
gap gap is offline
Registered User
 
Join Date: Feb 2005
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You can put some code in the "SelectedIndexChanged" event handler of the control that is doing the autopostback, to save the control name in a Session or State variable and retrieve that in the Page_load.




Similar Threads
Thread Thread Starter Forum Replies Last Post
File Control clears on postback. aniruddhap HTML Code Clinic 1 January 2nd, 2008 03:33 AM
Calendar Control Postback x_ray ASP.NET 2.0 Basics 1 May 27th, 2007 03:56 AM
How to disable PostBack for a button control? ashraf_gawdat .NET Framework 2.0 7 October 23rd, 2006 01:14 PM
Validation control and postback Chaotix ASP.NET 1.0 and 1.1 Basics 0 July 18th, 2006 12:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.