HTM to ASPX

J

Julie

I created a simple web with FrontPage 2003 and I
used a theme for all my HTM pages.

I would like to add ASP.NET to one of these page.
I changed the extension of one HTM page to ASPX and add
the ASP.NET code. When I display that page with
IE the ASP.NET stuff is there but the themes are gone.

Is it the good way to add ASP.NET to a web with FP or I
did something wrong ?
 
K

Kevin Spencer

Themes aren't going to work with ASP.Net pages. However, using a Dynamic Web
Template would work, as it literally inserts the HTML code into the pages.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
K

Kevin Spencer

An ASP.Net has a Page Template which is the HTML Template in which Server
Controls are placed inside a WebForm (a <form> tag with runat=server
attribute). Any HTML can be in the HTML Template. So, you just create a
Dynamic Web Template with an Editable Region where you want your Server
Controls to go, and in the rest of it, any other content you want in all of
your pages. It's really pretty simple as far as the DWT goes. The hard part
is writing your ASP.Net code!

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
J

Julie

It seems obvious, but I'm not able to make it work
Do you have an exemple

Thank yo
 
K

Kevin Spencer

I'm afraid not. What specifically are you having aproblem with?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
J

Julie

Thanks Kevin for helping me

I created a dynamic web template and add to
it the Frontpage controls of the theme I have
I added an editable region called "test"
I have a simple aspx file with a drop down box
I attached to the aspx file the template and
everything seems good in the preview
When I browse for the page (aspx) with IE
I only see the drop down box and there is no
Frontpage control

Please help

Julie
 
K

Kevin Spencer

Hi Julie,

You stated that you created a dynamic web template, "and add to it the
FrontPage controls of the theme I have." I have no idea what that is
supposed to mean. You can add HTML to a dynamic web template. However, any
run-time FrontPage components are going to cause problems. But again, you
didn't define your term "FrontPage controls". Do you have a URL we can look
at?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 
J

Julie

Sorry for that. English is not my primary language
When I said "FrontPage controls" I mean "web components" like a navigation bar
I added them to a dynamic web template. I've also added an editable region called "test"
I created an htm page an attached the web template to it. When I browse for that page
everything is fine. But when I attached the template to an aspx page the web component
aren't displayed, only the aspx stuff. I have no url for now. I'm working locall

Thanks
Julie
 
K

Kevin Spencer

Well, Julie, you're creative, I'll give you that. However, as I mentioned,
any run-time FrontPage components (anything that uses "WebBot" tags in the
HTML) will not work on an ASPX page. That includes the elements you've
referred to. What you will need to do is to create HTML that looks and
behaves like the FrontPage components on your regular pages. I would suggest
using the DWT INSTEAD OF Navigation, Themes, etc. for your entire site. At
the very least, you can't use that stuff on an ASPX page.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top