c# asp.net- forcing page load

Hi,
i have an asp page and a web user control. in the web user control I want to force the asp page to reload after an action has happened , how can I do this?

I want to force" protected void Page_Init(object sender, EventArgs e)" in TimesheetDay.aspx.cs to run from a method in the EntryTimesheetControl.ascx.cs

Thanks
CharlieDevAsked:
Who is Participating?
 
copyPasteGhostConnect With a Mentor Commented:
why don't you just redirect to the same page.

Response.Redirect("Mypage.aspx");

This will force the page to be reloaded?

Ghost
0
 
JuanCarnigliaConnect With a Mentor Commented:
You want to Submit the page (actually, the form) from the Client Side?

   - Use __DoPostBack(); (http://aspalliance.com/895_Understanding_the_JavaScript___doPostBack_Function.all).

Greetings.
0
 
OBonioConnect With a Mentor Commented:
A Response.Redirect or a Server.Transfer would do it.
0
 
JuanCarnigliaCommented:
Response.Redirect is not the same as Server.Transfer.

See this link:

http://www.csharpfriends.com/Articles/getArticle.aspx?articleID=15

Greetings
0
 
CharlieDevAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.