Hej Frågan är vad t.ex. Det där är väl inte aspkod?Hjälp mig "rensa" ASP kod
Jag har skapat en massa ASP sidor med hjälp av excel och ett sorts översättnings program.
Den koden går enormt trögt på servern. Vad kan jag radera bort för att snabba upp den?
Jag vill helst inte göra om helt, det är många. OBS har väldigt dålig kunskap själv så förklara
därefter.
Tack på förhand.
//Niklas
<%@ Language=VBScript %>
<!--#include file="ctapiheader.txt"-->
<%Session("PrivilegeLockOut")=0%>
<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=ProgId content=Excel.Sheet>
<meta name=Generator content="Microsoft Excel 9">
<link rel=File-List href="./A_LA23setpoint.asp-filer/filelist.xml">
<link rel=Edit-Time-Data href="./A_LA23setpoint.asp-filer/editdata.mso">
<link rel=OLE-Object-Data href="./A_LA23setpoint.asp-filer/oledata.mso">
<!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>Niklas Lindblom</o:Author>
<o:LastAuthor>Dator1</o:LastAuthor>
<o:LastPrinted>2002-12-06T09:41:22Z</o:LastPrinted>
<o:Created>2002-12-06T07:18:20Z</o:Created>
<o:LastSaved>2003-05-20T10:20:59Z</o:LastSaved>
<o:Company>Siemens</o:Company>
<o:Version>9.2812</o:Version>
</o:DocumentProperties>
</xml><![endif]-->
<style>
<!--table
{mso-displayed-decimal-separator:"\,";
mso-displayed-thousand-separator:" ";}
@page
{margin:.98in .79in .98in .79in;
mso-header-margin:.5in;
mso-footer-margin:.5in;}
tr
<%TagValue = Ctapi.ReadTag("mso-height-source:auto;")
response.write TagValue%>
col
<%TagValue = Ctapi.ReadTag("mso-width-source:auto;")
response.write TagValue%>
br
<%TagValue = Ctapi.ReadTag("mso-data-placement:same-cell;")
response.write TagValue%>
.style0
{mso-number-format:General;
text-align:general;
vertical-align:bottom;
white-space:nowrap;
mso-rotate:0;
mso-background-source:auto;
mso-pattern:auto;
color:windowtext;
font-size:10.0pt;
font-weight:400;
font-style:normal;
text-decoration:none;
font-family:Arial;
mso-generic-font-family:auto;
mso-font-charset:0;
border:none;
mso-protection:locked visible;
mso-style-name:Normal;
mso-style-id:0;}
td
{mso-style-parent:style0;
padding-top:1px;
padding-right:1px;
padding-left:1px;
mso-ignore:padding;
color:windowtext;
font-size:10.0pt;
font-weight:400;
font-style:normal;
text-decoration:none;
font-family:Arial;
mso-generic-font-family:auto;
mso-font-charset:0;
mso-number-format:General;
text-align:general;
vertical-align:bottom;
border:none;
mso-background-source:auto;
mso-pattern:auto;
mso-protection:locked visible;
white-space:nowrap;
mso-rotate:0;}
.xl24
{mso-style-parent:style0;
background:silver;
mso-pattern:auto none;}
.xl25
{mso-style-parent:style0;
color:white;
font-weight:700;
font-family:Arial, sans-serif;
mso-font-charset:0;
text-align:left;
border:1.0pt solid gray;
background:#339966;
mso-pattern:auto none;}
.xl26
{mso-style-parent:style0;
color:navy;
font-weight:700;
text-align:center-across;
border-top:none;
border-right:none;
border-bottom:1.0pt solid gray;
border-left:none;
background:silver;
mso-pattern:auto none;}
.xl27
{mso-style-parent:style0;
vertical-align:middle;
border-top:.5pt solid gray;
border-right:none;
border-bottom:none;
border-left:1.0pt solid gray;
background:silver;
mso-pattern:auto none;}
.xl28
{mso-style-parent:style0;
font-size:1.0pt;
font-family:Arial, sans-serif;
mso-font-charset:0;
vertical-align:middle;
border-top:none;
border-right:none;
border-bottom:.5pt solid gray;
border-left:none;
background:silver;
mso-pattern:auto none;}
.xl29
{mso-style-parent:style0;
text-align:left;
vertical-align:middle;
border-top:1.0pt solid gray;
border-right:1.0pt solid gray;
border-bottom:none;
border-left:none;
background:silver;
mso-pattern:auto none;}
.xl30
{mso-style-parent:style0;
font-size:1.0pt;
font-family:Arial, sans-serif;
mso-font-charset:0;
vertical-align:middle;
border-top:none;
border-right:none;
border-bottom:1.0pt solid gray;
border-left:none;
background:silver;
mso-pattern:auto none;}
.xl31
{mso-style-parent:style0;
text-align:left;
vertical-align:middle;
border-top:.5pt solid gray;
border-right:1.0pt solid gray;
border-bottom:1.0pt solid gray;
border-left:none;
background:silver;
mso-pattern:auto none;}
.xl32
{mso-style-parent:style0;
color:white;
font-weight:700;
font-family:Arial, sans-serif;
mso-font-charset:0;
text-align:left;
border-top:none;
border-right:1.0pt solid gray;
border-bottom:1.0pt solid gray;
border-left:1.0pt solid gray;
background:#339966;
mso-pattern:auto none;}
.xl33
{mso-style-parent:style0;
color:navy;
font-size:1.0pt;
font-weight:700;
font-family:Arial, sans-serif;
mso-font-charset:0;
text-align:center-across;
border-top:none;
border-right:none;
border-bottom:1.0pt solid gray;
border-left:none;
background:silver;
mso-pattern:auto none;}
.xl34
{mso-style-parent:style0;
font-size:1.0pt;
font-family:Arial, sans-serif;
mso-font-charset:0;
vertical-align:middle;
border-top:none;
border-right:1.0pt solid gray;
border-bottom:none;
border-left:none;
background:silver;
mso-pattern:auto none;}
.xl35
{mso-style-parent:style0;
vertical-align:middle;
border-top:.5pt solid gray;
border-right:none;
border-bottom:1.0pt solid gray;
border-left:1.0pt solid gray;
background:silver;
mso-pattern:auto none;}
.xl36
{mso-style-parent:style0;
font-size:1.0pt;
font-family:Arial, sans-serif;
mso-font-charset:0;
vertical-align:middle;
border-top:.5pt solid gray;
border-right:1.0pt solid gray;
border-bottom:1.0pt solid gray;
border-left:none;
background:silver;
mso-pattern:auto none;}
-->
</style>
<!--[if gte mso 9]><xml>
<x:ExcelWorkbook>
<x:ExcelWorksheets>
<x:ExcelWorksheet>
<x:Name>Blad1</x:Name>
<x:WorksheetOptions>
<x:Print>
<x:ValidPrinterInfo/>
<x:PaperSizeIndex>9</x:PaperSizeIndex>
<x:VerticalResolution>600</x:VerticalResolution>
</x:Print>
<x:Selected/>
<x:Panes>
<x:Pane>
<x:Number>3</x:Number>
<x:ActiveRow>6</x:ActiveRow>
<x:ActiveCol>1</x:ActiveCol>
</x:Pane>
</x:Panes>
<x:ProtectContents>False</x:ProtectContents>
<x:ProtectObjects>False</x:ProtectObjects>
<x:ProtectScenarios>False</x:ProtectScenarios>
</x:WorksheetOptions>
</x:ExcelWorksheet>
<x:ExcelWorksheet>
<x:Name>Blad2</x:Name>
<x:WorksheetOptions>
<x:ProtectContents>False</x:ProtectContents>
<x:ProtectObjects>False</x:ProtectObjects>
<x:ProtectScenarios>False</x:ProtectScenarios>
</x:WorksheetOptions>
</x:ExcelWorksheet>
<x:ExcelWorksheet>
<x:Name>Blad3</x:Name>
<x:WorksheetOptions>
<x:ProtectContents>False</x:ProtectContents>
<x:ProtectObjects>False</x:ProtectObjects>
<x:ProtectScenarios>False</x:ProtectScenarios>
</x:WorksheetOptions>
</x:ExcelWorksheet>
</x:ExcelWorksheets>
<x:WindowHeight>9090</x:WindowHeight>
<x:WindowWidth>8460</x:WindowWidth>
<x:WindowTopX>480</x:WindowTopX>
<x:WindowTopY>135</x:WindowTopY>
<x:ProtectStructure>False</x:ProtectStructure>
<x:ProtectWindows>False</x:ProtectWindows>
</x:ExcelWorkbook>
</xml><![endif]-->
</head>
<body link=blue vlink=purple class=xl24>
<table x:str border=0 cellpadding=0 cellspacing=0 width=216 style='border-collapse:
collapse;table-layout:fixed;width:162pt'>
<col class=xl24 width=141 style='mso-width-source:userset;mso-width-alt:5156;
width:106pt'>
<col class=xl24 width=51 style='mso-width-source:userset;mso-width-alt:1865;
width:38pt'>
<col class=xl24 width=24 style='mso-width-source:userset;mso-width-alt:877;
width:18pt'>
<tr height=18 style='height:13.5pt'>
<td height=18 class=xl24 width=141 style='height:13.5pt;width:106pt'> </td>
<td class=xl24 width=51 style='width:38pt'> </td>
<td class=xl24 width=24 style='width:18pt'> </td>
</tr>
<tr height=18 style='height:13.5pt'>
<td height=18 class=xl25 style='height:13.5pt'>Börvärden</td>
<td class=xl26> </td>
<td class=xl24> </td>
</tr>
<tr height=26 style='mso-height-source:userset;height:20.1pt'>
<td height=26 class=xl27 style='height:20.1pt'>Börvärde Tilluft</td>
<td class=xl28><%TagName1="OvikDCS_ALNE_d101_PLT2_PAR1"
TagValue1=Ctapi.ReadTagValue("OvikDCS_ALNE_d101_PLT2_PAR1")%><form action="modify.asp" method="GET"> <input type="hidden" name="SourcePage" value="A_LA23setpoint.asp"> <input type="hidden" name="TagName" value="<%=TagName1%>"><p><input type="text" name="NewValue" value="<%=TagValue1%>" size="4" Title=""> <input type="submit" value="Set"></p><p></form></td>
<td class=xl29>°C</td>
</tr>
<tr height=26 style='mso-height-source:userset;height:20.1pt'>
<td height=26 class=xl27 style='height:20.1pt'>Börvärde Nattvädring</td>
<td class=xl30><%TagName2="OvikDCS_ALNE_d101_PLT2_PAR4"
TagValue2=Ctapi.ReadTagValue("OvikDCS_ALNE_d101_PLT2_PAR4")%><form action="modify.asp" method="GET"> <input type="hidden" name="SourcePage" value="A_LA23setpoint.asp"> <input type="hidden" name="TagName" value="<%=TagName2%>"><p><input type="text" name="NewValue" value="<%=TagValue2%>" size="4" Title=""> <input type="submit" value="Set"></p><p></form></td>
<td class=xl31>°C</td>
</tr>
<tr height=18 style='mso-height-source:userset;height:13.5pt'>
<td height=18 class=xl32 style='height:13.5pt'>Manöveromkopplare</td>
<td class=xl33> </td>
<td class=xl24> </td>
</tr>
<tr height=26 style='mso-height-source:userset;height:19.5pt'>
<td height=26 class=xl27 style='height:19.5pt'>0=Auto, 1=Man</td>
<td class=xl34><%TagName3="OvikDCS_ALNE_d101_PLT2_MACT"
TagValue3=Ctapi.ReadTagValue("OvikDCS_ALNE_d101_PLT2_MACT")%><form action="modify.asp" method="GET"> <input type="hidden" name="SourcePage" value="A_LA23setpoint.asp"> <input type="hidden" name="TagName" value="<%=TagName3%>"><p><input type="text" name="NewValue" value="<%=TagValue3%>" size="4" Title=""> <input type="submit" value="Set"></p><p></form></td>
<td class=xl24> </td>
</tr>
<tr height=26 style='mso-height-source:userset;height:19.5pt'>
<td height=26 class=xl35 style='height:19.5pt'>Manöver 0=Från, 1=Till</td>
<td class=xl36><%TagName4="OvikDCS_ALNE_d101_PLT2_MCOM"
TagValue4=Ctapi.ReadTagValue("OvikDCS_ALNE_d101_PLT2_MCOM")%><form action="modify.asp" method="GET"> <input type="hidden" name="SourcePage" value="A_LA23setpoint.asp"> <input type="hidden" name="TagName" value="<%=TagName4%>"><p><input type="text" name="NewValue" value="<%=TagValue4%>" size="4" Title=""> <input type="submit" value="Set"></p><p></form></td>
<td class=xl24> </td>
</tr>
<![if supportMisalignedColumns]>
<tr height=0 style='display:none'>
<td width=141 style='width:106pt'></td>
<td width=51 style='width:38pt'></td>
<td width=24 style='width:18pt'></td>
</tr>
<![endif]>
</table>
</body>
</html>
<meta HTTP-EQUIV="Refresh" CONTENT="90">
<!--#include file="ctapifooter.txt"-->Sv: Hjälp mig "rensa" ASP kod
Ctapi.ReadTagValue
gör för något?
Jag ser ingen kod för detta i ditt exempel?
Skicka med kod för de filer som inkluderas.
Är detta skapat av ett program är det nog svårt, eller snarare omöjligt att ändra på det.Sv:Hjälp mig "rensa" ASP kod
Lägg in det i Word, spara det som html i Word
Skaffa Dreamweaver, som har en inbyggd funktion för att rensa "Word-html"