Karl Seguin wrote:
Andy:
You can't. This is a security feature of HTML and has nothing to do
with ASP.Net. html input values are read only. If they weren't,
anyone could put a hidden html input field and set the value like
"c:\passwords.txt" and when the user clicked any button they'd have
their passworsd.txt file uploaded without ever knowing it.
?
CMIIW, but that's only true if the input's type is file, and the form's
ENCTYPE attribute is "multipart/form-data".
You need to response.write the variable's value into the html:
<input type="hidden" value="<%=nTotal%>">
Bob Barrows
--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.