473,800 Members | 3,089 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Manually trigger postback in asp.net

Hello. All I want to do is have my web app display a page with an
animated gif on it. After a certain timespan, I want that page to
redirect the user to another page. So, in effect, I can display a
progress bar of sorts. The problem is that timers don't work for this,
nor do custom events. I'm guessing that if I manually forced a
postback, I could catch that in the Page_Load method and do the
redirect there. I'm using c#. Thank you.
Nov 18 '05 #1
2 5496
te************@ gmail.com (Terence McGhee) wrote in
news:83******** *************** ***@posting.goo gle.com:
I'm guessing that if I manually forced a
postback, I could catch that in the Page_Load method and do the
redirect there.


You'll need to use javascript to auto-submit a form.

--
Lucas Tam (RE********@rog ers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 18 '05 #2
you can use javascript:

<html>
<head>
<title>My Redirect</title>
</head>
<body>
This page will redirect to <b>http://www.msdn.micros oft.com</b> in 5
seconds.
</body>
<script language="javas cript">
window.setTimeo ut("reDirect()" ,5000);

function reDirect() {
window.location .href = "http://www.msdn.micros oft.com";
}
</script>
</html>

"Terence McGhee" wrote:
Hello. All I want to do is have my web app display a page with an
animated gif on it. After a certain timespan, I want that page to
redirect the user to another page. So, in effect, I can display a
progress bar of sorts. The problem is that timers don't work for this,
nor do custom events. I'm guessing that if I manually forced a
postback, I could catch that in the Page_Load method and do the
redirect there. I'm using c#. Thank you.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4479
by: VM | last post by:
How can I manually run the code of an event? For example, I want to run a Mouse click event without actually clicking doing a Mouse click? Thanks.
4
25151
by: NWx | last post by:
Hi, How can I make a page to postback automatically, using JavaScript? I need a JavaScript function as handled to page_load, but I don't know what code to write to trigger postback. Can anyone help me? Regards
6
1403
by: Karl Hungus | last post by:
Im using an xsl transformation so its not practical to use controls in the usual way, but I would still like to call methods in my codebehind class. usually Id just use onclick="<eventHandler>" say for something like a button control is there a way to manually call a method defined in a codebehind class, but is not called by a standard control? I looked at the __doPostBack() function that .net generates but it seemed impenetrable.
1
422
by: Terence McGhee | last post by:
Hello. All I want to do is have my web app display a page with an animated gif on it. After a certain timespan, I want that page to redirect the user to another page. So, in effect, I can display a progress bar of sorts. The problem is that timers don't work for this, nor do custom events. I'm guessing that if I manually forced a postback, I could catch that in the Page_Load method and do the redirect there. I'm using c#. Thank you.
7
1850
by: Anand | last post by:
Hi All, The postback on my desktop stopped working. I am trying to run the webapplication locally on my desktop and the Postback on my home page won't trigger on any of my dropdown selections. The error on the displayed HTML points to the line in the PostBack event which is not my code but the auto generated code for the postback event. Have anybody else faced this issue. Any help appreciated. Thanks Anand
10
2220
by: Beffmans | last post by:
Hi I want to trigger a postback in my parent page from my popup window which i opened with javascript. How to go about this? ch Beffer *** Sent via Developersdex http://www.developersdex.com ***
2
1523
by: Lars Netzel | last post by:
I open a popup from an aspx page and when done working in the popup i I need to update the aspx page in the background. I know how to get to the page in the background thru JavaScript (window.opener.. ) but how do I trigger a postback that will keep the viewstate of that page? best regards/ Lars Netzel
0
1361
by: Frank van Vugt | last post by:
L.S. Postgresql version 7.4.3 does not allow declaration of a 'for each statement' constraint trigger: db=# \h create constraint Command: CREATE CONSTRAINT TRIGGER Description: define a new constraint trigger Syntax: CREATE CONSTRAINT TRIGGER name
4
2810
by: Peter | last post by:
ASP.NET 3.5 I have a web page and this web page has a DataList, when user hovers the mouse over a picture in the datalist a popup appers, this popup is a User Control and it has a cancel button. After the user clicks on the cancel button I want the DataList to refresh its self. How can I do that - how can I tell the DataList or the parent web page to refresh it's self from the Popup / User Control?
0
9689
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9550
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10248
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9085
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7573
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6811
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5469
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5597
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.