譬如:我用vb.net写了一个 Ca.ascx,里面有一个Calendar我在 home.aspx 里面调用这个ascx <uc1:Ca ID="Ca1" runat="server" />
我想给Ca加一个触发Changed,当ascx里Calendar的SelectionChanged,主程序的Changed也相应响应类似 <uc1:Ca ID="Ca1" Changed="Ca1_Changed" runat="server" /> 我不知道应该怎么在ascx里加。有人能帮忙以下吗?先谢了。
我想给Ca加一个触发Changed,当ascx里Calendar的SelectionChanged,主程序的Changed也相应响应类似 <uc1:Ca ID="Ca1" Changed="Ca1_Changed" runat="server" /> 我不知道应该怎么在ascx里加。有人能帮忙以下吗?先谢了。
解决方案 »
- 如何让gridview中的checkbox根据数据库情况默认选中?
- IIS不允许匿名关于网页请求时弹出windows安全性验证
- Dim dr As OleDbDataReader = cmd.ExecuteReader报错,问题在那里????
- 请问如何在.vb获取ItemTemplate中TextBox中的值?
- _____问个初级问题,抱歉
- .gsp网页是用什么开发的阿?
- 一时间字段的显示问题
- 求解释一段代码,基础入门级
- 在.net 2.0中怎么样获取上传文件的时间,并显示出来
- internet服务器错误(请微软专家看看)
- 如何在DropDownList或者Select下拉框里面显示图片?
- 怎么样 才能将分配出去的分数总和不能超过该帖子的奖励分??
.....
public delegate onchanged( object sender , someeventarge e );
public event onchanged changehandler;
protected Calendar1_SelectionChanged( object sender , eventarge e )
{
if(changehandler!=null)
changehandler(sender,e);
}....
page.aspx.cs
proteced Ca Ca1;
....
Ca1.changehandler += new onchanged( ... )
随手写的,有错误怪
Public Event SelectionChanged As SelectionChangedHandler Protected Sub Calendar1_SelectionChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles Calendar1.SelectionChanged
RaiseEvent SelectionChanged(sender, e)
End Sub
End Class