How to Get Resource value which are referred in code behind file using IResourceProvider

Hi Everyone,
Currently I'm working on moving the Resource file from "App_GlobalResources" to Database by using IResourceProvider. I created a CustomResourceProvider project using ResourceProviderFactory and able to get the resource values from DB which
are used in aspx page.
But i'm not able to get the values which are referring from code behind file.
Ex: Label1.Text = Resources.Common.Car; // This is still coming from resx file.
Can any one please let me know how to get the value from DB instead of resx file which are referred in cs file.
Appreciate your help. 
The below code uses the ResourceProviderFactory which calls this method and gets it from DB. Please let me know if you need any more info.
public class DBResourceProviderFactory : ResourceProviderFactory
        public override IResourceProvider CreateGlobalResourceProvider(string classKey)
            return new DBResourceProvider(classKey);
        public override IResourceProvider CreateLocalResourceProvider(string virtualPath)
             // we should always get a path from the runtime
            string classKey = virtualPath;
            if (!string.IsNullOrEmpty(virtualPath))
                virtualPath = virtualPath.Remove(0, 1);
                classKey = virtualPath.Remove(0, virtualPath.IndexOf('/') + 1);
            return new DBResourceProvider(classKey);
Regards, Ravi Neelam.

Hi Ravi Neelam.
>>Currently I'm working on moving the Resource file from "App_GlobalResources" to Database by using IResourceProvider.
Based on this message, your issue related to web application, questions related to Asp.Net should be posted in
Asp.Net forum.
Please reopen a new thread in that forum. You will get more efficient response.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
HERE to participate the survey.

Similar Messages

  • How to get the Objects which are used in the webi Report.

    Hi Expert,
    I am trying to get the list of  WebI reports and Objects which are present in the report at  BO 4.0.
    I can able to get details  for only the list of reports and universes.
    Could  any one help me to get those details.
    Murali S

    With 4.0, there is no longer a way to do this using just the .NET SDK because the ReportEngine SDK no longer exists for .NET.  Instead, you'll have to look at using the RESTful Web Services SDK for Webi which runs in the Web Application Container Server on your report server (NOT on the web server!)
    RESTful web services are platform-independent and don't require the installation of any SDK files.  Everything is done through standard HTTP Get, Put, and Post commands and the results are returned in either XML or JSON format.  You don't mention which service pack of 4.0 you're on, but the RESTful web services have evolved over the course of the 4.0 service packs, so more recent is definitely better.
    You can find the documentation for this in the "Development Information" section at  There is also a "space" on SCN for this at and there are some links on this page for various resources and sample code.

  • How to get DATETIME value in a page?

    I have two pages.
    In page1, I have a table that contain MessageStyleText item(AuditTime) and the attribute data type is DATETIME .
    I want to pass AuditTime value from page1 to page2.
    I am passing the AuditTime value from page1 to page2 using Destination URI.
    The AuditTime value is 2008-11-11 12:45:31.0
    How to get the AuditTime in page2 so that I can get the exact value '2008-11-11 12:45:31.0' ?
    Please help.
    Thanks & Regards,

    I am passing the value using the following destination URI,
    In the database the AuditTime value is like '2008-11-11 12:45:31.0'
    Normally we are using pageContext.getParameter("auditTime"); to get the value which are passed in destination URI.
    Here if I'll use pageContext.getParameter("auditTime"); I am not getting the correct value.
    How to get the exact value?
    Thanks & Regards,

  • How to find out the values which are assigned in authority group

    Hi to all
    Please tell me where can I find out the values which are assigned in authority object according to roles.
    for ex :
             Changed    Customer: Account Authorization                              F_KNA1_BED
              Changed    Customer: Account Authorization                              T-DR50175601
                Activity                       01, 02, 03, 08                                                              ACTVT
                Authorization Group            5100                                                                        BRGRU
    F_KNA1_BED is the authority object , assigned to one user.
    He can access the authorization group 5100. I want to check that value in my program.
    How ?
    Where it is stored.
    Please help me....
    Anubhav Gupta

    Hi Anubhav,
    Please use this FM "SUSR_USER_AUTH_FOR_OBJ_GET" and pass the object name in it . You would get the values for that particular object.
    Nitin Sachdeva

  • How to display the contents of the database values which are retrived.

    how to display the contents of the database values which are retrived in servlets and i am able to display the contents in the servlets and if forward to jsp using requestdespatcher,the values are to be shown in jsp one below the other.please suggest me in these........the servlet code is as shown
                        RequestDispatcher rq=request.getRequestDispatcher("/results.jsp");
    in jsp iam using the getAttribute to retrieve the values as shown
    <% StringBuffer sb=(StringBuffer)request.getAttribute("result1"); %>
    <%= sb %>
    but getting the results in the stretch,i need to display the result one below the other.

    if you load it all into the buffer that is going to be very difficult. I would suggest loading it into some sort of collection. I like using an ArrayList.
    Then pass the arraylist.
    you will then on the jsp iterate through the arrayList using what every you want.. el, logic tags, scriplets.
    so something like
    ArrayList arrayList = new ArrayList();
    //or possibly an arrayList of String arrays
    //maybe using nested for loops.  Inner for loop adds result to string[] then //outer adds string[] to arrayList.
    //can be done any number of ways based on your expected result set.

  • How to compare 2 different database to get table name which are not present in second database

    How to compare 2 different database to get table name which are not present in second database

    Sorry cannot test it right now
    use db1
    select * from sys.tables t where not exists
    (select * from db2.sys.tables s where t.object_id=s.object_id)
    Best Regards,Uri Dimant SQL Server MVP,
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • HT201272 I am using Apple ipod 2nd gen with IOS 4.2.1 . No i recently updated my IOS and all my apps were deleted. Now when i download IBOOKS it needs IOS 5. How do i get the apps which are copatible with IOS 4.2.1 or IPOS 2nd GEN??

    I am using Apple ipod 2nd gen with IOS 4.2.1 . No i recently updated my IOS and all my apps were deleted. Now when i download IBOOKS it needs IOS 5. How do i get the apps which are copatible with IOS 4.2.1 or IPOS 2nd GEN??

    You should always have your apps on your computer.  If you have failed to keep a copy of the old app versions, then you cannot get them back at all.
    Many app makers no longer support the old ios and ipod models

  • How exclude multiple values which are not in sequence ( range )

    Hi Abapers,
    My Requiremnt is to exclude multiple values which are not in sequence  in selection screen.
    I want to restrict some values .
    please provide sample code.
    thanks & regards,
    Hari priya

    SELECT-OPTIONS : s_matnr FOR mara-matnr.
    s_matnr-sign = 'E'.  " E means Excluding.
    s_matnr-option = 'EQ'.
    s_matnr-low = '1000'.
    append s_matnr.
    s_matnr-sign = 'E'.
    s_matnr-option = 'EQ'.
    s_matnr-low = '1500'.
    append s_matnr.
    s_matnr-sign = 'E'.
    s_matnr-option = 'BT'.
    s_matnr-low = '2000'.
    s_matnr-high = '3000'.
    append s_matnr.
    SELECT * FROM MARA INTO TABLE itab WHERE mara IN s_matnr.
    the above s_matnr has values 1000,1500, 2000 - 3000.
    so the above code fetches all the values excluding 1000,1500 and between 2000 and 3000.
    Bala Krishna

  • How to get string value from xml in JSF??

    In JSF How to get string value from xml, .ini and properties file. I want to get string value from xml or text to JSF

    Just use the appropriate API's for that. There are enough API's out which can read/parse/write XML, ini and properties files. E.g. JAXP or DOM4J for xml files, INI4J for ini files and Sun's own java.util.Properties for propertiesfiles.
    JSF supports properties files as message bundle and resource bundle so that you can use them for error messages and/or localization.

  • How to get the values from popup window to mainwindow

    HI all,
       I want to get the details from popup window.
          i have three input fields and one search button in my main window. when i click search button it should display popup window.whenever i click on selected row of the popup window table ,values should be visible in my main window input fields.(normal tables)
       now i am able to display popup window with values.How to get the values from popup window now.
       I can anybody explain me clearly.

    Hi Kranthi,
    Every webdynpro component has a global controller called the component controller which is visible to all other controllers within the component.So whenever you want to share some data in between 2 different views you can just make it a point to use the component controller's context for the same. For your requirement (within your popups view context) you will have have to copy the component controllers context to your view. You then will have to (programmatically) fill this context with your desired data in this popup view. You can then be able to read this context from whichever view you want. I hope that this would have made it clear for you. Am also giving you an [example|http://****************/Tutorials/WebDynproABAP/Modalbox/page1.htm] which you can go through which would give you a perfect understanding of all this. In this example the user has an input field in the main view. The user enters a customer number & presses on a pushbutton. The corresponding sales orders are then displayed in a popup window for the user. The user can then select any sales order & press on a button in the popup. These values would then get copied to the table in the main view.

  • How to get selected value from selectOneRadio ???

    Hi...i want to how to get selected value from selectOneRadio and use it in another page and in backing bean.
    Note i have about 10 selectOneRadio group in one page i want to know value of each one of them.
    Plzzzzzzzz i need help

    You have a datatable in which each row is a question, correct?
    Also in each row you have 5 possible answers that are in a radio, correct?
    You need to put in your datatable model, a question, and a list of answers (5 in yor case) and the selected one.
    So you will have a get to the question, an SelectItem[] list to populate the radios and another get/set to the selected question.
    <h:selectOneRadio value="#{notas.selectedString}" id="rb">
    <f:selectItem itemValue="#{notas.valuesList}"/>
    Search the web for examples like yours.

  • How to get attribute value from standard page ?

    How to get attribute value from standard page ?
    String str = (String)vo.getCurrentRow().getAttrbute("RunId");
    But this value is returning a null value ....
    Can anyone help me to get this attribute value which is actually having a actual value .

    getCurrentRow() would always return null if no setCurrentRow() is used.
    Please check the page design and understand how many rows of VO are there. You can also use the following to get the row:

  • How to get selected values from selectManyCheckbox ?

    I am a SOA developer and using 'Auto generated adf form' of Human Task. I did some customization in the form. I need to show one dynamic list (contains multiple string values) on a form, from which user will select desired values. For this I have used <af:selectManyCheckbox> adf component.
    It has generated code as follows...
    <af:selectManyCheckbox value="#{bindings.Response.inputValue}"
                        <f:selectItems value="#{bindings.Response.items}" id="si9"/>
    I am able to show list on a form and can select multiple values also.
    Now, I want the multiple selected values back in my BPEL process. I need only those values which are selected by user.
    Currently I am getting complete list as it is back in BPEL process.
    Please help me out..!

    Unwinding ADF: How to retrieve Selected Items from selectManyCheckbox using ValueChnageListener

  • How to get Dynamic values from R/3 into dropdownlist of my WD appl

    Hi all,
    I have a requirement like, I have 2 dropdown boxes. The values should be populated from R/3, for this am using a BAPI. But how to get the values dynamically, plz help me or give give some PDF/blogs which are useful to my scenario. Thanks in advance.

    Hi ganesh,
    YOu have 2 drop down so you should create two action handler and similarly 2 bapi's , rfc's in backend .You should drop down by key feature of webdynpro on the second drop down explained below.
    Rewards Pts if helpful

  • How to get the values from profileFormHandler

    here i have problem with how to get the values after setting the values to that , how i have to call repository, what repository i've to call?

    When you are setting values, check the repository(getRepository()) from which mutable repository item is created. Go to that class .properties file and check the repository mapping.

Maybe you are looking for

  • HP Pavilion Dv6 7078CA Recovery without recovery disc

    Hello!! i have an Hp Pavilion Dv6 - 7078ca, and after just 6 months of use, the Hard Drive just died. because i live in Brazil, and brought the Computer back home, i couldnt use the warrant, since the warrant is for canada only. so i changed by my ow

  • IPhoto froze and now no images at all

    I was working between iPhoto and PSE6. I had taken an image from iPhoto into PSE6 to edit. Suddenly it froze the whole computer. The only thing I could do was hold the power button for a few seconds to shut the whole machine down. Now when I open iPh

  • Turn off SMB in Leopard

    Does anyone know how to turn off SMB/CIF in Leopard? In Tiger, it use to be a checkbox in Directory Utility. In Leopard, the only thing I can find is WINS setting under Network in System Preferences. Basically I don't want to see any of the Windows m

  • How can I eliminate strong wind noise with audition?

    Hi, I have some recorded tape of a wedding on a beach on  a very windy day with a fairly ordinary digital jvc video camera. I tried to use the equaliser but did not really achieve or improve much of anything. Would Audition allow me to do this? MM

  • Distribution in GOA.

    Hi Experts, I need to set the default value in distribute fields for GOA ( purchase organization and plant). Is there a BADI to make this? I was looking in the badi BBP_CTR_INIT_UP  parameter MODIFY_DIST_DATA, but this parameter is avaible only to cr