I have 2 pages: default.aspx (displays all students) and update.aspx.
The default.aspx displays all students using ListView and ObjectDataSource. The code below in default.aspx calls thickbox for update student's information
<a href='<%#"Update.aspx?studentId="+Eval("Id")+"&height=350&width=350&modal=true" %>' class="thickbox">update</a>
The update.aspx edits student's information in thickbox using ObjectDataSource and DetailsView.
I need auto close thickbox window after update button has been pressed and no redirect. Just auto close thickbox after update. But I cann't, although I wrote in update.aspx:
public partial class Update : System.Web.UI.Page {
protected void dvOneStudent_ItemUpdating(object sender, DetailsViewUpdateEventArgs e) {
Page.ClientScript.RegisterStartupScript(this.GetType(), "autoCloseThickBox", "self.parent.autoClose();", true);
}
But when I press update button I redirect to Update.aspx?studentId=8&height=350&width=350&modal=true&random=1287386484949 somehow. I need no redirect.
I donn't need use thick in iframe.