[Mono-list] Hidden variables

José Luis García jlgarcia@montytronic.com
Tue, 8 Jul 2003 08:05:29 +0200


hi Jorge and list

I'm a beginner with Mono but working in MS is really sample, just try this:

string myHiddenPostedValue = Request.Form["myHidden"].ToString();

Another aproach:

string myHiddenPostedValue = "";

try
{
    string myHiddenPostedValue = Request.Form["myHidden"].ToString();
}
// this catch do nothing
catch(Exception ex) {}

or this:

if (Request.Form["myHidden"] != null)
{
    string myHiddenPostedValue = Request.Form["myHidden"].ToString();
}

Jose Luis Garcia(Josus)

----- Original Message ----- 
From: "Jorge C" <jorge@uajms.edu.bo>
To: <mono-list@lists.ximian.com>
Sent: Tuesday, July 08, 2003 12:28 AM
Subject: [Mono-list] Hidden variables


> Hi you guys:
> 
> How I obtain the hidden variables that they are sending to me from
> another page?
> 
> For example, in HTML I send of this form:
> 
> -----------------------------------------------------------
> <form action="obtain.aspx" method="post">
> <input type=hidden id="myhidden" value="anything">
> -----------------------------------------------------------
> 
> How I obtain this variable (myhidden) in ASPX page?
> 
> Thank you very much by its attention and help.
> 
> ------------------------
> --      Jorge C.      --
> -- jorge@uajms.edu.bo --
> ------------------------
> 
> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>