Recommended: Methods to interpret the Server object error of ASP website Symptoms: The following error occurred when accessing the asp web page: Server object error ''ASP 0178: 80070005''Server.CreateObject Access Error/_fpclass/fpdbrgn1.inc, line 99The call to Server.C
I don’t know if friends who write code in ASP have the same feeling as me. The most troublesome thing in ASP is that it is inconvenient to debug programs. I think many friends may use this method to respond.write and then output relevant statements to see if it is correct. A few days ago, I wrote a thousand lines page, which contains about seven or eight SUB/FUNCTIONs. I used more than thirty responses.write when debugging. Oh my God, after debugging, delete these thirty one by one, which is tiring!
Today I saw a Debug class (VBS) in ASP. I tried it out, it was amazing!
How to use is very simple:
| The following is the quoted content: test.ASP <!--#INCLUDE FILE=debuggingConsole.ASP--> <% output=XXXX Set debugstr = New debuggingConsole debugstr.Enabled = true debugstr.Print parameter output value, output '... debugstr.draw Set debugstr = Nothing %> ====================================================================== debuggingConsole.ASP <% Class debuggingConsole private dbg_Enabled private dbg_Show private dbg_RequestTime private dbg_FinishTime private dbg_Data private dbg_DB_Data private dbg_AllVars private dbg_Show_default private DivSets(2) 'Construktor => set the default values Private Sub Class_Initialize() dbg_RequestTime = Now() dbg_AllVars = false Set dbg_Data = Server.CreateObject(Scripting.Dictionary) DivSets(0) = <TR><TD style='cursor:hand;' onclick=javascript:if (document.getElementById('data#sectname#').style.display=='none'){document.getElementById('data#sectname#').style.display='block';}else{document.getElementById('data#sectname#').style.display='none';}><DIV id=sect#sectname# style=font-weight:bold;cursor:hand;background:#7EA5D7;color:white;padding-left:4;padding-right:4;padding-bottom:2;>|#title#| <DIV id=data#sectname# style=cursor:text;display:none;background:#FFFFF;padding-left:8; onclick=window.event.cancelBubble = true;>|#data#| </DIV>|</DIV>| DivSets(1) = <TR><TD><DIV id=sect#sectname# style=font-weight:bold;cursor:hand;background:#7EA5D7;color:white;padding-left:4;padding-right:4;padding-bottom:2; onclick=javascript:if (document.getElementById('data#sectname#').style.display=='none'){document.getElementById('data#sectname#').style.display='block';}else{document.getElementById('data#sectname#').style.display='none';}>|#title#| <DIV id=data#sectname# style=cursor:text;display:block;background:#FFFFF;padding-left:8; onclick=window.event.cancelBubble = true;>|#data#| </DIV>|</DIV>| DivSets(2) = <TR><TD><DIV id=sect#sectname# style=background:#7EA5D7;color:lightsteelblue;padding-left:4;padding-right:4;padding-bottom:2;>|#title#| <DIV id=data#sectname# style=display:none;background:lightsteelblue;padding-left:8>|#data#| </DIV>|</DIV>| |
Share: How to make ASP jump out of this time and enter the next loop Look at the Java code below. The purpose is to not do output when i is 3 and jump to the next loop directly. The following is the quoted content: int i = 0; w
3 pages in total Previous page 123 Next page