Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 1.0 and 1.1 > ASP.NET 1.1
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 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 June 4th, 2005, 06:54 AM
Authorized User
 
Join Date: Mar 2005
Posts: 36
Thanks: 2
Thanked 1 Time in 1 Post
Default Getting the controls from ASPX page

I am adding controls(checkboxes) dynamically to a ASP:table object. My requirement is user will click some of the checkboxes and click save. Then I want to get all the checkboxes which are clicked. But I am not getting any checkboxes in the table objecy by table.findcontrol methods.
I am settingnthe ID and Text properties of the checkbox in the code.
I am caching the table in the page load event as follows

If Not Page.IsPostBack Then
                objTemplateClass = New TemplateClass.TemplateClass
                'Gets the resources available for a template
                dsTempResource = objTemplateClass.getResourcesForTemplate()
                CreateTable(dsTempResource)
                Cache("TemplateTable") = tblTemplateResources
            Else
                Cache("TemplateTable") = tblTemplateResources
            End If

Am I missing anything?
 
Old June 6th, 2005, 04:00 AM
Friend of Wrox
 
Join Date: Apr 2005
Posts: 186
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Hi

Call your CreateTable(dsTempResource) in the initalizecomponent of the page.
(Be sure this is there always before compiling as VS may remove it in some cases when you switch to design view )

  I feel you need'nt add to cache

Prashant











Similar Threads
Thread Thread Starter Forum Replies Last Post
Not able to see .aspx page. rupen ASP.NET 1.0 and 1.1 Basics 0 May 25th, 2006 10:41 AM
How to pass variables from Aspx page to Asp Page jayaraj Classic ASP Basics 2 May 23rd, 2004 06:56 AM
How to pass the variables in Aspx page to Asp Page jayaraj ASP.NET 1.0 and 1.1 Basics 3 May 23rd, 2004 06:55 AM





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