I have followed the below article in order to create some custom new/edit/view forms for a list
(http://ranaictiu-technicalblog.blogspot.in/2011/06/sharepoint-custom-addeditdisplay-form.html).
Now in my newform.aspx page I have a submit button. Once I click that button I need to redirect to another page.
Problem here is that while the redirecting the new page is opening in a popup window. How can I open it in the current window?
Script used is below:
private void PopupSendMail(string msg)
{
string js = "<script language='javascript'>
alert('" + msg + "');
function load_url(externallink){
window.open(externallink,target='_blank')}load_url('"+ mySiteWeb.Url +"');</script>";
ClientScript.RegisterClientScriptBlock(GetType(), "Register", js);
}