Ask a Question related to ASP.NET General, Design and Development.
-
George #1
maintain the state of a hidden html control.
Hi,
I have a usercontrol which handles the menu functions which is
included in the main form.My requirement is to pass a variable to the
server and maintain its state when I click an item in the menu.
I have a hidden htmlcontrol(runat="server") and i set a value to the
control thru a javascript.
Then submitted the form using "document.forms('frmMain').submit();".
I am not able to get the value of hiddenhtml control in the server.Is
there any way to get around this?
thanks
anthru
George Guest
-
Hidden Couner HTML Code
I need the HTML code to make a hidden counter. I had one on my old web site, but the code I have does not work on my new site. I've tried... -
view source problem with hidden control using IE
I have a page that has several controls on it and the controls are shown or hidden during postback. I show and hide them using the visible... -
ASP.NET 2 Treeview does not maintain state
I am new to ASP.NET so please bear with me.... I have a treeview in which the nodes are populated from a database. When I click on a node, some... -
Hidden HTML elements not posting
New install of 4.3.3 and apache 1.3.27 as the web server. The install went fine, no major hickups or anything like that. But now, I'm finding... -
Ignore exception in Application_Error event but maintain state
Hi, I would like to ignore a certain exceptions in Application_Error event in Global.asax.cs file and still have the page's state be maintained. ... -
Mike S #2
Re: maintain the state of a hidden html control.
Check out this article:
Maintain State With Dynamic Controls
[url]http://www.ftponline.com/vsm/2003_04/magazine/columns/aspnet/default.asp[/url]
It won't give you the exact answer, but it will help you (page 3) understand
what is going on with your hidden field.
"George" <anthru77@yahoo.com> wrote in message
news:da9dd0d7.0307201318.10a33650@posting.google.c om...> Hi,
> I have a usercontrol which handles the menu functions which is
> included in the main form.My requirement is to pass a variable to the
> server and maintain its state when I click an item in the menu.
> I have a hidden htmlcontrol(runat="server") and i set a value to the
> control thru a javascript.
> Then submitted the form using "document.forms('frmMain').submit();".
> I am not able to get the value of hiddenhtml control in the server.Is
> there any way to get around this?
>
> thanks
> anthru
Mike S Guest
-
Saravana #3
Re: maintain the state of a hidden html control.
You can get the value of the hidden field in the server side using
request.params("<name of the hidden field>") or using request.forms("<name
of the hidden field>")
--
Saravana
Microsoft India Community Star,
MCAD,SE,SD,DBA.
"George" <anthru77@yahoo.com> wrote in message
news:da9dd0d7.0307201318.10a33650@posting.google.c om...> Hi,
> I have a usercontrol which handles the menu functions which is
> included in the main form.My requirement is to pass a variable to the
> server and maintain its state when I click an item in the menu.
> I have a hidden htmlcontrol(runat="server") and i set a value to the
> control thru a javascript.
> Then submitted the form using "document.forms('frmMain').submit();".
> I am not able to get the value of hiddenhtml control in the server.Is
> there any way to get around this?
>
> thanks
> anthru
Saravana Guest



Reply With Quote

