2006-11-15

 

Asp.Net2.0 動態載入UserControl

Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs)
'Dim c As New Calendar
Dim c As Control = Page.LoadControl("DatePicker.ascx")
PlaceHolder1.Controls.Add(c)
End Sub

Comments: 張貼留言



<< Home

This page is powered by Blogger. Isn't yours?