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

Open a web Page in a Referenced dll

Hi,

I have a project written in asp.net which has a few web
pages. The project has been compiled into a dll and now I
am referencing that dll in another project. How can I get
one of the web pages in the dll to be displayed from web
pages in the second project?

Cheers,
Rich
Nov 19 '05 #1
5 1917
This is a rather unorthodox suggestion. It would be better if you have a
model-view-controller, if you want to access code in this manner. If you are
trying to access methods of the page, you are best to move them to other
classes. If you are sincerely trying to display the page, my first attempt
would be to inherit from the page in question in the other application. This
is more likely to be sucessful in the 2.0 Framework, as all elements compile
via partial classes. I am not sure you can easily get the tags across in 1.1.
Working with the code behind in a compiled application is not a problem,
however.

It sounds like you have some business logic embedded in your ASP.NET
application(s). If so, re-architecture is in order.
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

"Rich" wrote:
Hi,

I have a project written in asp.net which has a few web
pages. The project has been compiled into a dll and now I
am referencing that dll in another project. How can I get
one of the web pages in the dll to be displayed from web
pages in the second project?

Cheers,
Rich

Nov 19 '05 #2
Hi Gregory,

thanks for the response.

I was just trying to see how easy it would be to redirect
a web app to a web page which is held as a class in a
referenced Dll.
Its easy to interact with other classes in the dll and
methods on the web page I want to render... but even
though I can create an instance of the web page class I
cant seem to find a way of getting it displayed.
A normal Response.redirect() will take a string parameter
of the web page to display..... in that web site. My
thought (which might be incorrect would be that if the
web page is a compiled calss in the dll it would be
possible) - how can I interact with it to render it as
normal?

Cheers,
Rich
-----Original Message-----
This is a rather unorthodox suggestion. It would be better if you have amodel-view-controller, if you want to access code in this manner. If you aretrying to access methods of the page, you are best to move them to otherclasses. If you are sincerely trying to display the page, my first attemptwould be to inherit from the page in question in the other application. Thisis more likely to be sucessful in the 2.0 Framework, as all elements compilevia partial classes. I am not sure you can easily get the tags across in 1.1.Working with the code behind in a compiled application is not a problem,however.

It sounds like you have some business logic embedded in your ASP.NETapplication(s). If so, re-architecture is in order.
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

"Rich" wrote:
Hi,

I have a project written in asp.net which has a few web pages. The project has been compiled into a dll and now I am referencing that dll in another project. How can I get one of the web pages in the dll to be displayed from web pages in the second project?

Cheers,
Rich

.

Nov 19 '05 #3
re:
a web page which is held
as a class in a referenced Dll
if the web page is a compiled class in the dll...
The .aspx (web) pages are not compiled
into dll's which you can reference.

The only compilation which occurs with .aspx (web) pages
is JIT-compilation, and the resulting assemblies ( dll's )
are placed in your "Temporary ASP.NET Files" directory
under drive:\windowsdirectory\Microsoft.Net\vx.x.xxxx\
and you cannot reference them from an .aspx page.

I you have previously started (visited) the web page you
want to "reference", it will have already been JIT-compiled,
and will be available from memory, unless different data or
parameters are requested, in which case the page will be
JIT-recompiled again.

In ASP.NET 2.0 there's a nifty new feature which allows full
pre-compilation of all of an Application's files, eliminating that
way the delay in response due to on-the-fly compilation.

In ASP.NET 1.1, I experimented with a batch file which
called all the basic pagesin a website, so that the pages
would be jit-complied, and users didn't have to wait for
the initial compilation.

It worked quite well, and might do the job for you.

Juan T. Llibre
ASP.NET MVP
===========
<an*******@discussions.microsoft.com> wrote in message
news:14****************************@phx.gbl... Hi Gregory,

thanks for the response.

I was just trying to see how easy it would be to redirect
a web app to a web page which is held as a class in a
referenced Dll.
Its easy to interact with other classes in the dll and
methods on the web page I want to render... but even
though I can create an instance of the web page class I
cant seem to find a way of getting it displayed.
A normal Response.redirect() will take a string parameter
of the web page to display..... in that web site. My
thought (which might be incorrect would be that if the
web page is a compiled calss in the dll it would be
possible) - how can I interact with it to render it as
normal?

Cheers,
Rich
-----Original Message-----
This is a rather unorthodox suggestion. It would be

better if you have a
model-view-controller, if you want to access code in

this manner. If you are
trying to access methods of the page, you are best to

move them to other
classes. If you are sincerely trying to display the

page, my first attempt
would be to inherit from the page in question in the

other application. This
is more likely to be sucessful in the 2.0 Framework, as

all elements compile
via partial classes. I am not sure you can easily get

the tags across in 1.1.
Working with the code behind in a compiled application

is not a problem,
however.

It sounds like you have some business logic embedded in

your ASP.NET
application(s). If so, re-architecture is in order.
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

"Rich" wrote:
Hi,

I have a project written in asp.net which has a few web pages. The project has been compiled into a dll and now I am referencing that dll in another project. How can I get one of the web pages in the dll to be displayed from web pages in the second project?

Cheers,
Rich

.

Nov 19 '05 #4
OK.......interesting.

Currently using ASP.Net 1.1 - so it'll have to be
the 'batch file' technique you mentioned -
how did you implement that?
I would only need to call the one web page I was hoping
to get displayed.

Cheers,
Richard
-----Original Message-----
re:
a web page which is held
as a class in a referenced Dll
if the web page is a compiled class in the dll...
The .aspx (web) pages are not compiled
into dll's which you can reference.

The only compilation which occurs with .aspx (web) pages
is JIT-compilation, and the resulting assemblies (

dll's )are placed in your "Temporary ASP.NET Files" directory
under drive:\windowsdirectory\Microsoft.Net\vx.x.xxxx\
and you cannot reference them from an .aspx page.

I you have previously started (visited) the web page you
want to "reference", it will have already been JIT- compiled,and will be available from memory, unless different data orparameters are requested, in which case the page will be
JIT-recompiled again.

In ASP.NET 2.0 there's a nifty new feature which allows fullpre-compilation of all of an Application's files, eliminating thatway the delay in response due to on-the-fly compilation.

In ASP.NET 1.1, I experimented with a batch file which
called all the basic pagesin a website, so that the pages
would be jit-complied, and users didn't have to wait for
the initial compilation.

It worked quite well, and might do the job for you.

Juan T. Llibre
ASP.NET MVP
===========
<an*******@discussions.microsoft.com> wrote in message
news:14****************************@phx.gbl...
Hi Gregory,

thanks for the response.

I was just trying to see how easy it would be to redirect a web app to a web page which is held as a class in a
referenced Dll.
Its easy to interact with other classes in the dll and
methods on the web page I want to render... but even
though I can create an instance of the web page class I
cant seem to find a way of getting it displayed.
A normal Response.redirect() will take a string parameter of the web page to display..... in that web site. My
thought (which might be incorrect would be that if the
web page is a compiled calss in the dll it would be
possible) - how can I interact with it to render it as
normal?

Cheers,
Rich
-----Original Message-----
This is a rather unorthodox suggestion. It would be

better if you have a
model-view-controller, if you want to access code in

this manner. If you are
trying to access methods of the page, you are best to

move them to other
classes. If you are sincerely trying to display the

page, my first attempt
would be to inherit from the page in question in the

other application. This
is more likely to be sucessful in the 2.0 Framework, as

all elements compile
via partial classes. I am not sure you can easily get

the tags across in 1.1.
Working with the code behind in a compiled application

is not a problem,
however.

It sounds like you have some business logic embedded in

your ASP.NET
application(s). If so, re-architecture is in order.
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

"Rich" wrote:

Hi,

I have a project written in asp.net which has a few

web
pages. The project has been compiled into a dll and

now I
am referencing that dll in another project. How can I

get
one of the web pages in the dll to be displayed from

web
pages in the second project?

Cheers,
Rich

.

.

Nov 19 '05 #5
It's as easy as :

startup.bat :
------------
start Iexplore "http://yourserver.com/directory/your.aspx"
----------------------------------------------------------

Place more lines like the first one for additional pages.
That works fine if there's not too many pages to open.

An IE window will be opened for each page.

Juan T. Llibre
ASP.NET MVP
===========
<an*******@discussions.microsoft.com> wrote in message
news:20****************************@phx.gbl...
OK.......interesting.

Currently using ASP.Net 1.1 - so it'll have to be
the 'batch file' technique you mentioned -
how did you implement that?
I would only need to call the one web page I was hoping
to get displayed.

Cheers,
Richard
-----Original Message-----
re:
a web page which is held
as a class in a referenced Dll
if the web page is a compiled class in the dll...


The .aspx (web) pages are not compiled
into dll's which you can reference.

The only compilation which occurs with .aspx (web) pages
is JIT-compilation, and the resulting assemblies (

dll's )
are placed in your "Temporary ASP.NET Files" directory
under drive:\windowsdirectory\Microsoft.Net\vx.x.xxxx\
and you cannot reference them from an .aspx page.

I you have previously started (visited) the web page you
want to "reference", it will have already been JIT-

compiled,
and will be available from memory, unless different data

or
parameters are requested, in which case the page will be
JIT-recompiled again.

In ASP.NET 2.0 there's a nifty new feature which allows

full
pre-compilation of all of an Application's files,

eliminating that
way the delay in response due to on-the-fly compilation.

In ASP.NET 1.1, I experimented with a batch file which
called all the basic pagesin a website, so that the pages
would be jit-complied, and users didn't have to wait for
the initial compilation.

It worked quite well, and might do the job for you.

Juan T. Llibre
ASP.NET MVP
===========
<an*******@discussions.microsoft.com> wrote in message
news:14****************************@phx.gbl...
Hi Gregory,

thanks for the response.

I was just trying to see how easy it would be to redirect a web app to a web page which is held as a class in a
referenced Dll.
Its easy to interact with other classes in the dll and
methods on the web page I want to render... but even
though I can create an instance of the web page class I
cant seem to find a way of getting it displayed.
A normal Response.redirect() will take a string parameter of the web page to display..... in that web site. My
thought (which might be incorrect would be that if the
web page is a compiled calss in the dll it would be
possible) - how can I interact with it to render it as
normal?

Cheers,
Rich

-----Original Message-----
This is a rather unorthodox suggestion. It would be
better if you have a
model-view-controller, if you want to access code in
this manner. If you are
trying to access methods of the page, you are best to
move them to other
classes. If you are sincerely trying to display the
page, my first attempt
would be to inherit from the page in question in the
other application. This
is more likely to be sucessful in the 2.0 Framework, as
all elements compile
via partial classes. I am not sure you can easily get
the tags across in 1.1.
Working with the code behind in a compiled application
is not a problem,
however.

It sounds like you have some business logic embedded in
your ASP.NET
application(s). If so, re-architecture is in order.
---

Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************

"Rich" wrote:

> Hi,
>
> I have a project written in asp.net which has a few
web
> pages. The project has been compiled into a dll and
now I
> am referencing that dll in another project. How can I
get
> one of the web pages in the dll to be displayed from
web
> pages in the second project?
>
> Cheers,
> Rich
>
.

.

Nov 19 '05 #6

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

Similar topics

2
by: venkatesh | last post by:
Hi Members, I have used the below mentioned code to open a html page in a new browser. The window size is 200 x 300. In that browser, I've given code to open another browser of the same size....
4
by: Anna Quick | last post by:
I am quite new to javascript, and don't seem to find the problem with stupid internet explorer. The script works fine in safari and mozilla. I searched the groups, but evidently put in the wrong...
10
by: Marshall Dudley | last post by:
When I do the following line in Netscape, the popup loads as it should, but the parent window usually, but not always, reloads as well. <a href="#"...
29
by: wayne | last post by:
Hey there... I'm having some problems passing url parameters with an open.window command. I'm not terribly familiar with java script but here is the code below. When executed it opens the...
0
by: L Scott | last post by:
I've created a page ancestry (framework) for our application so that all pages in our app would have the same look and feel. To do this, I created several user controls (header, footer, menu,...
0
by: Paul van Brenk | last post by:
Hi, after installing sp1 on windows 2003 I get the following error when accessing an aspx page in an otherwise asp application: error: Unable to generate a temporary class (result=1). error...
7
by: Alan Silver | last post by:
Hello, I have installed the 2.0 framework, and am looking at converting some of my 1.1 pages to use partial classes. I don't (yet) have VS2005, so I'm doing this by hand, but am having problems....
1
by: maya | last post by:
when I try to open .aspx files in VS 2003, I get this alert: The file could not be opened into the Web Forms designer Please correct the following error and then try loading it again: An...
16
by: CreativeMind | last post by:
hi, i have a page calendar.aspx which returns selected date i.e window.returnValue=selectedDate; window.close(); it works fine with IE but not for Firefox. i tried...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.