473,387 Members | 1,504 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,387 software developers and data experts.

Ideas on design - Restated

Hi,

I have asked this question in a few guises recently, and not had much
response. But I dont think what I am asking is too obscure, so I am hoping
I just need to rephrase.

When a view is rendering itself (say Foo.aspx/Foo.aspx.cs), during rendering
it realises it needs a secondary view to do something (lets call it
Bar.aspx/Bar.aspx.cs). The logic is somehting like:

.... during a render in Foo....

1. if Need to render secondary view then
begin
2. Bar = CreateBarClassSomehow();
3. Make Bar render itself;
4. Paste rendered Bar view into current view
end;
5. Render foo normally

I want to be able to create an ASPX file programmatically, but by doing so I
want the created ASPX file to execute as if it had been accessed directly
via a URL. The problem I am getting when creating the ASPX file manually,
is that if I access controls in Page_Load, they are null. But if I access
controls on a page that was loaded directly by the framework from a URL,
controls are not null during Page_Load.

Is there anyway to achieve this? I have considered making the Bar ASPX into
a Control, but I dont want to have to do that at this stage if possible.

Thanks for any advice or guidance with this problem.

Nick.
Nov 18 '05 #1
1 972
Have you looked at using the asp:placeholder control. You have two ways you
can do this using placeholder.
1. Create the controls dynamically each time
2. Make a UserControl and then add this UserControl to the placeholder at
run time.

--
Shiv R. Kumar
http://www.matlus.com
Nov 18 '05 #2

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

Similar topics

3
by: Danny | last post by:
VB6 windows XP home I run a small app that has no forms in it, only a few BAS modules. It's function is to open a text file and load a few pieces of data into memory and then periodically...
14
by: David MacQuigg | last post by:
I am starting a new thread so we can avoid some of the non-productive argument following my earlier post "What is good about Prothon". At Mr. Hahn's request, I will avoid using the name "Prothon"...
0
by: Eric Hudson | last post by:
Hi, I am using Visual C#.NET (2003 Env., Framework 1.1) I wrote a custom control which seems to work just fine except that if I try to add it to another form I get the following exception: ...
3
by: Darren | last post by:
I have a Person object and from that I'm inheriting other objects including Client, Carer, Doctor (and others). The Person object has a large number of properties and methods that I want available...
10
by: Marina | last post by:
Here is the problem. If 2 different properties on the same (or different) control are bound to the same data column, changing the Text property and calling EndCurrentEdit discards the new value. ...
0
by: Liddle Feesh | last post by:
Good afternoon m.p.d.l.vb :) I'm looking for some sound system design ideas. I'm planning to build an application in VB.NET that interfaces with MSDE for a local estate agency (realtor in the...
0
by: bcannon | last post by:
At Guido's suggestion, a new mailing list has been created named Python-Ideas (http://mail.python.org/mailman/listinfo/python-ideas). This list is meant as a place for speculative, pie-in-the-sky...
3
by: Jason Taylor | last post by:
I am wanting to learn C++, and am curious what my first program should be. I learned PHP by reading the docs as I wrote a news posting script. Any ideas on how I would go about starting my trek in...
0
by: poorlittlerichstudent | last post by:
Hello, Struggling to come up with ideas for my dissertation and its causing a few sleepless nights. My tutor doesn't like... useability vs. design how does simple design improve the success...
5
by: Nitesh | last post by:
Objects of type X are basic building blocks of my application and there are a few functions which return XHandle (typedef X** XHandle). The task at hand needs to use a couple of these functions and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.