.NET walkabout
posts - 12, comments - 21, trackbacks - 0

My Links

News - Two steps ahead

↑ Grab this Headline Animator

Tag Cloud


Post Categories

Code repository websites



Good old Active Server Pages
10 source code highlighters

While writing your new post to your blog, you need to highlight a piece of source code. Now, what? Here is a list of 10 online services which could save you. by Oleg Parashchenko The most "usable" online code highlighter service, supports a LOT of different languages including SQL, scripts, ancient language (*asm) and newest (.NET) Quick HighLighter by Veign A very easy to use website, supports a lot of languages, including PHP, ASP, VB.NET, C#, Ruby and "robots.txt" <--LOL CodeColor by Asp.NET Resources It has not many languages to work with and I don't like the idea to have a popoup window with the final highlighted...

posted @ martedì 16 ottobre 2007 3.16 | Feedback (3) | Filed Under [ ASP.NET ASP VbScript Visual Basic ]

Running custom VbScript code from asp

Running custom VbScript code from asp I was in the need to run some custom VbScript code from an asp page, so I went through the problem and found a very simple solution. A common solution is to use the Microsoft ScriptControl. Here is a very simple example running a piece of code stored in a text file. default.asp <%@language=VBSCRIPT%> <% dim sFile : sFile = "" sFile = LoadFile("MyCustomScript.txt") if len(sFile) > 0 then     Response.Write "The result is: " & ExecScript(sFile) end if Function ExecScript(sScript)         dim sc         'Create the Script Control object         set sc = server.CreateObject("scriptcontrol")                 sc.Language = "VBSCRIPT"         sc.UseSafeSubset = false         sc.Reset                 'add the custom script to...

posted @ lunedì 27 agosto 2007 20.25 | Feedback (3) | Filed Under [ ASP VbScript ]

Powered by: