I have the following button that basically inserts data from a web form, but this button is in a pop-up child . What I intend is that when I run the button, after inserting the data close the pop-up window.
How do I solve this problem?
protected void Criar_Fornecedor_Click(object sender, EventArgs e)
{
if (Page.IsValid)
{
try
{
AddItemToListFornecedores(SPContext.Current.Web.CurrentUser);
string tempurl = currentsiteurl + "/Lists/EntidadesFornecedores/AllItems.aspx";
SPUtility.Redirect(tempurl, SPRedirectFlags.DoNotEndResponse, HttpContext.Current);
}
catch (Exception ex)
{
throw new SPException(ex.Message);
}
}
}