[newbie] Form does not retain values when refreshed
-
Why doesn't this form retain the values when I key them in the textbox? I've tried with Mozilla and IE. CurrencyConvertor.aspx
]]>
http://www.w3.org/TR/xhml11/DTD/xhtml11.dtd">
Currency Converter
Convert: US Dollars to Euros.
Jon
-
Why doesn't this form retain the values when I key them in the textbox? I've tried with Mozilla and IE. CurrencyConvertor.aspx
]]>
http://www.w3.org/TR/xhml11/DTD/xhtml11.dtd">
Currency Converter
Convert: US Dollars to Euros.
Jon
-
-
Why doesn't this form retain the values when I key them in the textbox? I've tried with Mozilla and IE. CurrencyConvertor.aspx
]]>
http://www.w3.org/TR/xhml11/DTD/xhtml11.dtd">
Currency Converter
Convert: US Dollars to Euros.
Jon
You aren't using any server controls. ASP.NET use a mechanism called ViewState to maintain the values of a page. Try converting the input types to
runat=server
or change it to ASP.NET server control.Navaneeth How to use google | Ask smart questions
-
Why doesn't this form retain the values when I key them in the textbox? I've tried with Mozilla and IE. CurrencyConvertor.aspx
]]>
http://www.w3.org/TR/xhml11/DTD/xhtml11.dtd">
Currency Converter
Convert: US Dollars to Euros.
Jon
-
I've tried rebuilding from scratch, and scouted the web unsuccessfully trying to find a solution. In my code I had updated the attributes so that they are converted to server controls, hence, processed by the server. In the previous version, I was viewing the page successfully; within the source tag, I'm seeing the _VIEWSTATE, hence, assuming that view state is already enabled. Am I doing something wrong? I've noted that: 1. the control "US" is not recognized by Intellisense (see .cs file below) 2. when I load the webpage an error is displayed; this was not displayed before Compiler Error Message: CS0115: 'ASP.currencyconvertor_aspx.GetTypeHashCode()': no suitable method found to override Detailed error below. :confused:
CurrencyConvertor.aspx
]]>Currency Converter
Convert: US Dollars to Euros. onserverclick="Convert\_ServerClick" />
CurrencyConvertor.aspx.cs
public partial class html_CurrencyConvertor : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
//decimal USAmount = Decimal.Parse(US....
//here I'm expecting the id US to be displayed within Intellisense, becauase
//I've declared it within the .aspx file.
}
}// The following HTML source code from previous version
http://www.w3.org/TR/xhml11/DTD/xhtml11.dtd">
Currency Converter
Convert: US Dollars to Euros.
Error: Server Error in '/CurrencyConvertor' Application. Compilation Error Description: An error occurred
-
Why doesn't this form retain the values when I key them in the textbox? I've tried with Mozilla and IE. CurrencyConvertor.aspx
]]>
http://www.w3.org/TR/xhml11/DTD/xhtml11.dtd">
Currency Converter
Convert: US Dollars to Euros.
Jon
try runat="server" for ur form controls
-
You aren't using any server controls. ASP.NET use a mechanism called ViewState to maintain the values of a page. Try converting the input types to
runat=server
or change it to ASP.NET server control.Navaneeth How to use google | Ask smart questions