Hi,
I really do not understand what you are trying to do, but anyway this is
what you can do.
You can declare a "hidden" control in several ways, if you are going to use
it only in the server side then any ASP.NET control with the Visible
property to false will not show in the page and it will accesible in the
server side.
if you are planning in using it in the client as well then you can use the
HtmlInputHidden control in the same way that you use other control.
Now a tip that I do not why is not more know, you can declare ANY control in
the HTML as accessable from the server side, all you have to do is put in
the tag runat="server" and then in the page you can declare that control as
of type HtmlGenericControl . One example, let's say that you want to set the
page's title dinamically, this is what you do:
in the HTML page instead of:
<title>listrecords</title>
you use:
<title runat="server" id="pagetag">listrecords</title>
then in the code behind you declare the control as:
protected System.Web.UI.HtmlControls.HtmlGenericControl pagetag;
and set it like :
pagetag.InnerText = "Set from code";
Hope this help,
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Kjell Arne" <sa****@atc.no_yiha|spam> wrote in message
news:3f********@news.broadpark.no...
Hi,
How do one add parameters to a URL from a UserControl?
My problem is that I want to set a unique value to the webpage when the
page loads. This value I will use as a identifier for that session
(user). I'm certain it's a simple solution for this. But I have not been
able to locate it yet.
Usually in the old days, I would just generate input hidden tags in the
form tag to hold this data...
I would appreciate greatly for any pointers on this issue.
- Kjell Arne