E:\web\learnaspcom\htdocs\freebook\learn\ubtoc.xml LearnAsp.com - ASP ASP.net Free Lessons
Search Search

#1 worldwide
FREE Coding Lessons

since 1996
   THE BEST WAY to learn ASP & Asp.net!
Advertise Here!
click for details
Credits Host:
DiscountASP.net
Server Admin:
The "Team"
Contact Info.
Charles M. Carroll
<Asp.net blog>
<personal site>
xxx

Utility Belt: Source Code Pretty Printing
docs by Charles Carroll, code by Dave Wanta

The code below shows "Utility Belt" color coding source code with only 1 line of code

   filename=/experiments/utilitybelt/vercurrent/ubdemo_scriptcolorcode.aspx

<Test Script Below>


<%@ debug="true"%>
<%@ Assembly src="utilitybelt.vb" %>
<script language="VB" runat="server"> 
    dim ub1 as new learnasp.utilitybelt()
Sub Page_Load(Src As Object, E As EventArgs) 
    ub1.Options("Debug-on")
    dim ht1 as new hashtable
    litScript.text=ub1.ScriptColorCode("/students/charlescarroll/searcher.aspx",ht1)    
End Sub 
</script> 
<html><head> 
<title>UB ScriptColorCode Test</title> 
</head> 
<body bgcolor="#FFFFFF"> 
<font face="Verdana"><h3>UB ScriptColorCode Test</h3></font> 
<asp:literal id="litScript" runat="server"/>
</body></html> 
There are many worthy charities!!. But perhaps help starving children in Africa or South America AND help Charles too. a $5 tip buys him lunch at McDonalds, a $20 tip buys his kid Hitoshi a new computer game, a $39 tip buys his daughter Michiko a few nice outfits. See our donor list.