Re: Help with ASP.net file
Can we see the code for the HTML file?
It sounds like either you're web server is not configured to handle asp files, or your HTML page is coded incorrectly.
Re: Help with ASP.net file
Here is the code from the body of the html file
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
<!--
#apDiv1 {
position:absolute;
left:2px;
top:75px;
width:11552px;
height:0px;
z-index:1;
}
body,td,th {
font-size: 18px;
color: #000033;
}
body {
background-color: #FFFBF0;
background-image: url();
background-repeat: no-repeat;
}
.style11 {font-size: 16px; color: #FF0000; }
.style8 {font-size: 16px}
.style9 {font-weight: bold; color: #FF0000; }
-->
</style>
</head>
<body>
<form id="form1" name="form1" method="post" action="posttodb.asp">
<label></label>
<label></label>
<table width="1066" height="191" border="0">
<tr>
<td width="138"><label>Card# </label></td>
<td width="912"><input type="text" name="Card#" id="Card#" /></td>
</tr>
<tr>
<td><label>FirstName </label></td>
<td><input type="text" name="FirstName" id="FirstName" /></td>
</tr>
<tr>
<td>LastName</td>
<td><input type="text" name="Last Name" id="Last Name" /></td>
</tr>
<tr>
<td><label>DOB </label></td>
<td><label>
<input type="text" name="DOB" id="DOB" />
</label></td>
</tr>
<tr>
<td><label>CellPhone </label></td>
<td><label>
<input type="text" name="CellPhone" id="CellPhone" />
</label></td>
</tr>
<tr>
<td><label>EmailAddress</label></td>
<td><input type="text" name="EmailAddress" id="EmailAddress" /></td>
</tr>
<tr>
<td> </td>
<td><label>
<input type="radio" name="Gender" value="radio" id="Gender_0" />
Male</label>
<br />
<label>
<input type="radio" name="Gender" value="radio" id="Gender_1" />
Female</label></td>
</tr>
<tr>
<td><label>StoreName </label></td>
<td><label>
<input type="text" name="StoreName" id="StoreName" />
</label></td>
</tr>
</table>
<p>
</form>
</body>
</html>
Thanks
Re: Help with ASP.net file
Yeah, you have to run that page from a web server that supports ASP (IIS for example). You cannot just execute ASP scripting on your desktop.
Re: Help with ASP.net file
Now I keep getting an internal server error as soon as I clik on Submit.
The code looks ok right?
Any ideas?
Re: Help with ASP.net file
What server do you have? Did you install the ASP batch file from VS2010?
If you didn't have IIS installed when you installed VS2010, it doesn't load it