post back

V

VA Handerson

I coded the simple page using ASP.NET extension.
this code is located under the virtual directory called DEVWRK. I typed
the link as blow and it works

http://localhost/DEVWRK/ASPDOTNET/SimpleHTML.aspx

but when I submit the form, I have a message saying "The page cannot be
displayed". The HTML form should post back to itself. what did I do
wrong?

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

<html>
<head>
<title>Simple HTML Page</title>
</head>

<body>

<form method="post" action="SimpleHTML.aspx">
<b>Username:</b>
<br><input name="username" type="Text" size="30">
<P>
<b>Comments:</b>
<br><textarea name="comments" cols="60" rows="10"></textarea>
<p>
<input type="Submit" value="Add Comment">
</form>
</body>
</html>
 
G

Guest

VA Handerson said:
I coded the simple page using ASP.NET extension.
this code is located under the virtual directory called DEVWRK. I typed
the link as blow and it works

http://localhost/DEVWRK/ASPDOTNET/SimpleHTML.aspx

but when I submit the form, I have a message saying "The page cannot be
displayed". The HTML form should post back to itself. what did I do
wrong?

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

<html>
<head>
<title>Simple HTML Page</title>
</head>

<body>

<form method="post" action="SimpleHTML.aspx">
<b>Username:</b>
<br><input name="username" type="Text" size="30">
<P>
<b>Comments:</b>
<br><textarea name="comments" cols="60" rows="10">
 
G

Guest

I think the root of the problem is that the "aspx" page is NOT an ASPX page.
What you have is an HTML page with an ASPX extension. Give it an HTM or HTML
extension and it should work.

If you want to do an ASPX page you will have to create and build a complete
"solution".
 
V

VA Handerson

Yeah, I thought so. I was following the Sams ASP.NET Unleased book
example. It was the first sample in the chapter one and it was saved as
..aspx with html code in it and did not say anything about the error.
thanks anyway.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,143
Messages
2,570,822
Members
47,368
Latest member
michaelsmithh

Latest Threads

Top