Re: Working with hidden input controls and Visual Studio .Net 2003

Discussion in 'ASP .Net' started by Brock Allen, Apr 12, 2005.

  1. Brock Allen

    Brock Allen Guest

    Yes, that's one way. The other is to use Page.RegisterHiddenField.

    -Brock
    DevelopMentor
    http://staff.develop.com/ballen



    > What is the best/recommended way to add a hidden input control to a
    > webform within Visual Studio? I'm using vb.net and code behind
    > (probably implied with Visual Studio).
    >
    > What I did was to add the following on the .aspx page:
    >
    > <input id="CurrentStep" type="hidden" value="" runat="server"
    > NAME="CurrentStep">
    >
    > And then I added this in the Web Form Designer Generated Code Section:
    >
    > Protected WithEvents CurrentStep As
    > System.Web.UI.HtmlControls.HtmlInputHidden
    >
    > Am I missing something? Is there a better way to add that type of
    > control?
    >
    > Thanks!
    >
     
    Brock Allen, Apr 12, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bootstrap Bill

    Visual Studio .net 2003 and Frotpage 2003

    Bootstrap Bill, Sep 12, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    609
    Bootstrap Bill
    Sep 17, 2004
  2. wh
    Replies:
    2
    Views:
    575
    Cowboy \(Gregory A. Beamer\)
    Jan 16, 2004
  3. rockdale
    Replies:
    1
    Views:
    672
    Juan T. Llibre
    Aug 23, 2006
  4. xman
    Replies:
    0
    Views:
    550
  5. xman
    Replies:
    1
    Views:
    645
    Victor Bazarov
    Aug 17, 2005
Loading...

Share This Page