473,396 Members | 1,997 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,396 software developers and data experts.

post back


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>

*** Sent via Developersdex http://www.developersdex.com ***
Jan 25 '06 #1
3 1079


"VA Handerson" wrote:

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

Jan 25 '06 #2
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".

"VA Handerson" wrote:

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

Jan 25 '06 #3

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.

*** Sent via Developersdex http://www.developersdex.com ***
Jan 25 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Bernd Kohler | last post by:
Hello, I got an annoying problem using the POST-method to send a form's data: I put a login-form on the page which is sent by the POST-method to itself. After that the content of the...
3
by: Alex | last post by:
Hi!! i have a major problem, and i've been searching for a solution for about 2 weeks, but havent found one. i have to do a POST-Request to a server, but the server shouldnt know my referrer....
5
by: Gary Vidal | last post by:
I have a client side Javascript which checks an OrderQuantityField against a hidden Textbox of the Minimum Order Quantity. I dont want to do validation on a postback. I would like to be able to...
5
by: Vishal | last post by:
Hello, I already asked this question in the ASP.NET forums, but no help came. So I am hoping that somebody can help me out. This is really very URGENT me. For my e-commerce application, I...
10
by: Mark | last post by:
Hi All, I could do with some assistance... I am working on an ecommerce site in vb.net (aspx) I have built all my pages that perform the checkout process and gets to a summary screen where you...
2
by: sunilthk | last post by:
Hi All, I have a question. If javascript is disabled how asp.net determines which control has caused the post back. As we know that when we clicks on the button the buttons name goes with posted...
1
by: Garg | last post by:
I had a listbox, whose autoPostBAck property was set to true. So. if I was clicking on any item for the first time, it caused a successful post-back. However, if i clicked on the item...
2
by: Garg | last post by:
I had a listbox, whose autoPostBAck property was set to true. So. if I was clicking on any item for the first time, it caused a successful post-back. However, if i clicked on the item...
1
by: =?Utf-8?B?Z29yaWxsYQ==?= | last post by:
As we know , the view state is not responsible for having TextBoxes, CheckBoxes, DropDownLists, and other Web controls remember their values across postback. When I dynamically add a...
3
by: Jag | last post by:
Hi I am facing a strange issue. I have 3 ASP pages in the default website 1. auth.aspx <html> <body>
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:
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.