Re: How to pass an ID in hidden variable.

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: William Ryan eMVP (dotnetguru_at_comcast.nospam.net)
Date: 04/02/04


Date: Fri, 2 Apr 2004 14:50:52 -0500

I'd try to avoid that if at all possible, spoofing hidden fields is a known
hack and I was at DevDays ASP.NET Security discussion and they were
recommended against using Hidden fields for input. I think Session State
should get you what you need and session variables are really easy to use.
Are you familiar with them? If not, I'd really suggest checking them out.

Cheers,

Bill
"Frank Rizzo" <none@none.com> wrote in message
news:e62FrjOGEHA.2612@TK2MSFTNGP09.phx.gbl...
> Ok, this is probably so simple...
> Anyway, I'd like to pass a value in the hidden variable. I have code
> like this:
>
> <form...>
> <input type="Hidden" name="zzz" value="1">
> ...
> </form>
>
> I want to replace the value with another when the page gets generated in
> the code behind file. How do I do such a thing?
>
> Regards



Relevant Pages

  • Re: Redirect to page, based on answer
    ... Dim yespage ... Dim nopage ... assign fields you want to retrieve later to cookoies or session variables. ... session variables will be used to populate hidden fields ...
    (microsoft.public.frontpage.programming)
  • hidden fields and session variables in asp
    ... Cannot get the session variables to save through hidden fields in straight ... asp (not dot net). ... Are there good tutorials or examples of how hidden fields ...
    (microsoft.public.dotnet.general)
  • RE: Timeout problem
    ... We can't seem to save the session variables in the hidden fields? ... "Jon Gonzales" wrote: ... > Hidden Fields OR ViewState() ...
    (microsoft.public.dotnet.general)
  • Re: Alternate for passing parameters for dbase query?
    ... You are talking about maintaing state, ... would be to use session variables. ... Right now I am passing ... > How can I pass parameters between pages, without using hidden fields ...
    (microsoft.public.inetserver.asp.db)
  • manipulating query strings
    ... Is there a way to send values to hidden fields, ... I know I can pass variables in URL to Server side script variables if METHOD ... Astaro Security Linux -- firewall with Spam/Virus Protection ...
    (Pen-Test)