HighTechTalks DotNet Forums  

Eliminate .aspx File (100% dynamic page)

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss Eliminate .aspx File (100% dynamic page) in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Frankie
 
Posts: n/a

Default Eliminate .aspx File (100% dynamic page) - 10-09-2007 , 01:07 PM






What would it take to send a page to a browser - and the HTML that comprises
that "page" is 100% generated dynamically?

Specifically, say I have all of the requisite HTML in a string variable. How
do I push that string down to the browser?

My situation is that I have a few .aspx pages containing very little
boilerplate HTML markup and several placeholder controls. At runtime I am
currently injecting the requisite HTML into the placeholder controls. I am
wondering what it would take to eliminate the .aspx file altogether... such
that when the browser requests, for example,
www.DomainName\SomeFolder\File001.aspx I have logic that returns 100% of the
HTML of "File001.aspx" with no such .aspx file having ever existed on disk
on the Web server.



Thanks.



Reply With Quote
  #2  
Old   
Alexey Smirnov
 
Posts: n/a

Default Re: Eliminate .aspx File (100% dynamic page) - 10-09-2007 , 01:42 PM






On Oct 9, 7:07 pm, "Frankie" <A...@B.com> wrote:
Quote:
What would it take to send a page to a browser - and the HTML that comprises
that "page" is 100% generated dynamically?

Specifically, say I have all of the requisite HTML in a string variable. How
do I push that string down to the browser?

My situation is that I have a few .aspx pages containing very little
boilerplate HTML markup and several placeholder controls. At runtime I am
currently injecting the requisite HTML into the placeholder controls. I am
wondering what it would take to eliminate the .aspx file altogether... such
that when the browser requests, for example,www.DomainName\SomeFolder\File001.aspx I have logic that returns 100% of the
HTML of "File001.aspx" with no such .aspx file having ever existed on disk
on the Web server.

Thanks.
Do you know about URL Rewriting?
http://www.google.com/search?hl=en&q...+url+rewriting



Reply With Quote
  #3  
Old   
bruce barker
 
Posts: n/a

Default Re: Eliminate .aspx File (100% dynamic page) - 10-09-2007 , 01:44 PM



use an httpmodule instead of a page.

-- bruce (sqlwork.com)

Frankie wrote:
Quote:
What would it take to send a page to a browser - and the HTML that comprises
that "page" is 100% generated dynamically?

Specifically, say I have all of the requisite HTML in a string variable. How
do I push that string down to the browser?

My situation is that I have a few .aspx pages containing very little
boilerplate HTML markup and several placeholder controls. At runtime I am
currently injecting the requisite HTML into the placeholder controls. I am
wondering what it would take to eliminate the .aspx file altogether... such
that when the browser requests, for example,
www.DomainName\SomeFolder\File001.aspx I have logic that returns 100% of the
HTML of "File001.aspx" with no such .aspx file having ever existed on disk
on the Web server.



Thanks.



Reply With Quote
  #4  
Old   
Frankie
 
Posts: n/a

Default Re: Eliminate .aspx File (100% dynamic page) - 10-09-2007 , 01:50 PM




"Alexey Smirnov" <alexey.smirnov (AT) gmail (DOT) com> wrote

Quote:
On Oct 9, 7:07 pm, "Frankie" <A...@B.com> wrote:
What would it take to send a page to a browser - and the HTML that
comprises
that "page" is 100% generated dynamically?

Specifically, say I have all of the requisite HTML in a string variable.
How
do I push that string down to the browser?

My situation is that I have a few .aspx pages containing very little
boilerplate HTML markup and several placeholder controls. At runtime I am
currently injecting the requisite HTML into the placeholder controls. I
am
wondering what it would take to eliminate the .aspx file altogether...
such
that when the browser requests, for
example,www.DomainName\SomeFolder\File001.aspx I have logic that returns
100% of the
HTML of "File001.aspx" with no such .aspx file having ever existed on
disk
on the Web server.

Thanks.

Do you know about URL Rewriting?
http://www.google.com/search?hl=en&q...+url+rewriting

Yes - but URL Rewriting has nothing to do with *how* a page is sent to the
browser. It has to do with how pages are *identified.*





Reply With Quote
  #5  
Old   
Alexey Smirnov
 
Posts: n/a

Default Re: Eliminate .aspx File (100% dynamic page) - 10-09-2007 , 02:00 PM



On Oct 9, 7:50 pm, "Frankie" <A...@B.com> wrote:
Quote:
"Alexey Smirnov" <alexey.smir... (AT) gmail (DOT) com> wrote in message

news:1191951734.102324.88530 (AT) y42g2000hsy (DOT) googlegroups.com...





On Oct 9, 7:07 pm, "Frankie" <A...@B.com> wrote:
What would it take to send a page to a browser - and the HTML that
comprises
that "page" is 100% generated dynamically?

Specifically, say I have all of the requisite HTML in a string variable.
How
do I push that string down to the browser?

My situation is that I have a few .aspx pages containing very little
boilerplate HTML markup and several placeholder controls. At runtime I am
currently injecting the requisite HTML into the placeholder controls. I
am
wondering what it would take to eliminate the .aspx file altogether...
such
that when the browser requests, for
example,www.DomainName\SomeFolder\File001.aspx I have logic that returns
100% of the
HTML of "File001.aspx" with no such .aspx file having ever existed on
disk
on the Web server.

Thanks.

Do you know about URL Rewriting?
http://www.google.com/search?hl=en&q...+url+rewriting

Yes - but URL Rewriting has nothing to do with *how* a page is sent to the
browser. It has to do with how pages are *identified.*- Hide quoted text -

ASP.NET has to do it. Either something like Response.Write() or a
custom HttpModule, as Bruce already suggested



Reply With Quote
  #6  
Old   
Peter Bromberg [C# MVP]
 
Posts: n/a

Default RE: Eliminate .aspx File (100% dynamic page) - 10-09-2007 , 04:31 PM



You have to have an Http - addressable endpoint. It could be an ASPX page, or
it could be an ASHX handler, etc. For a page, the only requirement is to have
the
<@Page declaration and specify the codebehind / codefile attribute. What you
do in your code is completely up to you.
-- Peter
Recursion: see Recursion
site: http://www.eggheadcafe.com
unBlog: http://petesbloggerama.blogspot.com
BlogMetaFinder: http://www.blogmetafinder.com



"Frankie" wrote:

Quote:
What would it take to send a page to a browser - and the HTML that comprises
that "page" is 100% generated dynamically?

Specifically, say I have all of the requisite HTML in a string variable. How
do I push that string down to the browser?

My situation is that I have a few .aspx pages containing very little
boilerplate HTML markup and several placeholder controls. At runtime I am
currently injecting the requisite HTML into the placeholder controls. I am
wondering what it would take to eliminate the .aspx file altogether... such
that when the browser requests, for example,
www.DomainName\SomeFolder\File001.aspx I have logic that returns 100% of the
HTML of "File001.aspx" with no such .aspx file having ever existed on disk
on the Web server.



Thanks.




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.