سؤال

Is there an easier or a more efficient way to reload a page that a control(which holds the method) is on then this code?

this.Page.Response.Redirect(this.Request.Url.AbsoluteUri);

Need to reload a session variable on another page for a balance that my control updates that balance from. So I run through the code save the session variable then hit the code above to reload. Seems to work locally as well as on 2008 Windows Severs but when I try it on the 2012 Server it says the page can not display that way. Is there a better solution to the reloading of that? Thanks

لا يوجد حل صحيح

نصائح أخرى

Response.Redirect(Request.RawUrl);

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top