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 5 1940
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
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.redire ct() 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 .
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:\windowsd irectory\Micros oft.Net\vx.x.xx xx\
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*******@disc ussions.microso ft.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.redire ct() 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 .
OK.......intere sting.
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:\windowsd irectory\Micros oft.Net\vx.x.xx xx\ 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*******@dis cussions.micros oft.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.redire ct() 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
.
.
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*******@disc ussions.microso ft.com> wrote in message
news:20******** *************** *****@phx.gbl.. . OK.......intere sting.
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:\windowsd irectory\Micros oft.Net\vx.x.xx xx\ 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*******@di scussions.micro soft.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.redire ct() 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 > .
. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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. However, this is not
happening in IE 5. Can anyone help me solve this problem?
Code:
Script:
|
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 keywords, didn't
find the solution.
It seems to be as easy as it gets: open a new window with a new url.
in IE (I am using IE in mac osx), the error message is:
Microsoft JScript runtime error:
Line: 9
|
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="#"
onClick="window.open('/cgi-bin/displayimage.cgi?/store/demo/image.jpg&YOUR+PRODUCT%27<b>S+NAME+GOES',
'fullimage', 'WIDTH=420,HEIGHT=405,status=0')">
The original window should not reload, but is, and I have tested it with
both version 4.72 and 7.02, and they both do it. IE does not do it....
|
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 window properly but does not pass the
parameter.
(this is part of a coldfusion template)
<a href="##"
|
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, etc.) and then a C# class which
inherits from System.Web.UI.Page. In the OnInit() method of this class, I
dynamically load these user controls using the 'this.Controls.AddAt()'
method (as well as call the base.OnInit() method to load the objects from...
| |
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 CS0011:
Referenced class 'ASP.InvoiceExport_aspx' has base class or interface
'System.Web.UI.Page' defined in an assembly that is not referenced. You must
add a reference to assembly 'System.Web'. error CS0011: Referenced class...
|
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.
I have a simple page that I made in the beta2 version of VWD. The code
behind looks like...
using System;
|
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 exception occurred while trying to create an instance
of <solution/projectName>.BusinessObjects.BasePage.
The exception was "Object reference not set to
|
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 window.opener.document.getElementById(<%=txthidden.ClientID
%>").value=selectedDate; where window.opener is pageA.aspx
but am confused bkoz many pages r using this calendar.aspx page and it
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |