CodeVerge.Net Beta


   Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums




Can Reply:  No Members Can Edit: No Online: Yes
Zone: > Asp.Net Forum > general_asp.net.getting_started Tags:
Item Type: Date Entered: 7/22/2008 10:56:48 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
NR
XPoints: N/A Replies: 2 Views: 17 Favorited: 0 Favorite
3 Items, 1 Pages 1 |< << Go >> >|
"sspatten" <>
NewsGroup User
Instantiating7/22/2008 10:56:48 PM

0

Visualize the following scenario: A solution with three projects:

  • {Project 1} ASP.NET Web Application - Containing 1 x .aspx file
  • {Project 2} Class library - Containing my funky logic
  • {Project 3} ASP.NET Web Application - [SET AS DEFAULT PROJECT] Containing Default.aspx [SET AS DEFAULT START PAGE]

(Project 3) Default.aspx calls my Class library (Project 2)to do its funky logic. Funky logic wants to instantiate the single .aspx file (Project 1) in the other web application.

Now to do this I would typically use BuildManager.CreateInstanceFromVirtualPath();. However I guess the context is Project 3 as thats where the request first started from.

How do I get hold of the aspx file in Project 1?

"sambeetpatra"
NewsGroup User
Re: Instantiating7/23/2008 12:59:54 AM

0

I don't think it is possible unless you expose a web service in project 1. Just to understand the context, why would you need to access a web page from business logic? If you can explain your requirements, we can identify alternatives. 

"sspatten" <>
NewsGroup User
Re: Instantiating7/23/2008 1:53:37 PM

0

Well I created some code to generate HTML formatted e-mails. I use .aspx pages for the template for the HTML e-mail. However now I am coming to package it all up into an assembly I am running into the sticky situation of how to store the .aspx and the business logic.

I assumed that I would not be able to store the compiled .aspx in the same .dll as my class library (I may be wrong on that). Hence having a project for the .aspx file and a class library for the business logic.

So Project 3 is my main project I am worknig on. Project 2 is a reference to my business logic library (for sending emails) and Project 1 was the definition of the html for the emails.

3 Items, 1 Pages 1 |< << Go >> >|


Free Download:













reporting services in sqlserver 2005 express?

dnn developers

skin/container designers

using 2 skins on a site?

books in dnn

dotnetnuke nukes other asp.net web applications

reflective skin package released!!! very professional and modern!!

create portals problem, help!

article on dotnetnuke: event bubbling of dynamically loaded controls.

submitting new and non-existing dnn language

how to customize survey module?

locating skilled dnn volunteers to assist leading new york based conservation non-profit

reporting on registration data

uk dnn module development company required

dnn and load balancing

dotnetnuke installation guide translated to spanish (castellano)

skinning solpartmenu with multiple images

skinning help!!!!

please recommend on supported paymnet gateways

free designaway skin updated by nina meiers

a tip for those attempting to create portal templates

dnn administrator and developer

dnn 3.0.5 - updated german laguage files

marketing module

couldn't send mail from dnn "could not access 'cdo.message' object."

bug on vertical menu skin

any full fledged webmail softwares anybody could recommend?

language selector module for dnn 3.0.12

greek dotnetnuke community

add new pane or edit pane

can u recommand a train doc or web site to tell u how do do a new skin?

can someone point me to doc of how to remove the (dnn 3.x.x) in the top of the ie browser

another plea for a central resource site like raindow's confluence wiki

dnn custom module - content management with workflow.

need your dnn project hosted

fundraising thermometer

announcing the global conference room manager module for dnn

dotnetnuke at ms dev days athens

alternative to text/html module now available with replaceable tags

flash info cube

dupe a portal

forums and gallery missing?

pocket pc themes

language

where can i find full list of modules for dotnetnuke.

dnn / asp.net / c# developers in boston/cambridge

error: file upload is currently unavailable

sample dnn3 skin?

calling vb scripts from .net nuke

sigle quotation mark on resource file

   
  Privacy | Contact Us
All Times Are GMT