From: Mark B on
Is there a VB.NET command to programmatically create a new aspx page on the
server from a string variable strMyNewHTML?

From: Mike Lovell on
> Is there a VB.NET command to programmatically create a new aspx page on
> the server from a string variable strMyNewHTML?

Might have to explain what you're trying to do a bit more. But you can
programmatically create content yes.

Using the 'Response' stream.

Response.Write(strMyNewHTML)

In Page_Load will dynamically display what's in there.

--
Mike
GoTinker, C# Blog
http://www.gotinker.com

From: Mark B on
Yeah but I need to save the aspx file onto the disk on the server so later
someone else can go to www.domain.com/mypage102.aspx


"Mike Lovell" <dont.reply(a)gotinker.com> wrote in message
news:u8UALWKxKHA.4532(a)TK2MSFTNGP05.phx.gbl...
>> Is there a VB.NET command to programmatically create a new aspx page on
>> the server from a string variable strMyNewHTML?
>
> Might have to explain what you're trying to do a bit more. But you can
> programmatically create content yes.
>
> Using the 'Response' stream.
>
> Response.Write(strMyNewHTML)
>
> In Page_Load will dynamically display what's in there.
>
> --
> Mike
> GoTinker, C# Blog
> http://www.gotinker.com

From: Mike Lovell on
> Yeah but I need to save the aspx file onto the disk on the server so later
> someone else can go to www.domain.com/mypage102.aspx

Yes, you could just save that information using:

File.WriteAllText(filename, data);

In the System.IO Namespace.

It does depend on what you're trying to do though, you can carry out URL
redirection and things like this in your 'web.config' - Where you can have
different URL's correspond to a single page, which you can alter based on
which URL the browser called.

--
Mike
GoTinker, C# Blog
http://www.gotinker.com

From: Mark B on
Is that URL redirection via webconfig SEO friendly?

Basically our concept is similar to a dictionary.com one where they have:

dictionary.com/truck
dictionary.com/trunk
dictionary.com/try

etc

and each page is laden with the particular keyword. I thought the only way
they did this was by creating separate pages for each.





"Mike Lovell" <dont.reply(a)gotinker.com> wrote in message
news:OG9Sr8LxKHA.4552(a)TK2MSFTNGP04.phx.gbl...
>> Yeah but I need to save the aspx file onto the disk on the server so
>> later someone else can go to www.domain.com/mypage102.aspx
>
> Yes, you could just save that information using:
>
> File.WriteAllText(filename, data);
>
> In the System.IO Namespace.
>
> It does depend on what you're trying to do though, you can carry out URL
> redirection and things like this in your 'web.config' - Where you can have
> different URL's correspond to a single page, which you can alter based on
> which URL the browser called.
>
> --
> Mike
> GoTinker, C# Blog
> http://www.gotinker.com