Help Needed On Custom Resource-Provider Model in ASP.Net 2.0

Last post 07-18-2007 3:09 PM by rstrahl. 1 replies.

Sort Posts:

  • Yes [Yes] Help Needed On Custom Resource-Provider Model in ASP.Net 2.0

    07-16-2007, 8:47 AM
    • Member
      point Member
    • ssirfan29
    • Member since 07-16-2007, 12:35 PM
    • Posts 1

    I am new to ASP.Net 2.0, as per my requirements i have to use resources from hybrid sources(Some from database and some from resource file) i got some article in MSDN http://msdn2.microsoft.com/en-us/library/aa905797(d=printer).aspx#exaspnet20rpm_topic4 but it is not cleare that how to use both.

    My requirement is i have one Lable with id "lblMonth" and one DropDownListBox with id "ddlMonth", lable should take value "Select month" in English and French from resource file and ddlMonth should take values "January" to "December" in English and French from database

    Please if any one having solution for this then send it to me.It would be more helpfull if you send any code sample.

    my mail id is ssirfan29@oneindia.in

     

    thanx

    Irfan

  • Re: Help Needed On Custom Resource-Provider Model in ASP.Net 2.0

    07-18-2007, 3:09 PM
    • Participant
      1,431 point Participant
    • rstrahl
    • Member since 08-20-2003, 9:08 AM
    • Paia, Hawaii
    • Posts 277
    • TrustedFriends-MVPs

    That will be very difficult to do. ASP.NET uses a resource provider and that resource provider is used for all resource access through ASP.NET's resource access mechanism.

    Basically you can only run one type of resource through the provider. What you could do is set your database provider as the ASP.NET provider and then use an explicit ResourceManager for the Resx resources but this will be horribly confusing.

    What's going on that you need both? This seems like serious architecture problem...

    +++ Rick ---

    Rick Strahl
    West Wind Technologies
    Making waves on the Web
    www.west-wind.com/weblog
Page 1 of 1 (2 items)