Forum Moderators: open

Message Too Old, No Replies

Heed help: Lot of extra white space after instering asp code

white space after instering asp code

         

nandugan

4:05 am on Sep 2, 2010 (gmt 0)

10+ Year Member



Hi,

I am not asp programmer. But i need to do a form using asp. And i tried with the help od online tutorials and the form is working and there is a lot of white space. i don't know who to remove the whitespace. Please anyone help.

You can check the Url here:

[newenergyworld.in...]

code used:

==

<%Option Explicit
dim sName, sEmail, sMessage
dim oCdoMail, oCdoConf, sConfURL%>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Welcome to New Energy Corporation - Enquiry</title>
<link href="styles.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
background-color: #333333;
}
a:link {
color: #009900;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #009900;
}
a:hover {
text-decoration: none;
color: #000000;
}
a:active {
text-decoration: none;
color: #009900;
}
.BORDER1 {border: thin solid #EFEFEF;
}
-->
</style></head>

<body>
<table width="896" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td height="100" colspan="3" align="left" valign="top"><img src="images/logonew.gif" width="900" height="100" border="0" usemap="#Map" /></td>
</tr>

<tr>
<td width="75%" height="215" colspan="2" align="center" valign="top"><table width="672" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="672" height="7" align="left" valign="top"></td>
</tr>
<tr>
<td height="215" align="right" valign="top"><div align="right">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="661" height="215" style="display:block;>
<param name="movie" value="header.swf" />
<param name="quality" value="high" />
<embed src="header.swf" width="661" height="215" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>
</object>
</div></td>
</tr>
</table></td>
<td width="25%" height="215" rowspan="2" align="center" valign="top"><table width="215" border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#F3F3F3">
<tr>
<td width="215" height="206" align="left" valign="top" bgcolor="#efefef" class="RMbg"><table width="206" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="34" height="34" align="center" valign="middle"><img src="images/arrow1.gif" width="9" height="13" /></td>
<td width="172" height="29" align="left" valign="middle" class="menu"><a href="index.html">HOME</a></td>
</tr>
<tr>
<td height="8" colspan="2" align="center" valign="middle"><img src="images/line1.gif" width="197" height="8" /></td>
</tr>
<tr>
<td height="29" align="center" valign="middle"><img src="images/arrow1.gif" width="9" height="13" /></td>
<td align="left" valign="middle" class="menu"><a href="services.html">SERVICES</a></td>
</tr>
<tr>
<td height="8" colspan="2" align="center" valign="middle"><img src="images/line1.gif" width="197" height="8" /></td>
</tr>
<tr>
<td height="28" align="center" valign="middle"><img src="images/arrow1.gif" width="9" height="13" /></td>
<td height="29" align="left" valign="middle" class="menu"><a href="products.html">PRODUCTS</a></td>
</tr>
<tr>
<td height="8" colspan="2" align="center" valign="middle"><img src="images/line1.gif" width="197" height="8" /></td>
</tr>
<tr>
<td height="30" align="center" valign="middle"><img src="images/arrow1.gif" width="9" height="13" /></td>
<td height="29" align="left" valign="middle" class="menu"><a href="enquiry.html">ENQUIRY</a></td>
</tr>
<tr>
<td height="8" colspan="2" align="center" valign="middle"><img src="images/line1.gif" width="197" height="8" /></td>
</tr>
<tr>
<td align="center" valign="middle"><img src="images/arrow1.gif" width="9" height="13" /></td>
<td height="29" align="left" valign="middle" class="menu"><a href="contact.html">CONTACT</a></td>
</tr>
</table></td>
</tr>
<tr>
<td height="17" align="left" valign="top" bgcolor="#F5F5F5"><img src="images/Rmenubgbot.gif" width="219" height="17" /></td>
</tr>
</table></td>
</tr>
<tr>
<td height="2" colspan="2" align="center" valign="top"></td>
</tr>
<tr>
<td height="34" colspan="2" align="left" valign="top" class="heading1Copy">ENQUIRY / RFP DATA: </td>
<td rowspan="3" align="center" valign="top"><table width="217" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="2" height="1272" bgcolor="#FFFFFF"></td>
<td width="215" bgcolor="#F3F3F3">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td height="34" colspan="2" align="left" valign="middle" class="sub1"><table width="661" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="633" height="41" align="left" valign="top" class="sub1Copy"><table width="607" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="50" align="left" valign="top">&nbsp;</td>
<td width="557" align="left" valign="top">

<%if Request.Form("Action") <> "" then
sName = Request.Form("Name")
sEmail = Request.Form("Email")
sMessage = Request.Form("Message")

Set oCdoMail = Server.CreateObject("CDO.Message")
Set oCdoConf = Server.CreateObject("CDO.Configuration")

sConfURL = "http://schemas.microsoft.com/cdo/configuration/"

with oCdoConf
.Fields.Item(sConfURL & "sendusing") = 2
.Fields.Item(sConfURL & "smtpserver") = "localhost"
.Fields.Item(sConfURL & "smtpserverport") = 25
.Fields.Update
end with

with oCdoMail
.From = "nandugan@gmail.com"
.To = "nandugan@gmail.com"
.Subject = "My message subject"
.TextBody = sMessage
.HTMLBody = "Name: " & sName & "<br>" & "Message: " & sMessage & "<br>" & "Email: " & sEmail

.Configuration = oCdoConf
.Send
end with

Set oCdoConf = Nothing
Set oCdoMail = Nothing

response.write "Thanks for your message!"
else%>

<form method="post" action="<%=Request.ServerVariables("SCRIPT_NAME")%>">
Name:<br /><input type="text" name="Name" /><br />
E-mail:<br /><input type="text" name="Email" /><br />
Message:<br />
<input name="Message" type="text" value="">
<br />
<input type="submit" name="Action" value="Send" />
</form>
<%
end if
%></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>

<tr>
<td height="19" colspan="2" align="left" valign="top">&nbsp;</td>
</tr>
<tr>
<td height="98" colspan="2" align="left" valign="top">&nbsp;</td>
<td rowspan="4" align="center" valign="top"><table width="217" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td width="2" height="272" bgcolor="#FFFFFF"></td>
<td width="215" bgcolor="#F3F3F3">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td height="19" colspan="2" align="left" valign="top">&nbsp;</td>
</tr>

<tr>
<td height="1" colspan="2" align="center" valign="top">&nbsp;</td>
</tr>
<tr>
<td colspan="2" align="center" valign="top">&nbsp;</td>
</tr>
<tr>
<td colspan="3" align="center" valign="top" bgcolor="#339900"><table width="601" height="67" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="252" height="31" align="center" valign="middle" ><a href="index.html"><span class="footer">Home |</span></a> <a href="services.html"><span class="footer">Services |</span></a><a href="products.html"><span class="footer">products |</span></a><a href="enquiry.html"><span class="footer">Enquiry |</span></a><a href="contact.html"><span class="footer">Contact </span></a></td>
</tr>
<tr>
<td align="center" valign="middle" class="footer">&copy; All rights reserved. newenergyworld.in</td>
</tr>
</table></td>
</tr>
</table>

<map name="Map" id="Map"><area shape="rect" coords="8,10,356,77" href="index.html" />
<area shape="rect" coords="750,30,769,55" href="index.html" />
<area shape="rect" coords="775,28,797,54" href="contact.html" />
</map></body>
</html>





Please anyone help me to solve this issue.


Thanks
Suvetha

marcel

10:27 am on Sep 2, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Actually, the problem you are facing has nothing to do with ASP, check the created markup and work from there.

I would advise beginning with validating your markup [validator.w3.org]