Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

html in "Sub WriteHTML()"

Status
Not open for further replies.

smsinger3

Programmer
Oct 5, 2000
192
US
Hello all.

I'm researching what needs to be done with converting our old asp to asp.net. I've read that we can't write typical html in sub's anymore. We have pages and pages and pages of html in subroutines. (Let's not talk about the best practices of writing html...) Does anyone have any ideas of converting these asp pages? I know we can do the following:
1) Change all the code to Response.Write(blah blah blah)
2) Make each subroutine to an include file.
3) ???? <-- any others?

I'm looking for the easiest way to do this!

Thanks for your help!

SteveS
 
Could put them into placeholders and then show/hide those placeholders with the code that would have called the subs...

instead of

if someCondition then
call sub1
end if

do

if someCondition then
placeHolder1.visible = true
end if

beauty of that would be that you could just wrap the html with placeholder tags instead of the sub/end sub tag, and you're done.
penny1.gif
penny1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top