Click here to Skip to main content
16,009,329 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Generaldeclare ValueFromDB Pin
David Mujica2-Apr-09 7:55
David Mujica2-Apr-09 7:55 
GeneralRe: declare ValueFromDB Pin
Colin Angus Mackay2-Apr-09 8:13
Colin Angus Mackay2-Apr-09 8:13 
GeneralRe: declare ValueFromDB Pin
Yusuf2-Apr-09 9:50
Yusuf2-Apr-09 9:50 
Questionperform subtration on a field obtained from DB but not getting correct value as result Pin
Meax2-Apr-09 7:09
Meax2-Apr-09 7:09 
AnswerRe: perform subtration on a field obtained from DB but not getting correct value as result Pin
ToddHileHoffer2-Apr-09 7:44
ToddHileHoffer2-Apr-09 7:44 
QuestionAjax ModalPopUpExtender Not Hiding on Load? Pin
codingrocks2-Apr-09 6:29
codingrocks2-Apr-09 6:29 
AnswerRe: Ajax ModalPopUpExtender Not Hiding on Load? Pin
Alok Sharma ji2-Apr-09 12:46
Alok Sharma ji2-Apr-09 12:46 
Questioncan somebody please tell me why this will not work? Pin
learningman2-Apr-09 5:55
learningman2-Apr-09 5:55 
Here is the simple code
<%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<br />
<asp:ScriptManager ID="ScriptManager1" runat="server" />

<asp:Timer ID="Timer1" runat="server" Interval="5000" OnTick="Timer1_Tick">
</asp:Timer>
<br />
<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Timer1" />
</Triggers>
<ContentTemplate>
&nbsp;<asp:Image ID="BannerImage" runat="server" ImageUrl="~/Banners/Banner_1.gif" />
</ContentTemplate>
</asp:UpdatePanel>

</form>
</body>
</html>

Here is the code behind

Partial Class _Default
Inherits System.Web.UI.Page

Protected Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs)
Dim n As Integer = New Random().Next(1, 2)
BannerImage.ImageUrl() = "banners/Banner_" + n.ToString + ".gif"
End Sub
End Class

Its line for line code microsoft ajax video # 24 theirs works mine doentFrown | :(
AnswerRe: can somebody please tell me why this will not work? Pin
Yusuf2-Apr-09 6:15
Yusuf2-Apr-09 6:15 
GeneralRe: can somebody please tell me why this will not work? Pin
learningman2-Apr-09 10:30
learningman2-Apr-09 10:30 
Question[Message Deleted] Pin
liz32-Apr-09 5:38
liz32-Apr-09 5:38 
AnswerRe: Cookie concept question Pin
Yusuf2-Apr-09 5:50
Yusuf2-Apr-09 5:50 
QuestionResources Allocation in asp.net Pin
MallikarjunaGupta2-Apr-09 5:22
MallikarjunaGupta2-Apr-09 5:22 
AnswerRe: Resources Allocation in asp.net Pin
Yusuf2-Apr-09 5:35
Yusuf2-Apr-09 5:35 
Questionthe question about ActiveReport 2.0 with vb.net ... Pin
ice-hotty2-Apr-09 5:04
ice-hotty2-Apr-09 5:04 
GeneralRe: dropdownlist proble Pin
indian222-Apr-09 4:18
indian222-Apr-09 4:18 
GeneralRe: dropdownlist proble Pin
Yusuf2-Apr-09 5:42
Yusuf2-Apr-09 5:42 
QuestionJavaScript Function does not work on the server? Pin
codddy2-Apr-09 4:10
codddy2-Apr-09 4:10 
AnswerRe: JavaScript Function does not work on the server? Pin
Yusuf2-Apr-09 5:51
Yusuf2-Apr-09 5:51 
QuestionAny alternate method to get ip address , browser version and type in C# not in js Pin
Alok Sharma ji2-Apr-09 3:18
Alok Sharma ji2-Apr-09 3:18 
AnswerGet IP address in VB Pin
David Mujica2-Apr-09 4:44
David Mujica2-Apr-09 4:44 
GeneralRe: Get IP address in VB Pin
Alok Sharma ji2-Apr-09 12:22
Alok Sharma ji2-Apr-09 12:22 
Question[Message Deleted] Pin
Alok Sharma ji2-Apr-09 3:14
Alok Sharma ji2-Apr-09 3:14 
AnswerRe: encoding and for sql databse to insert values and retrive them from any asp.net page Pin
ToddHileHoffer2-Apr-09 3:17
ToddHileHoffer2-Apr-09 3:17 
GeneralRe: encoding and for sql databse to insert values and retrive them from any asp.net page Pin
Alok Sharma ji2-Apr-09 3:26
Alok Sharma ji2-Apr-09 3:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.