Results 1 to 3 of 3

Thread: hidden object with web control

  1. #1

    Thread Starter
    Registered User
    Join Date
    Jul 2002
    Posts
    80

    hidden object with web control

    Is there a web control that I can use that acts like a <Input type=hidden...>? I thought about using a label with it's text the same color as the background. Is there a better way?

    James

  2. #2

    Thread Starter
    Registered User
    Join Date
    Jul 2002
    Posts
    80

    Smile

    Forget message previous post. I did not know that the server would be able to process the values stored in a web control that has visible=false. I tried it and it works.

    James

  3. #3
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497
    To answer your original question anyway, you can set that hidden input to runat="server" and then use it at the server. Make sure it has an ID (It's useless without it) and then declare the control on your code page AS HTMLCONTROL.
    Need to re-register ASP.NET?
    C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i

    (Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width