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: 12 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:













fun with http headers: content type

asp.net as user id on windows xp

arrays

http post

forum software & vs 2005

how to??

object model or diagram with hierarchy and methods?

hi can u plz send me the code to connect lotusnotes with asp.net

compareallvalues, automatic or not?

help with required field validator control

vb to c# code translation

membership payment as part of create account wizard

decipher error message

newbie needs help with rounding time

umm. ok.. newbe

importing data from a excel file into a database on my web account

download webpage

display information for each user in a separate box/container

inserting textbox values into a gridview

how to find a child control

string (number) formatting

paypall

warning 11 ca2000 : microsoft.reliability : ...to dispose local 'connection' of type 'sqlconnection' for all code paths.

browscap.ini

asp.net user account problem

how do i set css id on a form in .net?

uploading to server

some tutorial apart from microsoft....

strange error during publishing

count down time

return the id of the row when a checkbox is clicked

asp.net 2.0 system.drawing... web issues

best logic possible for last ten files

what to use? c# or vb

help selectedweek on the calendar control

querying iis

could not load type '_default'

select all in a dropdown

how to display the correct time?

is vss advisable

importing data from static html page table to dataset using c#

image

label and html title

advice request - how do i get started - what did you do?

httpwebrequest and excel

help with simple classes - please!

download code

inheriting the struct

databases, asp.net - repeater controls, etc.

how to use system.net.mail.smtpclient via ssl and authentication?

   
  Privacy | Contact Us
All Times Are GMT