By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,162 Members | 1,061 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,162 IT Pros & Developers. It's quick & easy.

auto refresh dropdownlist from a iframe without postback

P: 1
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

Expand|Select|Wrap|Line Numbers
  1. <asp:DropDownList ID="ddLogos" DataTextField="FileDescription" DataValueField="FilePath" runat="server" Width="300"></asp:DropDownList></td>

procedure to fill dropdownlist in server

Expand|Select|Wrap|Line Numbers
  1. DataTable dtLogos = Kicktag.GetDataTableFromProc("POR.usp_GetFiles", Params, User.Identity.Name, "Analytics", 2, "DEV");
  2.         ddLogos.DataSource = dtLogos;
  3.         ddLogos.DataBind();
  4.         ddLogos.Items.Insert(0, new ListItem("--Select Logo--", "0"));
  6.         String LogoPath = dtProjectInfo.Rows[0]["ProjectLogoPath"].ToString();
  7.         if (LogoPath != "")
  8.         {
  9.             ddLogos.SelectedIndex = ddLogos.Items.IndexOf(ddLogos.Items.FindByValue(LogoPath));
  10.         }
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="btnUploadLogo_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
Mar 29 '14 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.