2013年10月5日 星期六

textbox配合PopupControlExtender-選擇日期


'前台
        PopupControlID="pnlCalendar" TargetControlID="tbReturn" Position="Bottom" >

'後台
Protected Sub c1_SelectionChanged(sender As Object, e As System.EventArgs) Handles c1.SelectionChanged

        Me.PopupControlExtender1.Commit(Me.c1.SelectedDate.Date)
    End Sub

沒有留言:

張貼留言