今天开博了
今天开始写随笔.记录.net资料.希望在这里能和大家交流.net 2.0技术.一起学习进步.
简单的弹出对话框:
<body>
<form id="form1" runat="server">
<div>
<asp:Button ID="Button1" runat="server" Text="确定/取消" />
</div>
</form>
</body>
事件代码:
protected void Page_Load(object sender, EventArgs e)
{
Button1.Attributes.Add("onclick", "javascript:return window.confirm('确认更改吗?')");
}
Button1.Attributes.Add("onclick","return hello();");用javascript在aspx里写hello函数.<script type="text/javascript"></script>
operator 关键字用于在类或结构声明中声明运算符
简单的弹出对话框:
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
事件代码:
![](https://www.cnblogs.com/Images/OutliningIndicators/None.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/InBlock.gif)
![](https://www.cnblogs.com/Images/OutliningIndicators/ExpandedBlockEnd.gif)
operator 关键字用于在类或结构声明中声明运算符