Dec 27, 2012

Asp.net Page Automatically Refresh Meta Tag

12/27/2012 10:03:00 PM

When using HTML we can use  <meta> tag to  continuously Refresh a page afer a  time Interval.
<meta http-equiv="refresh" content="5"/>
Here 5 indicates Seonds after which the Page will get Refreshed.
We can use this tag in Asp.NET to Refresh our Page conditionally.
Only we have to add two more  attributes
       1.  ID
       2.  runat="server"
by which we can access this tag's content from Code behind File.
Content of .aspx File

<head runat="server">
    <meta id="refreshRate" runat="server" http-equiv="refresh" content=""/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Label ID="lblName" runat="server" Text="Devi" /> <br />
        <asp:Button ID="btnFullName" runat="server" Text="FullName" onclick="btnFullName_Click" />
    </div>
    </form>
</body>

Written by

We are Creative Blogger Theme Wavers which provides user friendly, effective and easy to use themes. Each support has free and providing HD support screen casting.

0 comments:

Post a Comment

Recent Posts
Popular Articles

 

© 2013 MUNISH ORACLE DBA& .Net Developer. All rights resevered. Designed by Templateism

Back To Top