what i want is when my page loads up i should get the updat dat every sec from the server (Like stock market).
For now i need sample applaction to go through.
Any Help would be appreciated.
For right now i am tring also to get system time kee running. the code for this is but not working (What i need is no button and my label should shoe the sytem time with seconds)
According to your code and description ,I would like to suggest you to check the link below for a similar thread which provides some solutions for the same issue.
muhammadazee...
Member
4 Points
163 Posts
how to use Script Manager
May 07, 2012 03:01 PM|LINK
what i want is when my page loads up i should get the updat dat every sec from the server (Like stock market).
For now i need sample applaction to go through.
Any Help would be appreciated.
For right now i am tring also to get system time kee running. the code for this is but not working (What i need is no button and my label should shoe the sytem time with seconds)
<%
@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="TestApplication._Default" %>
<!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml"
>
<
head runat
="server">
<title></title>
</
head
>
<
body
>
<form id="form1" runat="server">
<h1> Using Script Manager</h1>
<div>
<asp:ScriptManager ID="MAinScriptManager" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<ContentTemplate>
<asp:Button ID="Button" runat="server" Text="AJAX" onclick="Button_Click" />
<asp:Label ID="Label" runat="server" Text="Label"/>
</ContentTemplate>
</asp:UpdatePanel>
</div>
</form>
</
body
>
</
html
>
Sparkers
Contributor
2086 Points
470 Posts
Re: how to use Script Manager
May 07, 2012 03:32 PM|LINK
This post might help you
http://www.dreamincode.net/forums/topic/90522-displaying-system-time-every-few-minutes/
http://forums.asp.net/p/1393825/2989840.aspx
Song-Tian - ...
All-Star
43699 Points
4304 Posts
Microsoft
Re: how to use Script Manager
May 08, 2012 09:03 AM|LINK
Hi,
Please refer to the code as follow:
<asp:ScriptManager runat="server" id="ScriptManager1" /> <asp:UpdatePanel runat="server" id="UpdatePanel1" UpdateMode="Conditional"> <contenttemplate> <asp:Timer id="Timer1" runat="server" Interval="120000" OnTick="Timer1_Tick"> </asp:Timer> </contenttemplate> </asp:UpdatePanel>For more details, please refer to: http://msdn.microsoft.com/en-us/library/bb386522.aspx.
Feedback to us
Develop and promote your apps in Windows Store
chetan.sarod...
All-Star
65619 Points
11118 Posts
Re: how to use Script Manager
May 09, 2012 03:18 AM|LINK
According to your code and description ,I would like to suggest you to check the link below for a similar thread which provides some solutions for the same issue.
http://forums.asp.net/p/1226959/2204118.aspx
Here a sample which shows how to use an ASP.NET AJAX Timer Control.Please check it and see whether it helps.
[How Do I:] Use the ASP.NET AJAX Timer Control?
http://forums.asp.net/t/1757336.aspx/1
Senior Software Engineer,
Approva Systems Pvt Ltd, Pune, India.