Wrox Programmer Forums
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 February 13th, 2004, 04:22 AM
Registered User
Join Date: Jan 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Raise Event From Dynamic Controls

Hi, i have created Dynamic LinkButtons tat will be populated within a PlaceHolder.

Each of my LinkButton have Customer ID stored in the CommandArgument Property. On User Click, i wan to raise an event to capture and manipulate the CustomerID.

Anyone has any idea how to do it?

Thanx in Advanced

Old August 3rd, 2006, 06:50 AM
Registered User
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts

Hi.. i got similar problems. I know only half-of solution
First things is page lifecycle:
so.. in short what happens... every time page loads controls should be recreated in memory. After that they need to be turned to last state (which is saved in post back).
As i figured out best place in 1.1 for creating is OnInit. After that u shold do loading of view state into dynamicly created controls. All this should go before Page Load.

izrada web stranica

Similar Threads
Thread Thread Starter Forum Replies Last Post
raise event martijn1967 C# 1 May 30th, 2007 09:16 PM
Raise an Error in dynamic SQL with Link Server bashiiui SQL Server 2000 7 May 2nd, 2007 04:10 AM
How to raise event in user control webpart... tqit ASP.NET 2.0 Basics 1 September 13th, 2006 04:37 AM
Dynamic Event rajanikrishna Classic ASP Professional 1 August 11th, 2006 05:58 AM
Raise Event for Dynamically Added DropDownList DolphinBay ASP.NET 1.0 and 1.1 Professional 3 December 6th, 2005 02:22 PM

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