Forums

This topic is locked

Why does UD insert this Script?

Posted 15 Mar 2002 00:27:05
1
has voted
15 Mar 2002 00:27:05 steven brown posted:
I use library files to add footers to each page in the site. i have added dynamic data to these footers and finessed the code to work right when they are added to the pages.

here's my problem, when i open up either the library file or the page it's used in, UltraDev automatically inserts this VBscript into the page. but the page is ASP javascript, so it wreaks havok!! how can i make it not enter this code?? thanks!!

<SCRIPT RUNAT=SERVER LANGUAGE=VBSCRIPT>
function DoDateTime(str, nNamedFormat, nLCID)
dim strRet
dim nOldLCID

strRet = str
If (nLCID > -1) Then
oldLCID = Session.LCID
End If

On Error Resume Next

If (nLCID > -1) Then
Session.LCID = nLCID
End If

If ((nLCID < 0) Or (Session.LCID = nLCID)) Then
strRet = FormatDateTime(str, nNamedFormat)
End If

If (nLCID > -1) Then
Session.LCID = oldLCID
End If

DoDateTime = strRet
End Function
</SCRIPT>



Reply to this topic