Bing appsetting to Panel visibility

Discussion in 'ASP .Net' started by Gaspar, Aug 22, 2008.

  1. Gaspar

    Gaspar Guest

    I'm binding an app setting to a Panel visibility. I use:
    <add key="Panel1_Visible" value="true"/>

    and then ....

    <asp:panel ID="Panel3" runat="server" onload="Panel1_Load"
    Visible="<%$ AppSettings:panel1_Visible %>">
    </asp:panel>


    Should I replace "true" with System.Boolean.TrueString?
    Why this doesn't work: <add key="Panel1_Visible"
    value="System.Boolean.TrueString"/>?

    Thanks!
     
    Gaspar, Aug 22, 2008
    #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. Maziar Aflatoun

    Web.config reading the appSetting

    Maziar Aflatoun, Nov 14, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    2,313
    George Durzi
    Nov 14, 2003
  2. Amy

    appSetting printing on page

    Amy, Oct 7, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    376
  3. =?Utf-8?B?TWFubnkgQ2hvaGFu?=

    Control panel visibility inside datagrid

    =?Utf-8?B?TWFubnkgQ2hvaGFu?=, Apr 9, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    500
    Eliyahu Goldin
    Apr 10, 2005
  4. softwareakash
    Replies:
    1
    Views:
    3,610
    Winista
    Jul 27, 2006
  5. Thomas

    appsetting read write

    Thomas, Dec 17, 2005, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    128
    Thomas
    Dec 17, 2005
Loading...

Share This Page