2
I have the following button that basically inserts data from a web form, but that button is on a pop-up. What I intend is that when you run the button, after entering the data close the window of the pop-up.
How to 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);
}
}
}
If your problem has been solved, mark your answer as correct.
– Fernando Leal