469,592 Members | 1,882 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,592 developers. It's quick & easy.

Code confusion

HI!!!

I request you to kindly go through the code... I'm getting an error in line 71 as "Unterminated String Constant" which I'm not able to find out. Please help me at the earliest. (The error line is shown ib bold in the code)

-------------------------------------------------------------------------------------------------------------------
<%@ Language=VBScript %>
<% Response.CacheControl = "no-cache" %>
<%Response.Expires = -1%>
<%
if isEmpty(Session("uid")) then
Response.Redirect "../blank.htm"
Response.End
end if
%>
<!-- #include file="../connection.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>ISL e-Facilitator</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<link rel="stylesheet" type="text/css" href="../../stylesheet/isl.css">
<script language="javascript" type="text/javascript" src="../../javascript/isl.js"></script>
<script language="javascript">
<!--
function openDiv(strDiv){
if(strDiv == "Div1"){
document.getElementById("Div2").style.visibility = "hidden";
document.getElementById("ResFile").className = "NonActiveTabHeader"
document.getElementById("Div1").style.visibility = "visible";
document.getElementById("PrjFile").className = "ActiveTabHeader"

}else if(strDiv == "Div2"){
document.getElementById("Div1").style.visibility = "hidden";
document.getElementById("PrjFile").className = "NonActiveTabHeader"
document.getElementById("Div2").style.visibility = "visible";
document.getElementById("ResFile").className = "ActiveTabHeader"
}
}

function openFileRes(strFileName){
strURL = "../../ISLResource/"+strFileName;
window.open(strURL,"_new")
}

function openPage(strURL){
window.open(strURL,"rightFrame","");
}

function uploadRes(){
if(document.uploadPrj.briefdesc.value.length == 0){
alert("Please enter a small description about the file.");
document.uploadPrj.briefdesc.focus();
return false;
}

if(document.uploadPrj.briefdesc.value.length > 500){
alert("Description must not be more than 500 characters.");
document.uploadPrj.briefdesc.focus();
return false;
}
document.uploadPrj.action = "submituploadRes.asp";
document.uploadPrj.submit();
}
-->
</script>
</head>
<body topmargin="10" onload="openDiv('Div1')">
<table border="0" align="left" width="525" cellpadding="0" cellspacing="0">
<tr>
<td id="PrjFile" width="110" height="20" align="center" class="ActiveTabHeader" onmouseover="style.cursor='hand';" onclick="openDiv('Div1')">Download</td>
<td id="ResFile" width="100" height="20" align="center" class="NonActiveTabHeader" onmouseover="style.cursor='hand';" onclick="openDiv('Div2')">Upload</td>
<td width="325" height="20"></td>
</tr>
<tr>
<td>

<div id="Div1" style="position:absolute; visibility:hidden; border-style:solid; border-width:1px; border-color:#788A96">
<table border="0" align="left" width="525" cellpadding="0" cellspacing="2">
<tr>

<!--
-->
</tr>
<%
'Set Rs = Con.Execute("select file_name, upload_by, description from resource_file order by file_date desc")
Set Rs = Con.Execute("dbo.listResFile " & Request.QueryString("beginRec") & "," & Request.QueryString("endRec") & "," & Request.QueryString("pageid"))
If Not Rs.EOF Then
Response.Write "<td width=225 height=20 bgcolor=silver style=""padding-left:5px;"" class=ProjectList><b>Name</b></td>"
Response.Write "<td width=225 height=20 bgcolor=silver style=""padding-left:5px;"" class=ProjectList><b>Upload By</b></td>"
Response.Write "<td width=75 height=20 bgcolor=silver style=""padding-left:5px;"" class=ProjectList><b>Size</b></td>"
While Not Rs.EOF
fPath = Server.MapPath("../../ISLResource/" & Rs(0))
Set fso = Server.CreateObject("Scripting.FileSystemObject")
Set file = fso.GetFile(fPath)
Response.Write "<tr>"
Response.Write "<td width=225 height=18 bgcolor=#dcdcdc style=""padding-left:2px;"" class=ProjectList><a onmouseover=""style.cursor='hand';"" onclick=openFileRes('" & file.name & "')>" & file.name & "</a></td>"
Response.Write "<td width=225 height=18 bgcolor=#dcdcdc style=""padding-left:2px;"" class=ProjectList nowrap>" & Rs(1) & "</td>"
Response.Write "<td align=right width=75 height=18 bgcolor=#dcdcdc style=""padding-right:2px;"" class=ProjectList>" & CInt((file.Size/1024)) & " Kb</td>"
Response.Write "</tr>"
Response.Write "<tr>"
Response.Write "<td width=525 colspan=3 height=18 bgcolor=#E5E6E8 style=""padding-left:2px;padding-bottom:10px;"" class=ProjectList nowrap>" & Rs(2) & "</td>"
Response.Write "</tr>"
Set folder = Nothing
Set fso = Nothing
Rs.MoveNext
Wend

iFirst = 0
iLast = 10
Rs.MoveFirst
Response.Write "<tr>"
Response.Write "<td width=525 colspan=3 height=18 align=right style=""padding-top:10px;padding-left:2px;padding-bottom:10px;"" class=ProjectList nowrap>"
If Rs(3) > 1 Then
For i=1 to Rs(3)
If i = CInt(Request.QueryString("pageid")) Then
Response.Write i & " "
Else
strURL = "download.asp?beginRec=" & iFirst & "&endRec=" & iLast & "&pageid=" & i
Response.Write "<a onmouseover=""style.cursor='hand';"" onclick=""openPage('" & strURL & "')""><u>" & i & "</u></a> "
End If
iFirst = iFirst + 10
iLast = iLast + 10
Next
End If
Response.Write "</td>"
Response.Write "</tr>"
Else
Response.Write "<tr>"
Response.Write "<td height=18 align=center style=""padding-left:2px;"" class=ProjectList>File Not Available.</td>"
Response.Write "</tr>"
End If
%>
</table>
</div>

<div id="Div2" style="position:absolute; visibility:hidden; border-style:solid; border-width:1px; border-color:#788A96">
<form name="uploadPrj" method="post" enctype="multipart/form-data">
<table border="0" align="left" width="100%" cellpadding="0" cellspacing="0">
<tr><td colspan="2" style="padding-left:10px; padding-right:5px; padding-top:10px; text-align:justify" class="ProjectList">
Upload only those files which are not related to your project. The files uploaded from this screen goes to
a common folder from where everybody can access them.
</td></tr>
<tr>
<td style="padding-left:10px; padding-right:5px; padding-top:10px;" class="ProjectList">File</td>
<td align="right" style="padding-top:10px; padding-right:5px;">
<input type="file" size="60" name="fileprj1" class="FormObject"></td>
</tr>
<tr>
<td valign="top" style="padding-left:10px; padding-right:5px; padding-top:10px;" class="ProjectList">Description</td>
<td align="right" style="padding-top:10px;padding-right:5px;">
<textarea rows="5" cols="70" name="briefdesc" class="FormObject"></textarea></td>
</tr>
<tr><td colspan="2" align="right" style="padding-right:5px; padding-top:5px;">
<a href="#" onclick="uploadRes()">
<img src="../../images/floppy.jpg" border="0" alt="Save" >
</td></tr>
</table>
</form>
</div>

</td>
</tr>
</table>
</body>
</html>


---------------------------------------------------------------------------------

Thanks in advance.

Prasanthi
Dec 1 '06 #1
1 1130
the following row...
<tr>

<!--
-->
</tr>

is inside an unclosed td , which is inside an unclosed tr of it's own. either add </td></tr> before the row or add it to it's own table. (or whatever your layout demands)...
Dec 11 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

171 posts views Thread by tshad | last post: by
reply views Thread by i_have_control | last post: by
39 posts views Thread by Abubakar | last post: by
10 posts views Thread by joelagnel | last post: by
135 posts views Thread by Xah Lee | last post: by
4 posts views Thread by Z.K. | last post: by
7 posts views Thread by sindhu sweet | last post: by
27 posts views Thread by Jonathan Wood | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.