Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setup

Status
Not open for further replies.

feemi

Programmer
Feb 3, 2001
17
US
I have a simple aspx that doesn't post back the data. This is about as simple as it gets.

<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<form Runat=&quot;Server&quot;>
<b>Username:</b>
<br>
<input id=&quot;username&quot; type=&quot;text&quot; size=&quot;30&quot; Runat=&quot;Server&quot;>
<p>
<b>Comments:</b>
<br>
<textarea id=&quot;comments&quot; cols=60 rows=10 Runat=&quot;Server&quot;></textarea>
<p>
<input type=&quot;submit&quot; value=&quot;Add Comment&quot; Runat=&quot;Server&quot;>
</form>
</BODY>
</HTML>

If I run this on my local host, enter data in the input boxes, then submit, the page does not return the data. I have the framework installed. In addition, I have Visual Studio.NET. I have installed the Web Development Server Setup options. What am I forgetting?

Thanks in advance.
 
What do you mean it doesn't return the data. Are you trying to use it in some code? If you mean that when you hit submit the data disapears it's because you have no viewstate control.

We are going to need a little more info I am thinking. That'l do donkey, that'l do
[bravo] Mark
 
If you enter some text into the textarea and then submit the page, the text is not retained after submission. This works successfully on another machine setup for .Net development.
 
Add:

<%@Page Language=&quot;VB&quot; EnableViewState=&quot;True&quot;%>

to the top of the page.
penny1.gif
penny1.gif
 
I found the problem. .Net wasn't registered with IIS.

See Thread855-351076

Thanks for you help all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top