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
procedure to fill dropdownlist in server
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
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));
}
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