Код: Выделить всё
protected void ButtonSubmitQuestionClick(object sender, EventArgs e)
{
-- A whole bunch of code that does stuff --
//close window
ScriptManager.RegisterStartupScript(Page, Page.GetType(), "alert", "alert('Your question has been submitted!');window.close();", true);
Response.Redirect("~/QA_QuestionIntake.aspx");
}
Подробнее здесь: https://stackoverflow.com/questions/792 ... fter-alert
Мобильная версия