473,322 Members | 1,347 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Insert same ASCX mulitple times on a given ASPX

My intent is to load a user control (programmatically - not declaratively)
into two or three locations on an ASPX page when the page is first
requested. Each "instance" of the user control would display different info
based on property settings that are set by the ASPX page's code-behind
logic.

Would this cause my server to explode - or is this an okay thing to be
doing?

Thanks.
Nov 19 '05 #1
2 1101
This is perfectly fine... each control has it's own set of properties
and viewstate, so there will be no problems. It's just like putting
multiple <asp:Textbox> 's on the same page.

On Sun, 24 Apr 2005 14:19:12 -0700 in
microsoft.public.dotnet.framework.aspnet, "Guadala Harry"
<GM**@NoSpam.net> wrote:
My intent is to load a user control (programmatically - not declaratively)
into two or three locations on an ASPX page when the page is first
requested. Each "instance" of the user control would display different info
based on property settings that are set by the ASPX page's code-behind
logic.

Would this cause my server to explode - or is this an okay thing to be
doing?

Thanks.


Nov 19 '05 #2
There shouldn't be a problem, I have app that about 25 declaritvly
created controls, it's slow to intially load but after that everything is
cached and it loads quickly.

James Doughty

"Guadala Harry" <GM**@NoSpam.net> wrote in
news:ue*************@tk2msftngp13.phx.gbl:
My intent is to load a user control (programmatically - not
declaratively) into two or three locations on an ASPX page when the
page is first requested. Each "instance" of the user control would
display different info based on property settings that are set by the
ASPX page's code-behind logic.

Would this cause my server to explode - or is this an okay thing to be
doing?

Thanks.

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Mike | last post by:
I know this sounds strange but I am at a loss. I am calling a simple funtion that opens a connection to a SQL Server 2000 database and executes an Insert Statement. private void...
1
by: Andrew Parsons | last post by:
Hi all, I had a weird issue with trying to use a cookie in a ASCX housed on my web forms and I was wondering if I am missing something. I wanted to use the authenticated cookie for the user...
2
by: Peter Jackson | last post by:
I'm using v2 of the UIP App. Block. I've created all my .aspx pages, all of which contain .ascx user controls. The .ascx user controls provide the standard server controls (i.e., LinkButtons, etc.)...
2
by: John Ninan | last post by:
I am creating Dynamic Usercontrol in Asp.net application. In this application I have a combobox(aspx Page). Which contains various items. Based on item selected I am dynamically populating...
20
by: Guadala Harry | last post by:
In an ASCX, I have a Literal control into which I inject a at runtime. litInjectedContent.Text = dataClass.GetHTMLSnippetFromDB(someID); This works great as long as the contains just...
2
by: Rob | last post by:
Ok, I am a beginner when it comes to ASP.NET and C#. I have been "playing" with Visual Studio 2005 for about 1 week now and I cannot figure out how to create a .aspx or .ascx page in VS 2005. I...
6
by: Martin Eyles | last post by:
Hi, I have a .aspx page which has a .ascx file included through the lines <%@ Register TagPrefix="aspcustom" TagName="menu" Src="Menu.ascx" %> and <aspcustom:menu id="Menu1"...
2
by: Joseph Bittman MVP MCSD | last post by:
Sept. 2, 2006 I have a web site which I've created many user controls for... I keep getting ASP..ascx is not defined errors... no matter what I do, I cannot figure out what is causing them.......
11
by: =?Utf-8?B?SmVycnkgQw==?= | last post by:
I have a machine Windows Server 2003 using IIS 6.0 and I am getting the error BC30560 prjob_ascx is ambiguous in the namespace ASP I found a fix. Deleting all the files in the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.