How can I show resource data at design time ?

Last post 07-02-2009 3:46 PM by Mikhail Arkhipov (MSFT). 3 replies.

Sort Posts:

  • How can I show resource data at design time ?

    07-01-2009, 4:17 PM
    • Member
      698 point Member
    • Yovav
    • Member since 02-19-2003, 7:35 PM
    • Las Vegas
    • Posts 171

    I have a custom static class for displaying resources from database,

    These resources are only string type,

    Right now - when I show a ASPX page in design - all the strings are missing (because they are being initialized at runtime...)

    Is there a way that I can make it support Visual Studio - so the string data will show on design ?

    Thanks in advance.

    10X N C U L8R
    Best Regards
    YovavG@GMail.com
  • Re: How can I show resource data at design time ?

    07-02-2009, 1:07 PM

    It is not possible to display dynamic data since designer does not execute runtime code. One possiblity is to make a custom control that will display data at design time (designer does execute control design time code.

    Thanks

    ------------------------------------------------------------

    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: How can I show resource data at design time ?

    07-02-2009, 1:36 PM
    • Member
      698 point Member
    • Yovav
    • Member since 02-19-2003, 7:35 PM
    • Las Vegas
    • Posts 171

     I thought so...

    How about showing the same static text for all these resources ?

    For example "Language Resource"

    How can I make my class to appear as a recognizable design time contol with this text ?

    10X N C U L8R
    Best Regards
    YovavG@GMail.com
  • Re: How can I show resource data at design time ?

    07-02-2009, 3:46 PM
    Thanks

    ------------------------------------------------------------

    This posting is provided "AS IS" with no warranties, and confers no rights.
Page 1 of 1 (4 items)