Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: How do you include HTML in a VBScript sub


Message #1 by "Michael Fisher" <mfisher@w...> on Fri, 31 Aug 2001 16:48:57
Hey all -



Can anyone provide me with an example of how to include HTML in a VBScript 

sub procedure?  Do you enclose all your HTML tags in a response.write?  

I'm trying to write a VBScript sub that generates a dynamic HTML table.



Regards -
Message #2 by "Monique Angelich" <mangelich@m...> on Fri, 31 Aug 2001 12:05:14 -0400
yes, html is enclosed in the write procedure.



just watch your ticks and quotes.



Moe

----- Original Message -----

From: "Michael Fisher" <mfisher@w...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Friday, August 31, 2001 4:48 PM

Subject: [asp_web_howto] How do you include HTML in a VBScript sub





> Hey all -

>

> Can anyone provide me with an example of how to include HTML in a VBScript

> sub procedure?  Do you enclose all your HTML tags in a response.write?

> I'm trying to write a VBScript sub that generates a dynamic HTML table.

>

> Regards -
Message #3 by Kyle Burns <kburns@c...> on Fri, 31 Aug 2001 12:55:00 -0500
All that you need to do is place the HTML portions outside of your script

delimeters (this is just an example as I'd suggest using GetString):





<%

Sub MakeTable(rs)

%>

<TABLE>

	<TR>

<%

	For Each fld In rs.Fields

%>

		<TH><% =fld.Name %></TH>

<%

	Next 'fld

	Do Until rs.EOF

%>

	<TR>

<%

		For Each fld In rs.Fields

%>

		<TD><% =fld.Value %> </TD>

<%

		Next 'fld	

%>

	</TR>

<%

		rs.MoveNext

	Loop

%>

</TABLE>

<%

End Sub

%>





=================================

Kyle M. Burns, MCSD

ECommerce Technology Manager

Centra Credit Union

kburns@c...



 



-----Original Message-----

From: Michael Fisher [mailto:mfisher@w...]

Sent: Friday, August 31, 2001 11:49 AM

To: ASP Web HowTo

Subject: [asp_web_howto] How do you include HTML in a VBScript sub





Hey all -



Can anyone provide me with an example of how to include HTML in a VBScript 

sub procedure?  Do you enclose all your HTML tags in a response.write?  

I'm trying to write a VBScript sub that generates a dynamic HTML table.



Regards -


  Return to Index