Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

When i am adding event in share point 2010 calendar programmatically, I need to refresh 2 time calendar. After that event is added to calendar.. Plz help me. Its urgent..

code:

SPList calendarList = web.Lists["Calendar"]; . . . . item.update(); calendarList.update();

share|improve this question
    
I'm not sure what you try to accomplish. Is it refreshing the page for the user after making some changes in code? –  Ruben Herman Oct 29 '12 at 12:31
    
I have made one webpart. I have added it on calendar. So I have wrote code on page load. –  Rajesh Joshi Oct 29 '12 at 12:37
    
What you could try to do is SPUtility.Redirect(...) or write a client script block to the page where you refresh it –  Ruben Herman Oct 29 '12 at 12:39
    
No I manually refresh my page. I not use any script block or nothing else.. –  Rajesh Joshi Oct 29 '12 at 12:44
    
So it's no problem to refresh? You want to make some changes to the listitem, but you can't see them? –  Ruben Herman Oct 29 '12 at 12:48

1 Answer 1

up vote 2 down vote accepted

Yes I have solved my Problem.....

Response.Redirect(Request.RawUrl);

It works great.....

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.