Home
Get Started
Learn
Downloads
AJAX
MVC
Community
Wiki
Forums
Sign in
|
Join
Home
›
ASP.NET Forums
›
Search
Search
You searched for the word(s): userid:709697
More Search Options
RSS Available
Matching Posts
Dynamic Controls and UpdatePanels
Hey Gang, I have the following problem. I have a page that creates several dynamic controls and places them inside of a panel. I have a second update panel that I want to be able to read the values of these dynamic controls from. The problem that I'm having is that when I fire the trigger for the second updatepanel it seems that even though I can still see all the dynamic controls on the page the onclick event is not able to find them. Is the second updatepanel seeing a "PostBack" of
Posted to
Web Forms
(Forum)
by
Loganix77
on 12/3/2009
Re: Dynamic Controls and UpdatePanels
I think you're confirming what I was afraid of. When the updatepanel does it's post back, eventhough the HTML of the other panel is not changed, server side controls still go through a full postback and without recreating them they are "lost" server side, but still presented to the client because the HTML codes has not been changed. In order for me to call and minipulate these controls I have to recreate them any time the page does a post back. The problem I'm going to run into
Posted to
Web Forms
(Forum)
by
Loganix77
on 12/3/2009
Re: Dynamic Controls and UpdatePanels
C# version, I work in VB, but this might be just the ticket I'm looking for, just need to modify it slightly for VB. I will be able to recreate the controls more efficiently by refiltering a dataset then by requerying the Database. This will also lighten the load on the bandwidth since I'll only need to make one hit to the DB then store the dataset in a session variable and call the dataset back after the postback. STORE: DataSet ds = GetDataSet(whatever parameters); Session["mydataset"
Posted to
Web Forms
(Forum)
by
Loganix77
on 12/3/2009
Re: Dynamic Controls and UpdatePanels
Yep this is working and much faster then requerying the DataSource. A little more programing work then I would have liked but I'm well on my way to getting this project finished.
Posted to
Web Forms
(Forum)
by
Loganix77
on 12/3/2009
Re: Master Page and find dynamic controls
[quote user="Hua-Jun Li - MSFT"] CheckBox list = this.Page.Master.FindControl("ContentPlaceHolder1").FindControl("CheckBox1") as CheckBox;[/quote] The problem with this solution is that Control.ID = Unknown While sqlReader.Read() Dim tbNew as New TextBox tbNew.ID = "TextBoxName" & sqlReader("EmployeeNumber") Since the TextBox's ID is random based on the results of the query I can't use the findcontrol("TextBoxID") method because
Posted to
Web Forms
(Forum)
by
Loganix77
on 12/1/2009
Master Page and find dynamic controls
Hello again gang! It's been a while, but I've managed to stump myself again. I have a new web form request by company controller and HR manager for managing employee time. We have a proprietary business system that we're forced into using as a dealership for our parent company. This application has an attendance feature that allows us to track mechanic efficiency, and we're expanding it to all hourly employees using this application to clock in and out. What I have now is a web form
Posted to
Web Forms
(Forum)
by
Loganix77
on 11/20/2009
Re: Master Page and find dynamic controls
CHA-CHING In the PreRender I am able to get all the client ID's I'm looking for via a "For Each ctl as Control in Container.Controls" Code is looking much cleaner now and I've gotten rid of all the work arounds. My javascript is attaching to the correct control now and working like a champ. I know this has to have something to do with the way the page is created and that I wasn't able to access the controls in the PageLoad but during the page render they were there. If anyone
Posted to
Web Forms
(Forum)
by
Loganix77
on 11/20/2009
Re: Master Page and find dynamic controls
Figures as soon as I post I think to give something else a try and it works. I moved my find control method from the OnLoad events to the PreRender and it works fine. Here's what I got to work, I don't know if this is the best way of accomplishing this, but it works (I'm creating an arraylist of all checkboxes as page builds then setting an invisible label's text = to comma separated values of those checkboxes, then I can reference the text in that label to get all of the IDs of the
Posted to
Web Forms
(Forum)
by
Loganix77
on 11/20/2009
Re: File System Security Issue
[quote user="rakesh_nits"]are you using application pool? [/quote] Yes I am using an application pool [quote user="rakesh_nits"]if yes then the the identity under which the application pool is running , try giving read permission to that identity on the specified folder.[/quote] Application Pool = DefaultAppPool How can I find the identity? I've looked in the webconfig file for my Intranet Site and there is not <identity> tag in the config file anywhere. I'm a little
Posted to
Security
(Forum)
by
Loganix77
on 8/4/2009
Re: File System Security Issue
[quote user="Loganix77"] How can I find the identity? I've looked in the webconfig file for my Intranet Site and there is not <identity> tag in the config file anywhere. I'm a little confused as to where I find this at. [/quote] Ahhhh haaaa....I think I've found it
Posted to
Security
(Forum)
by
Loganix77
on 8/4/2009
Page 1 of 22 (216 items) 1
2
3
4
5
Next >
...
Last »
Channel 9:
E2E: Brian Beckman and Erik Meijer - Co/Contravariance in Physics and Programming, 1 of 2
TechNet Edge:
Windows Server 2008 R2 Quick Look #3 - PowerShell V2
ASP.NET:
2009 Blogged - Greatest Hits
WindowsClient:
2009 Blogged - Greatest Hits
Channel 9:
Nikolaj Bjørner and Leonardo de Moura: The Z3 Constraint Solver
Channel 9:
MEF & Silverlight 4 Beta - Part 2, Imports & Exports
Channel 9:
MEF & Silverlight 4 Beta - Part 1, Introduction
WindowsClient:
The (Near) Final Word on Multi-Monitor Taskbars for Windows 7 - Ultramon vs. DisplayFusion
WindowsClient:
Looking back at 2009, and forward to 2010
Silverlight:
Polling Video – A Viable sub-second alternative?
TechNet Edge:
Windows Server 2008 R2 Quick Look #2 - Active Directory Recycle Bin
Channel 10:
I'm a Windows 7 PC Themes
Channel 10:
24 Years of Windows Box Art
WindowsClient:
Silverlight tutorial: HOW TO build CommandLink Control in Silverlight with Expression Blend 3 and Behaviors
ASP.NET:
Converting an RGB Color To Hex With JavaScript
Silverlight:
Silverlight HVP Design – Configuration & Scenarios
Channel 9:
Channel 9 Live at PDC09: Day 3 Welcome
Channel 9:
Channel 9 Live at PDC09: TWoC9 Day 3
Channel 10:
Microsoft's Mobicast: Stiched Cell Streams
Channel 10:
Festive Bing
Microsoft Communities
ASP.NET
Channel 8
Channel 9
Channel 10
IIS.NET
Silverlight
TechNet Edge
WindowsClient
Mix Online