Enjoy Life

A Ryan Gene Blog!

Thursday, August 17, 2006

[Code]ASP.net按钮提交前执行javascript

here is the code...


<script language=“javascript“>
function doSomething()
{
// 执行自己的javascript
// 继续提交
this.click();
}
</script>
<asp:button onmousedown=“doSomething()“ id=“someButton” Text="提交" runat="server"></asp:button>

posted by Ryan Gene at 10:27 AM

0 Comments:

Post a Comment

<< Home

Name:
Location: Shanghai, Shanghai, China

Powered by Blogger
Powered by Writely

Add to Google

Site Feed