473,394 Members | 2,020 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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
Nov 17 '05 #1
2 3146
Check out this article:
Maintain State With Dynamic Controls
http://www.ftponline.com/vsm/2003_04...et/default.asp

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" <an******@yahoo.com> wrote in message
news:da**************************@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

Nov 17 '05 #2
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" <an******@yahoo.com> wrote in message
news:da**************************@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

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: McGeeky | last post by:
Is there a way to get a user control to remember its state across pages? I have a standard page layout I use with a header and footer as user controls. Each page uses the same layout by means of...
2
by: Varangian | last post by:
Hi there again... is there a way to maintain the ViewState of WebControls when using AJAX or Callbacks ? Every time I refresh a page or use a postback from a control it would loose the...
1
by: zwieback89 | last post by:
Hi, I have a org tree with hierarchical display of employees built using classic asp and vbscript. I also have list of radio buttons for report names. I have 1 select box with dates in it....
0
by: msch-prv | last post by:
How to maintain the display state of a <divelement? Is there a simple way to maintain the display state of a <div> element? On my page, a div block can be hidden/shown by js function...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.