foreach (ListItem Item in listbox1.Items) { if (Item.Selected == true) { ScriptManager.RegisterStartupScript(this, GetType(), "progress", @"window.onload = AddMediaGroupToExisitingSuffix();", true); //do transfer } }
function AddMediaGroupToExisitingSuffix() { if (confirm("'do you want to transfer data?'") == true) return true; else return false; }
pre
Quote:The script block that is rendered by the RegisterStartupScript method executes when the page finishes loading but before the page's client onload event is raised. Startup script blocks are located at the bottom of the rendered ASP.NET page just before the </form> tag.
The script block that is rendered by the RegisterStartupScript method executes when the page finishes loading but before the page's client onload event is raised. Startup script blocks are located at the bottom of the rendered ASP.NET page just before the </form> tag.
Ajax Modal Popups
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)