Thanks for that. But when i tried youe line of code,
strAmount = CStr(ViewState("txtAmount"));
I got this error on compile.
(65): 'System.Web.UI.Control.ViewState' denotes a 'property' where a 'method' was expected
You may have seem my post a little earlier, where my form had no veiwstate and was not posting any data back. I seemed to have that working now, but now there is a new problem.
I cannot read the submitted values...
Just to summarise, my form is in a nested user control. One that is 'loaded'...
I have this problem fixed now. The form is submitting and has values in it, problem is that I cant read them.. I am starting a new post with this new problem..
I have more news on this problem.
I moved the project to a different environment. This one a win2000 server, as opposed to the winXP server I was on before.
The error is still there, but it behaves differently.
On the win2000 server, the form returns an error when you hit the button. The...
oops, wrong form name in the above page.. (is there an edit function in the forum).
The correct code should have been....
<form name="_ctl5:_ctl0:_ctl0:SurveyForm1" method="post" action="p.aspx?n=LAFEP-KXTHT-LORGQ-WFWEJ-GARSU"...
I have another odd thing to add. I have just noticed, doing 'View Source' on my rendered page, that the form has no VIEWSTATE set. Odd no?
One final thing, is that in my code I declare the form like this..
<form method="post" runat="server" id="SurveyForm1">
and...
Help!. I need help with a form on a site I am building in C#.NET. The structure of the site is done. It is complex system that goes through the following steps..
1. Reads a template file (the pages main HTML code)
2. Parses the code, outputting most of it to a HtmlTextWriter object and...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.