Recently, we had a requirement to open a dialog page from list page and when user closes the dialog, we had to redirect our page to some other page. I know it can be done very easily by handling the close dialog event handler. However, we are talking about list page here. Where we don't have option to write c# code. This is where the web development skills comes into play and can help you achieve some fast results where you don't have much time to modify sharepoint web parts etc.
protected void Page_Load(object sender, EventArgs e)
String clientScriptName = "CloseWindow";
Type clientScriptType = this.GetType();
ClientScriptManager cs = Page.ClientScript;
AxUrlMenuItem shoppingCartPageMenuItem = new AxUrlMenuItem("EPCSSSalesBasket");
String shoppingCartUrl = shoppingCartPageMenuItem.Url.OriginalString;
String buildUrl = String.Empty;
linkOneURL = this.dsCustTable.GetDataSet().DataSetRun.AxaptaObjectAdapter.Call("BuildLinkOneURL").ToString();
this.LinkOneFrame.Attributes.Add("src", linkOneURL); // I am loading some third party page here under IFrame.
if (!cs.IsStartupScriptRegistered(clientScriptType, clientScriptName))
buildUrl = "window.frameElement.navigateParent('" + shoppingCartUrl + "');"; // This is the URL i want to redirect.