vb coding a postback without clicking a buttonhttp://forums.asp.net/t/1760097.aspx/1?vb+coding+a+postback+without+clicking+a+buttonWed, 25 Jan 2012 02:49:10 -050017600974788753http://forums.asp.net/p/1760097/4788753.aspx/1?vb+coding+a+postback+without+clicking+a+buttonvb coding a postback without clicking a button <p>I have a web application that is a quiz and includes a timer. When the a timeleft variable becomes&nbsp;becomes zero a label's text is changed to &quot;Time Is Up&quot;. However I also have a user control that I want to open up which is like a dioalog box that tells the&nbsp;user that the time is up. At the moment I can only get the user control to become visible when I do a postback by clicking a &quot;postback&quot; button. Is there a way to programatically in VB code behind to do a&nbsp;postback when the time is up making it unneccessary for a manual click of a button. If so can you outline the VB code and any parameters needed. Also indicate if any markup is needed in the aspx page file.&nbsp;Thanks for any help bobthebuilder</p> 2012-01-18T03:43:18-05:004788985http://forums.asp.net/p/1760097/4788985.aspx/1?Re+vb+coding+a+postback+without+clicking+a+buttonRe: vb coding a postback without clicking a button <p>Try using the Timer control located under the AJAX Extensions tab in the VS Toolbox.&nbsp; While it was added to work with AJAX controls, it should work for this as well.</p> <p><a href="http://msdn.microsoft.com/library/system.web.ui.timer.aspx">http://msdn.microsoft.com/library/system.web.ui.timer.aspx</a></p> <p>&nbsp;</p> 2012-01-18T06:12:52-05:004797740http://forums.asp.net/p/1760097/4797740.aspx/1?Re+vb+coding+a+postback+without+clicking+a+buttonRe: vb coding a postback without clicking a button <p>I have used the timer control placing the User Contol Dialog in an Update Panel. This then enables the dialog to be opened automatically when the time has elapsed. But that creates another problem. Beacuse the User Control Dialog is in the Update Panel it cannot affect other parts of the page outside the Update Panel. As the user click the close button on the User Control I want it to run procedures to update things on my page that are not in the update pane.</p> <p>It still seems to me that clicking a button programatically in code behind (to force a postback) would be best so that the whole page can be updated. Have you any ideas? Thanks Bob Bown</p> 2012-01-24T04:44:50-05:004799611http://forums.asp.net/p/1760097/4799611.aspx/1?Re+vb+coding+a+postback+without+clicking+a+buttonRe: vb coding a postback without clicking a button <p>Using the Timer control outside of any UpdatePanel control will initiate a normal postback for your page with the time elapses.</p> 2012-01-25T02:49:10-05:00