How to Auto-refresh a mobile page?

M

M.Imran Khan

Here is the simples Mobile page i created

<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="MobileWebForm1.aspx.vb" Inherits="Mobile_PSD.MobileWebForm1" %>
<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls"
Assembly="System.Web.Mobile" %>
<HEAD>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="http://schemas.microsoft.com/Mobile/Page"
name="vs_targetSchema">
</HEAD>
<body Xmlns:mobile="http://schemas.microsoft.com/Mobile/WebForm">
<mobile:form id="Form1" runat="server">
<mobile:TextBox id="txtName" runat="server"></mobile:TextBox>
</mobile:form>
</body>

What i want is that, i want this page to refresh Automatically after x
number of seconds like we have in normal HTML pages. for example,

<meta http-equiv="refresh" content="30">

Can anyone tell how can i use the above in mobile page?

Thanks
 
J

Joyal Jhaveri

M.Imran Khan said:
Here is the simples Mobile page i created

<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="MobileWebForm1.aspx.vb" Inherits="Mobile_PSD.MobileWebForm1" %>
<%@ Register TagPrefix="mobile" Namespace="System.Web.UI.MobileControls"
Assembly="System.Web.Mobile" %>
<HEAD>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
<meta content="http://schemas.microsoft.com/Mobile/Page"
name="vs_targetSchema">
</HEAD>
<body Xmlns:mobile="http://schemas.microsoft.com/Mobile/WebForm">
<mobile:form id="Form1" runat="server">
<mobile:TextBox id="txtName" runat="server"></mobile:TextBox>
</mobile:form>
</body>

What i want is that, i want this page to refresh Automatically after x
number of seconds like we have in normal HTML pages. for example,

<meta http-equiv="refresh" content="30">

Can anyone tell how can i use the above in mobile page?

Thanks
 
J

Joyal Jhaveri

I have the same problem.
Also, div tag is not working if we want to use it in the MobileForm. I want
that solution also. If you have then please let me know.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top