I had this problem and it stemmed from me not declaring the hidden field in
the code behind. So the server did it for me, changing the variable name.
Dave Debreceni
Associate Developer
david.debreceni@r...
xxx-xxx-xxxx x1086
-----Original Message-----
From: Robert Sindall [mailto:rsindall@z...]
Sent: Thursday, October 03, 2002 10:34 AM
To: ASPX_Professional
Subject: [aspx_professional] Re: Problem with HIDDEN field name!!!
If i remove the runat=server, i get the result required!
But i need to be able to set the value of the field.
-----Original Message-----
From: Imar Spaanjaars [mailto:Imar@S...]
Sent: 03 October 2002 15:18
To: ASPX_Professional
Subject: [aspx_professional] Re: Problem with HIDDEN field name!!!
Is your hidden field hosted inside another control? If so, you are going to
have problems, as the ASP.NET runtime will add the ID attributes to make
every control within the application namespace unique.
Either try to move it outside a parent control, or remove the runat="server"
attribute.
Cheers,
Imar
At 03:02 PM 10/3/2002 +0100, you wrote:
>Hi
>
>I've created a hidden input field.
>
>the code:
>
><input type="hidden" id="total" name="total" runat="server">
>
>but once it gets to the browser it looks like this
>
><input name="_ctl1:total" id="_ctl1_total" type="hidden" value="200" />
>
>this is of no use, when the external system I post this data to is
>looking for 'total'
>
>Robert Sindall
>
>Senior Developer
>_______________________________
>
>zethics
>our technology is your business
>
>www.zethics.com
>
>e: rsindall@z...
>v: +xx xxxx xxxxxx
>
>____________________________________________________________
>
>This email and any files transmitted with it are confidential and
>intended solely for the use of the individual or entity to which they
>are addressed. If you have received this email in error please notify
>the system manager. Please note that any views or opinions presented in
>this email are solely those of the author and do not necessarily
>represent those of the company. Finally, the recipient should check
>this email and any attachments for the presence of viruses. The
>company accepts no liability for any damage caused by any
>virus transmitted by this email.
>
>
>---
>
>ASP.NET 1.0 Namespace Reference with C#
>http://www.wrox.com/acon11.asp?ISBN=1861007442
>
>ASP.NET 1.0 Namespace Reference with VB.NET
>http://www.wrox.com/acon11.asp?ISBN=1861007450
>
>These books are a complete reference to the ASP.NET namespaces for
>developers who are already familiar with using ASP.NET. There is no
>trivial introductory material or useless .NET hype and the presentation
>of the namespaces, in an easy-to use alphabetical order ensures a
>user-friendly reference format. We provide in-depth coverage of all the
>major ASP.NET classes, giving you those real-world tips that the
>documentation doesn't offer, and demonstrating complex techniques with
>simple examples.
>
>---
>---
>Change your mail options at http://p2p.wrox.com/manager.asp or to
>unsubscribe send a blank email to
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces for
developers who are already familiar with using ASP.NET. There is no trivial
introductory material or useless .NET hype and the presentation of the
namespaces, in an easy-to use alphabetical order ensures a user-friendly
reference format. We provide in-depth coverage of all the major ASP.NET
classes, giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple examples.
---
---
Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to
---
ASP.NET 1.0 Namespace Reference with C#
http://www.wrox.com/acon11.asp?ISBN=1861007442
ASP.NET 1.0 Namespace Reference with VB.NET
http://www.wrox.com/acon11.asp?ISBN=1861007450
These books are a complete reference to the ASP.NET namespaces
for developers who are already familiar with using ASP.NET.
There is no trivial introductory material or useless .NET
hype and the presentation of the namespaces, in an easy-to use
alphabetical order ensures a user-friendly reference format.
We provide in-depth coverage of all the major ASP.NET classes,
giving you those real-world tips that the documentation doesn't
offer, and demonstrating complex techniques with simple
examples.
---