dee wrote:
How can i maniputae a regular <INPUT> form within .NET code?
Thanks.
"Craig Deelsnyder" <cdeelsny@NO_SPAM_4_MEyahoo.com> wrote in message
news:OM**************@TK2MSFTNGP14.phx.gbl...
dee wrote:
Hi
I'm trying to send a value calcutated in a WebForm to a target WebForm.
Staying away form QueryString() I make a hidden asp:TextBox and put
the value in there a ala old asp.
The target WebForm only can retrieve this value when the TextBox control
is Visible.
But this method worked in asp.
Appreciate any ideas. Thanks.
Dee
Setting Visible in essence removes it from being spit out in the HTML sent
to the user.
http://msdn.microsoft.com/library/de...sibleTopic.asp
Use a hidden field instead:
<INPUT type=hidden id=Hidden1 name=Hidden1 runat="server">
--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET
By adding an id and runat="server" attribute to just about any HTML tag,
you created an HTML server control. Not as powerful as the normal
controls, but get the job done. Check out the
System.Web.UI.HtmlControls.HtmlInputHidden class for more info.
Note ural's solution works as well by using CSS to hide it...
--
Craig Deelsnyder
Microsoft MVP - ASP/ASP.NET