文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>serControl 成为 Asp.Net ajax 控件

serControl 成为 Asp.Net ajax 控件

时间:2009-06-15  来源:00-33

很多时候,我们需要用到User Control,将部份UI或业务逻辑包装,下面将UserControl包装成Asp.Net ajax 控件:
简单示例:

  (ASCX) 这一段代码就不解释了:

1
2<table>
3<tr>
4<td>
5LoginName:
6td>
7<td>
8<asp:TextBoxID="UserName"Ruant="Server">asp:TextBox>
9td>
10tr>
11<tr>
12<td>
13Password:
14td>
15<td>
16<asp:TextBoxID="Password"TextMode="Password"Ruant="Server">asp:TextBox>
17td>
18tr>
19table>

  (LoginPanel.js)

1<scripttype="text/javascript">
2///
3Type.registerNamespace("CsharpFarmer");
4CsharpFarmer.LoginPanel=function(element){
5CsharpFarmer.LoginPanel.initializeBase(this,[element]);
6this.userName=null;
7this.password=null;
相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载