473,387 Members | 1,700 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,387 software developers and data experts.

webcomponent for html hidden input?

me
I want to do something like this:

<input type="hidden" name="x" value="<%=Request.Form.Get("y")%>">

...but visual studio wont open design mode with such
inlined code in the apsx page. How do i programmebly
set the value of a hidden form field in asp.net?
I cant find any webcomponent in VS that renders into
such a html element.

The page is part of a wizard (a "multistep form"), where
control is transferred from one aspx to another using
Server.Transfer(). Along the way I need to store some
inputs that I pick up from the client. I dont want to
use Session variables that last for an entire client
session and I dont want to use database either.
Nov 18 '05 #1
2 1214
You should use the System.Web.UI.HtmlControls.HtmlInputHidden class:

http://msdn.microsoft.com/library/en...classtopic.asp

Hope this helps
Martin
"me" <wt*****@forum.dk> wrote in message
news:6f**************************@posting.google.c om...
I want to do something like this:

<input type="hidden" name="x" value="<%=Request.Form.Get("y")%>">

..but visual studio wont open design mode with such
inlined code in the apsx page. How do i programmebly
set the value of a hidden form field in asp.net?
I cant find any webcomponent in VS that renders into
such a html element.

The page is part of a wizard (a "multistep form"), where
control is transferred from one aspx to another using
Server.Transfer(). Along the way I need to store some
inputs that I pick up from the client. I dont want to
use Session variables that last for an entire client
session and I dont want to use database either.

Nov 18 '05 #2
try Page.RegisterHiddenField() from the code behind

-- bruce (sqlwork.com)
"me" <wt*****@forum.dk> wrote in message
news:6f**************************@posting.google.c om...
I want to do something like this:

<input type="hidden" name="x" value="<%=Request.Form.Get("y")%>">

..but visual studio wont open design mode with such
inlined code in the apsx page. How do i programmebly
set the value of a hidden form field in asp.net?
I cant find any webcomponent in VS that renders into
such a html element.

The page is part of a wizard (a "multistep form"), where
control is transferred from one aspx to another using
Server.Transfer(). Along the way I need to store some
inputs that I pick up from the client. I dont want to
use Session variables that last for an entire client
session and I dont want to use database either.

Nov 18 '05 #3

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

Similar topics

1
by: Les Juby | last post by:
A year or two back I needed a search script to scan thru HTML files on a client site. Usual sorta thing. A quick search turned up a neat script that provided great search results. It was fast,...
4
by: dmiller23462 | last post by:
I'm trying to create a submission page for users to request PC/LAN Access....If they select "Yes" in the field asking about if they need Non Standard Software, I want several other HTML fields to...
13
by: TinyTim | last post by:
I'm a newbie at ASP & HTML. It seems that when you use server side code and you're going to return a customized HTML form with several fields and labels, you have to do an extensive amount of...
4
by: James Bond 007 | last post by:
I am a novice to Javascript (can do simple text-based pop-ups, but not familiar with variable manipulation). I would like to have a Javascript that gives me the start time (I don't care about...
7
by: | last post by:
Hello, I would like to do the following from a asp.net button click: <form method="POST" action="https://www.1234.com/trans_center/gateway/direct.cgi"> <input type="hidden" name="Merchant"...
18
by: Diogenes | last post by:
Hi All; I, like others, have been frustrated with designing forms that look and flow the same in both IE and Firefox. They simply did not scale the same. I have discovered, to my chagrin,...
3
by: zac540 | last post by:
Hey everyone! First of all I'd like to say that I did my best to look for any other relevant posts. The best I found was this interesting thread.. http://bytes.com/forum/thread594982.html If...
1
by: printline | last post by:
Hello All I'm quite new to xml vs. PHP, so i hope someone can help with an issue i have been struggeling with. I have an html form, that when submitted, it should create an xml file, and save...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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: 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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

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.