[CLOSED] set Proxy URL of Store at runtime.

  1. #1

    [CLOSED] set Proxy URL of Store at runtime.

    I have following Store with proxy, I need to set the URL of the proxy using code behind where I set this URL value at web.config key, how i can perform this:

     <ext:Store ID="ProspectingStore" runat="server">
            <Proxy>
                <ext:HttpProxy DisableCaching="true" Json="true" Method="Post" Url="http://localhost:65000/UtilitiesWebService.asmx/strGetDelearProspecting">
                </ext:HttpProxy>
            </Proxy>
            <BaseParams>
                <ext:Parameter Name="delarLocationID" Value="1">
                </ext:Parameter>
            </BaseParams>
            <Reader>
                <ext:JsonReader Root="d.Data" TotalProperty="d.TotalRecords">
                    <Fields>
                        <ext:RecordField Name="PublishDate" Type="Date" />
                        <ext:RecordField Name="ProfileImage" />
                        <ext:RecordField Name="AuthorName" />
                        <ext:RecordField Name="Content" />
                        <ext:RecordField Name="AuthorScreenName" />
                        <ext:RecordField Name="ProspectID" />
                        <ext:RecordField Name="FacebookDateTimeStyle" />
                    </Fields>
                </ext:JsonReader>
            </Reader>
            <Listeners>
                <LoadException Handler="var e = e || {message: response.responseText}; alert('Load failed: ' + e.message);" />
            </Listeners>
        </ext:Store>
    also i wana get the property value inside my page and set it as a value for one of parameters i have , can I.
    Last edited by Daniil; Dec 23, 2010 at 2:49 PM. Reason: [CLOSED]
  2. #2
    Quote Originally Posted by farisqadadeh View Post
    I have following Store with proxy, I need to set the URL of the proxy using code behind where I set this URL value at web.config key, how i can perform this:
    Hi,

    Please use the following code:

    Example
    (ProspectingStore.Proxy.Proxy as HttpProxy).Url = "url";
    Quote Originally Posted by farisqadadeh View Post
    also i wana get the property value inside my page and set it as a value for one of parameters i have , can I.
    Not sure what you mean. Please provide more details.

Similar Threads

  1. [CLOSED] [Razor] Paging without Store Proxy
    By machinableed in forum 2.x Legacy Premium Help
    Replies: 8
    Last Post: Jun 04, 2012, 2:52 AM
  2. [CLOSED] store.proxy.ro question
    By deejayns in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Jan 04, 2012, 8:17 PM
  3. Multicombo store proxy
    By David Pelaez in forum 1.x Help
    Replies: 1
    Last Post: Feb 08, 2011, 1:27 PM
  4. [CLOSED] [1.0] reset PagingToolBar store with proxy
    By PoloTheMonk in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Apr 02, 2010, 7:24 AM
  5. [CLOSED] Using a update proxy on a store with params?
    By Riset in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Dec 02, 2009, 12:21 PM

Posting Permissions