Is there an easy way to manually force the content page to postback or refresh from the master page without using an updatepanel?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are using jQuery or open to it, you can use a JavaScript timer to trigger the refresh and use jQuery’s Ajax support to perform the actual refresh.
Jquery/Ajax call with timer
UPDATE
To address your comment about using the code-behind to do the refresh.
Once the server-side code runs, it returns HTML to the browser. The browser then renders that HTML. The server has absolutely no way to change the HTML code on its own after the code has been delivered to the browser. Only the browser can do that, by reaching out to the server (or potentially a different server) and requesting new data and changing the HTML itself in response to that request. The most common way to do that is with an Ajax call, though there are other technologies like Web Sockets that can accomplish similar things.