在ASP.NET中向用户控件添加Javascript函数 [英] Adding Javascript Function To A User Control In ASP.NET
本文介绍了在ASP.NET中向用户控件添加Javascript函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在ASP.Net中创建一个用户控件.我想在其中添加一些类似于Microsoft在控件中提供的Javascript函数.我该如何实现.
类似于"OnClientClick"事件.
Hi,
I want to create a user control in ASP.Net. In which I want to add some Javascript functions similar to that provided by Microsoft in controls. How can I achieve this.
Similar to "OnClientClick" event.
推荐答案
您可以通过在ascx中编写JavaScript来实现.
You do it by writing the javascript in your ascx.
这篇关于在ASP.NET中向用户控件添加Javascript函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文