You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
559 B
16 lines
559 B
<%@ Page Language="C#" ASPCOMPAT="TRUE" Debug="true" Inherits="OboutInc.oboutAJAXPage"%>
|
|
<%@ Register TagPrefix="oajax" Namespace="OboutInc" Assembly="obout_AJAXPage" %>
|
|
<script language="C#" runat="server">
|
|
void Page_Load(object sender, EventArgs e) {
|
|
if (!IsPostBack) {
|
|
UpdateWeather();
|
|
CreateTimer("weatherupdate", "UpdateWeather", "function(){}", 2000);
|
|
}
|
|
}
|
|
|
|
public void UpdateWeather()
|
|
{
|
|
Random r1 = new Random();
|
|
lImage.Text = "images/Weather/" + r1.Next(1, 34).ToString() + ".gif"; // 1 - 34
|
|
Random r2 = new Random();
|