473,385 Members | 1,890 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 1245
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

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

Similar topics

4
by: etropic | last post by:
Im confused I want an .aspx page to have a table with my data in it. At first I wrote FillTablew(); in my Page_Load even in the Code Behind file. I had it loop the db etc. and use Response.Write...
171
by: tshad | last post by:
I am just trying to decide whether to split my code and uses code behind. I did it with one of my pages and found it was quite a bit of trouble. I know that most people (and books and articles)...
0
by: i_have_control | last post by:
I'd be grateful for any input on this one: I have three web domains. The destinations of two are set to folders on the first, though that fact is transparent to the user (i.e: it does not...
39
by: Abubakar | last post by:
I want to get characters for given ascii codes. Dont wanna use the CHR or ChrW functions. What r the .NET equivilents of the Chr & ChrW functions? Regards, Abubakar.
10
by: joelagnel | last post by:
hi friends, i've been having this confusion for about a year, i want to know the exact difference between text and binary files. using the fwrite function in c, i wrote 2 bytes of integers in...
1
by: Richard Lewis Haggard | last post by:
I'm having a problem with what appears to be some sort of confusion with references. I have a single solution with a dozen projects which has been working quite nicely for a while. The references...
135
by: Xah Lee | last post by:
Tabs versus Spaces in Source Code Xah Lee, 2006-05-13 In coding a computer program, there's often the choices of tabs or spaces for code indentation. There is a large amount of confusion about...
4
by: Z.K. | last post by:
I am curious as to why this code works: Form2 ^OC = gcnew Form2(); OC->Text = "Child"; OC->MdiParent = this; OC->Show(); and this does not: Form2 *OC = new Form2();
7
by: sindhu sweet | last post by:
Hi ,all #define MAX(x,y) ((x)>(y)?(x):(y) main() { intx=5,y=5; printf("maximum is %d",MAX(++x,++y)); } this is a code using macros....
27
by: Jonathan Wood | last post by:
Greetings, I'd like to write any number of classes and then use those classes from any number of .NET applications. Since we've supposedly left "DLL Hell" and ActiveX objects behind, what has...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.