473,785 Members | 2,576 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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(run at="server") and i set a value to the
control thru a javascript.
Then submitted the form using "document.forms ('frmMain').sub mit();".
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 3164
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.goo gle.com...
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(run at="server") and i set a value to the
control thru a javascript.
Then submitted the form using "document.forms ('frmMain').sub mit();".
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.goo gle.com...
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(run at="server") and i set a value to the
control thru a javascript.
Then submitted the form using "document.forms ('frmMain').sub mit();".
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
5316
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 copy paste (I hear this will improve in ASP.Net 2 via master pages). When I navigate from one page to the next the header and footer user controls lose their state because they are effectively different instances of the user control. Is there...
2
2222
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 components contents! how can I resolve this problem?
1
7732
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. Then I click on the submit button to view the reports in Crystal. But
0
1288
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 showhide(). I would like to maintain the block's display state when the page is posted back. I'm having difficulties to retrieve the div style attributes from the viewstate: Me.divProdCat.Style.Item("display") always returns the same attribute.
0
10356
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10161
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10098
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9958
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8986
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5523
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3662
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2890
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.