473,405 Members | 2,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

HTML 2 ASP.NET ?

hi,
i have theese static html pages
what is the best way to replace the content w/ .NET dynamic data w/o
loosing all the formating?
I have VS.NET, but will prefer to write the aspx code w/o designer.
Is there some straight way to replace say every HTML form w/ an
ASP one?

TIA
Nov 19 '05 #1
14 1194
"Bruce" <no@spam.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
i have theese static html pages
what is the best way to replace the content w/ .NET dynamic data w/o
loosing all the formating?
I have VS.NET, but will prefer to write the aspx code w/o designer.
Is there some straight way to replace say every HTML form w/ an
ASP one?


Are you wanting to replace them because you need to turn their static
content into dynamic content? If not, then just leave them the way they
are...
Nov 19 '05 #2
yeap, i need dynamic data from a database

"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:O0**************@TK2MSFTNGP14.phx.gbl...
"Bruce" <no@spam.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
i have theese static html pages
what is the best way to replace the content w/ .NET dynamic data w/o
loosing all the formating?
I have VS.NET, but will prefer to write the aspx code w/o designer.
Is there some straight way to replace say every HTML form w/ an
ASP one?


Are you wanting to replace them because you need to turn their static
content into dynamic content? If not, then just leave them the way they
are...

Nov 19 '05 #3
I'm not sure I clearly understand what you want, but I'll give this a
stab. You are talking about HTML forms into ASP forms and I don't think
this is directly doable (I could be wrong). The reason being is ASP.NET
wouldn't be able to address the Control heirarchy and persist ViewState
for you. It would simply render out the "html" with no server side
abilities.

If you are simply talking about text content and not HTML form elements,
then this is a simple matter of cut & paste into a SQL table with a
little development of a control to grab the data.

Clint Hill
H3O Software
http://www.h3osoftware.com
Bruce wrote:
yeap, i need dynamic data from a database

"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:O0**************@TK2MSFTNGP14.phx.gbl...
"Bruce" <no@spam.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl.. .

i have theese static html pages
what is the best way to replace the content w/ .NET dynamic data w/o
loosing all the formating?
I have VS.NET, but will prefer to write the aspx code w/o designer.
Is there some straight way to replace say every HTML form w/ an
ASP one?


Are you wanting to replace them because you need to turn their static
content into dynamic content? If not, then just leave them the way they
are...


Nov 19 '05 #4
"Bruce" <no@spam.com> wrote in message
news:uf**************@TK2MSFTNGP12.phx.gbl...
yeap, i need dynamic data from a database


In which case, you'll pretty much need to create the ASPX pages from
scratch. But, any formatting that's possible in raw HTML is perfectly
possible in ASP.NET.
Nov 19 '05 #5
> i have theese static html pages
what is the best way to replace the content w/ .NET dynamic data w/o
loosing all the formating?


Write an asp.net application that pulls the data out of the database and
formats the content the same was as your current HTML page is formatted.

There's no 'automated' way to do what you are asking.

-Darrel
Nov 19 '05 #6
The problem is i am not any good at HTML, the pages are already written by a
profecinal
designer, updates are now done manually :( and i heard VS.NET designer
produces very messy markup.
Do u know of some table listing ASP.NET server componets similar to the
different HTML
interface elements or some conversion software?

"Bruce" <no@spam.com> wrote in message
news:uf**************@TK2MSFTNGP12.phx.gbl...
yeap, i need dynamic data from a database

"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:O0**************@TK2MSFTNGP14.phx.gbl...
"Bruce" <no@spam.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
i have theese static html pages
what is the best way to replace the content w/ .NET dynamic data w/o
loosing all the formating?
I have VS.NET, but will prefer to write the aspx code w/o designer.
Is there some straight way to replace say every HTML form w/ an
ASP one?


Are you wanting to replace them because you need to turn their static
content into dynamic content? If not, then just leave them the way they
are...


Nov 19 '05 #7
> The problem is i am not any good at HTML, the pages are already written by
a
profecinal
designer, updates are now done manually :( and i heard VS.NET designer
produces very messy markup.
Do u know of some table listing ASP.NET server componets similar to the
different HTML
interface elements or some conversion software?


ASP.net's default controls are pretty bad when it comes to producing clean,
semantic, standards compliant markup.

Plus, you still have the issue of formatting the specific content on your
page.

You really need to do this with some custom programing. There really isn't
any way around this.

-Darrel
Nov 19 '05 #8
"Bruce" <no@spam.com> wrote in
news:#T**************@TK2MSFTNGP10.phx.gbl:
The problem is i am not any good at HTML, the pages are already
written by a profecinal
designer, updates are now done manually :( and i heard VS.NET designer
produces very messy markup.
Do u know of some table listing ASP.NET server componets similar to
the different HTML
interface elements or some conversion software?


No such software. Use the HTML as a template and add dynamic controls to
the page - replacing the static text. That is probably your easiest
solution.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #9
:(
u could at least say "wait for ASP.NET 3.0" ^_^
ok, say i have an HTML label, how do i write an ASP label
that rendres w/ the same size, color and triggers the same
JavaScript functions?

"Bruce" <no@spam.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
The problem is i am not any good at HTML, the pages are already written by
a profecinal
designer, updates are now done manually :( and i heard VS.NET designer
produces very messy markup.
Do u know of some table listing ASP.NET server componets similar to the
different HTML
interface elements or some conversion software?

"Bruce" <no@spam.com> wrote in message
news:uf**************@TK2MSFTNGP12.phx.gbl...
yeap, i need dynamic data from a database

"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:O0**************@TK2MSFTNGP14.phx.gbl...
"Bruce" <no@spam.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...

i have theese static html pages
what is the best way to replace the content w/ .NET dynamic data w/o
loosing all the formating?
I have VS.NET, but will prefer to write the aspx code w/o designer.
Is there some straight way to replace say every HTML form w/ an
ASP one?

Are you wanting to replace them because you need to turn their static
content into dynamic content? If not, then just leave them the way they
are...



Nov 19 '05 #10
If you're looking for some kind of uber-basic content management solution --
say, to allow non-technical users to update defined parts of a webpage --
you could look at some off-the-shelf product like Macromedia Contribute. It
would be easier than setting up a code-based solution, which is what you're
asking here.

If you don't know how to code, there isn't a quick and painless way to do
what you wanna do.

-KF
"Bruce" <no@spam.com> wrote in message
news:OI**************@TK2MSFTNGP09.phx.gbl...
:(
u could at least say "wait for ASP.NET 3.0" ^_^
ok, say i have an HTML label, how do i write an ASP label
that rendres w/ the same size, color and triggers the same
JavaScript functions?

"Bruce" <no@spam.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
The problem is i am not any good at HTML, the pages are already written
by a profecinal
designer, updates are now done manually :( and i heard VS.NET designer
produces very messy markup.
Do u know of some table listing ASP.NET server componets similar to the
different HTML
interface elements or some conversion software?

"Bruce" <no@spam.com> wrote in message
news:uf**************@TK2MSFTNGP12.phx.gbl...
yeap, i need dynamic data from a database

"Mark Rae" <ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote in message
news:O0**************@TK2MSFTNGP14.phx.gbl...
"Bruce" <no@spam.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...

> i have theese static html pages
> what is the best way to replace the content w/ .NET dynamic data w/o
> loosing all the formating?
> I have VS.NET, but will prefer to write the aspx code w/o designer.
> Is there some straight way to replace say every HTML form w/ an
> ASP one?

Are you wanting to replace them because you need to turn their static
content into dynamic content? If not, then just leave them the way they
are...



Nov 19 '05 #11
> Do u know of some table listing ASP.NET server componets similar to the
different HTML interface elements ...?


Converting an html page to an aspx one is not so complicated.

1. Start a new web application project.
2. Add a new web form for every page.
3. For every page copy/paste the html content to the new web form in Html
view.
4. Add runat="server" attribute to those of your existing html controls you
want to make dynamic. You will also need to set the id attribute.
5. For every page switch to the Design view, wait for a few seconds and
switch back to the Html view. Press ctrlZ twice to undo the formatting mess
introduced by the Visual Studio.
6. View code-behind. You will find that the Visual Studio created a server
control for every html control with runat="server".
7. Start programming your pages.

That's about it.

Eliyahu
Nov 19 '05 #12
> u could at least say "wait for ASP.NET 3.0" ^_^
ok, say i have an HTML label, how do i write an ASP label
that rendres w/ the same size, color and triggers the same
JavaScript functions?


Why use an ASP label?

Just use the HTML label and put runat="server" in it. Then you can still put
your inline javascript and CSS if you wish.

-Darrel
Nov 19 '05 #13
tnx a lot

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:O7**************@tk2msftngp13.phx.gbl...
Do u know of some table listing ASP.NET server componets similar to the
different HTML interface elements ...?


Converting an html page to an aspx one is not so complicated.

1. Start a new web application project.
2. Add a new web form for every page.
3. For every page copy/paste the html content to the new web form in Html
view.
4. Add runat="server" attribute to those of your existing html controls
you
want to make dynamic. You will also need to set the id attribute.
5. For every page switch to the Design view, wait for a few seconds and
switch back to the Html view. Press ctrlZ twice to undo the formatting
mess
introduced by the Visual Studio.
6. View code-behind. You will find that the Visual Studio created a server
control for every html control with runat="server".
7. Start programming your pages.

That's about it.

Eliyahu

Nov 19 '05 #14
tnx

"darrel" <no*****@hotmail.com> wrote in message
news:O4*************@TK2MSFTNGP14.phx.gbl...
u could at least say "wait for ASP.NET 3.0" ^_^
ok, say i have an HTML label, how do i write an ASP label
that rendres w/ the same size, color and triggers the same
JavaScript functions?


Why use an ASP label?

Just use the HTML label and put runat="server" in it. Then you can still
put
your inline javascript and CSS if you wish.

-Darrel

Nov 19 '05 #15

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: VK | last post by:
09/30/03 Phil Powell posted his "Radio buttons do not appear checked" question. This question led to a long discussion about the naming rules applying to variables, objects, methods and properties...
4
by: Francois Keyeux | last post by:
hello everyone: i have a web site built using vbasic active server scripting running on iis (it works on either iis 50 and 60, but is designed for iis 50) i know how to create a plain text...
1
by: cirillo_curiosone | last post by:
Hi, i'm new to javascript. I started studing it on the web few weeks ago, but still haven't been able to solve one big problem: HOT TO PASS VALUES FROM A SCRIPT VARIABLE TO A CHILD HTML...
33
by: LRW | last post by:
http://gto.ie-studios.net/index.php When you view the above site in IE, if the 1st of the three product images is tall enough to push the cell down a couple of pixels, IE somehow doesn't show...
0
by: Boris Ammerlaan | last post by:
This notice is posted about every week. I'll endeavor to use the same subject line so that those of you who have seen it can kill-file the subject; additionally, Supersedes: headers are used to...
9
by: Patient Guy | last post by:
Taking the BODY element as an example, all of its style attributes ('alink', 'vlink', 'background', 'text', etc.) are deprecated in HTML 4.01, a fact noted in the DOM Level 2 HTML specification. ...
5
by: serge calderara | last post by:
Dear all, I am new in asp.net and prepare myself for exam I still have dificulties to understand the difference between server control and HTML control. Okey things whcih are clear are the fact...
6
by: Guy Macon | last post by:
cwdjrxyz wrote: HTML 5 has solved the above probem. See the following web page: HTML 5, one vocabulary, two serializations http://www.w3.org/QA/2008/01/html5-is-html-and-xml.html
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.