Not sure what you mean by "hidding". You can render this value as an hidden
field or by rendering dynamically created JavaScript so that this is usable
client side (in both cases "view source" will reveal the value).
What do you do with this value ? If you don't need this client side, just
retrieve this server side at will rather than passing this value to the
client just to postback the value to the server...
---
Patrice
> Not sure what you mean by "hidding". You can render this value as an
> hidden field or by rendering dynamically created JavaScript so that this
[quoted text clipped - 3 lines]
> retrieve this server side at will rather than passing this value to the
> client just to postback the value to the server...
I am trying to do this to get access from Javascript (clientSide) to my
variables on my parent page.
The problem is that if I do something like:
<asp:Panel ID="EmailPanel" visible=false runat="server">
<asp:TextBox ID=Email runat="server"/>
</asp:Panel>
or
<asp:Label ID="EmailSave" Visible=false/>
In either case, the variables do not seem to be on the page so JavaScript
can't see them.
I need this value to put onto the page that I am opening up.
Thanks,
Tom
> ---
> Patrice
[quoted text clipped - 23 lines]
>>
>> Tom
Patrice - 10 Sep 2007 17:26 GMT
Expected. When you set visible to false server side it is not rendered at
all in the resulting HTML code (unlike using display:none for example).
http://msdn2.microsoft.com/en-us/library/system.web.ui.clientscriptmanager.regis
terhiddenfield.aspx
allows to easily render an hidden field (and as said earlier, note that view
source is enoguh to show its content).
---
Patrice
>> Not sure what you mean by "hidding". You can render this value as an
>> hidden field or by rendering dynamically created JavaScript so that this
[quoted text clipped - 54 lines]
>>>
>>> Tom