Default.aspx sayfanıza Şekil 1 de gösterildiği gibi ScriptManager, Timer ve Update Panel ekleyin. Update panelin içine Button u ve Hyperlink inizi yerleştirin.
Şekil 5
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Button1.Enabled = False
Timer1.Interval = 1000
Timer1.Enabled = True
HyperLink1.Visible = False
End Sub
Protected Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim i As Integer = 0
Integer.TryParse(Me.Button1.Text, i)
i = i + 1
Button1.Text = i
If i = 10 Then
Timer1.Enabled = False
Button1.Text = "Download"
Button1.Visible = False
HyperLink1.Visible = True
HyperLink1.Text = "http://www.bahadirsam.somee.com"
HyperLink1.NavigateUrl = "http://www.bahadirsam.somee.com"
End If
End Sub
Bir sonraki makalede görüşmek üzere. Bahadır ŞAHİN
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Button1.Enabled = False
Timer1.Interval = 1000
Timer1.Enabled = True
HyperLink1.Visible = False
End Sub
Protected Sub Timer1_Tick(ByVal sender As Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Dim i As Integer = 0
Integer.TryParse(Me.Button1.Text, i)
i = i + 1
Button1.Text = i
If i = 10 Then
Timer1.Enabled = False
Button1.Text = "Download"
Button1.Visible = False
HyperLink1.Visible = True
HyperLink1.Text = "http://www.bahadirsam.somee.com"
HyperLink1.NavigateUrl = "http://www.bahadirsam.somee.com"
End If
End Sub
Bir sonraki makalede görüşmek üzere. Bahadır ŞAHİN
0 comments:
Yorum Gönder