自定义控件传值问题(100分 急问)
我想做一个年月日下拉菜单的自定义控件放到gridview里面,然后选择日期后自动对
gridview里面同一行的textbox传值
具体代码如下
<%@ Control Language= "VB " AutoEventWireup= "false " CodeFile= "RsskYmdDrop.ascx.vb " Inherits= "RsskYmdDrop " %>
<asp:DropDownList ID= "drpYear " runat= "server ">
</asp:DropDownList>
年 <asp:DropDownList ID= "drpMonth " runat= "server ">
</asp:DropDownList>
月 <asp:DropDownList ID= "drpDay " runat= "server ">
</asp:DropDownList> 日 <br />
Partial Class RsskYmdDrop
Inherits System.Web.UI.UserControl
' 年
Private _year As Integer
Public Property year() As Integer
Get
Return _year
End Get
Set(ByVal value As Integer)
_year = value
End Set
End Property
' 月
Private _month As Integer
Public Property month() As Integer
Get
Return _month
End Get
Set(ByVal value As Integer)
_month = value
End Set
End Property
' 日
Private _day As Integer
Public Property day() As Integer
Get
Return _day
End Get
Set(ByVal value As Integer)
_day = value
End Set
End Property
' 日期选择改变之后需要设定具体日期的控件ID
Private _bindClientId As String
Public Property bindClientId() As String
Get
Return _bindClientId