auto refresh dropdownlist from a iframe without postback

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jfrangamo
    New Member
    • Mar 2014
    • 1

    #1

    auto refresh dropdownlist from a iframe without postback

    i have a procedure to fill the dropdownlist ddlogo from the server, them i have a iframe with a page to upload a file and when click in button to load the image i want to refresh the dropdownlist but this dropdownlist is in another panel and not want to reload the page


    Dropdownlist in Admin.aspx

    Code:
    <asp:DropDownList ID="ddLogos" DataTextField="FileDescription" DataValueField="FilePath" runat="server" Width="300"></asp:DropDownList></td>

    procedure to fill dropdownlist in server

    Code:
    DataTable dtLogos = Kicktag.GetDataTableFromProc("POR.usp_GetFiles", Params, User.Identity.Name, "Analytics", 2, "DEV");
            ddLogos.DataSource = dtLogos;
            ddLogos.DataBind();
            ddLogos.Items.Insert(0, new ListItem("--Select Logo--", "0"));
    
            String LogoPath = dtProjectInfo.Rows[0]["ProjectLogoPath"].ToString();
            if (LogoPath != "")
            {
                ddLogos.SelectedIndex = ddLogos.Items.IndexOf(ddLogos.Items.FindByValue(LogoPath));
            }
    when i click in this button, that is in Upload.aspx

    i want to call procedure to fill dropdownlist in Admin.aspx

    <asp:Button ID="btnUpload" OnClick="btnUpl oadLogo_Click" runat="server" Text="Upload" />


    Notice: Dropdownlist is in Admin.aspx and button to upload is in Uploadlogo.aspx and this two fomrs in in a masterpage whit UpdatePanels, to show Uploadlogo i have a iframe
    Last edited by Rabbit; Mar 30 '14, 06:14 AM. Reason: Please use [code] and [/code] tags when posting code or formatted data.
Working...