We help IT Professionals succeed at work.
Get Started

Problem With Refresh parent page after save data in dataview web part..

Last Modified: 2010-04-21
Hii All,

  I did one dataview web part in sharepoint site. and i have one hyperlink to open newform.aspx. i open that form in another page like child page. and i removed sharepoint save and cancle button and i wrote code for save and cancel is .. <input Type="button" Value="Save" Onclick="javascript:{ddwrt:Genfireserverevent{'_commit';};window.opener.document.location.reload;self.close();>
So i used window.opener.document.location.reload for refresh and self.close(); for close child window.
But when i click SAVE button then first it refresh the parent window and then it save the data. so i dont get resule. everytime i have to refresh manually..

How can i fix this problem?? Can i refresh twise so i can remove this problem..Please anyone help me ..
And one more thing is an another list it works fine but only this project tasks list it does not work..

Thank You..
Watch Question
This problem has been solved!
Unlock 1 Answer and 12 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE