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
|
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
 
Old January 14th, 2005, 09:29 AM
jmd jmd is offline
Registered User
 
Join Date: Jan 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Capture Control Identity Causing Autopost Back

ASP.Net page coded with VB.

I have a datagrid with an embedded dropdownlist that, upon change, causes the field value to be updated in a database, and then reposts back to the page to show the update.

What I would like to do is to determine which control in the data grid caused the autopostback so that after the page has been returned from the server it returns to the row containingthe dropdownlist that was updated (i.e. through an anchor and some embedded javascript).

I don't seem to be able to determine the ID/name etc. of the dropdownlist that caused the autopost back as I'm having trouble casting the sender object in the Page_Load function so I can see it's details.

Does anyone have an idea of how to do this?



 
Old January 14th, 2005, 04:43 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Put the following in your @Page directive:

   SmartNavigation="true"
 
Old January 15th, 2005, 11:01 AM
jmd jmd is offline
Registered User
 
Join Date: Jan 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the reply! This seems to work like a charm.






Similar Threads
Thread Thread Starter Forum Replies Last Post
ASP. Button Control not posting back innochig ASP.NET 1.0 and 1.1 Professional 16 January 15th, 2007 05:15 PM
Capture and emaio formview control data nuttylife2 ASP.NET 1.x and 2.0 Application Design 0 August 1st, 2006 11:44 AM
passwords field gets empty on autopost.. vivek_inos ASP.NET 1.0 and 1.1 Professional 3 July 13th, 2006 05:58 AM
close all userforms and pass control back to sub kliu9 Excel VBA 3 February 2nd, 2005 12:51 AM
history.back or hitting the back button won't work lian_a Classic ASP Basics 4 July 29th, 2004 12:14 AM





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