最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
[ASP.net]Loading制作
时间:2022-07-02 23:36:36 编辑:袖梨 来源:一聚教程网
方法很简单。把代码放上来大家看看!
打了包成了个控件。下载地址:
http://upserver4.ys168.com/ys168up/D1/YY1.aspx?f=050P1D8E0E3E5D9D5G6ALI7A00A05AKA03D6A00A08A08I5F9G0E0D9E0D8D6E1A24E6E1D9E5D9C3
下面是源码:
===================================
using System;
namespace HDControl
{
///
/// Summary description for Loading.
///
public class Loading
{
private System.Web.UI.Page Sender;
private string strImagePath;
public object Page
{
get
{
return Sender;
}
set
{
Sender = (System.Web.UI.Page)value;
}
}
public string ImageMapth
{
get
{
return strImagePath;
}
set
{
strImagePath = value;
}
}
public Loading()
{
//
}
public Loading( object sender )
{
Page = sender;
}
public Loading( object sender,string ImageMapth )
{
Page = sender;
this.strImagePath = ImageMapth;
}
///
/// Load script to page
///
public void Load()
{
if ( !this.Sender.IsClientScriptBlockRegistered( "startScript" ) )
{
this.Sender.RegisterClientScriptBlock( "startScript",this.Start() );
this.Sender.RegisterStartupScript( "endScript",this.End() );
}
}
///
/// Script start.
///
///
private string Start()
{
string strStyle = "BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none";
System.Text.StringBuilder strScript = new System.Text.StringBuilder();
strScript.Append( "
打了包成了个控件。下载地址:
http://upserver4.ys168.com/ys168up/D1/YY1.aspx?f=050P1D8E0E3E5D9D5G6ALI7A00A05AKA03D6A00A08A08I5F9G0E0D9E0D8D6E1A24E6E1D9E5D9C3
下面是源码:
===================================
using System;
namespace HDControl
{
///
/// Summary description for Loading.
///
public class Loading
{
private System.Web.UI.Page Sender;
private string strImagePath;
public object Page
{
get
{
return Sender;
}
set
{
Sender = (System.Web.UI.Page)value;
}
}
public string ImageMapth
{
get
{
return strImagePath;
}
set
{
strImagePath = value;
}
}
public Loading()
{
//
}
public Loading( object sender )
{
Page = sender;
}
public Loading( object sender,string ImageMapth )
{
Page = sender;
this.strImagePath = ImageMapth;
}
///
/// Load script to page
///
public void Load()
{
if ( !this.Sender.IsClientScriptBlockRegistered( "startScript" ) )
{
this.Sender.RegisterClientScriptBlock( "startScript",this.Start() );
this.Sender.RegisterStartupScript( "endScript",this.End() );
}
}
///
/// Script start.
///
///
private string Start()
{
string strStyle = "BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none";
System.Text.StringBuilder strScript = new System.Text.StringBuilder();
strScript.Append( "
" );
相关文章
- 《无限暖暖》天星之羽获得位置介绍 12-20
- 《流放之路2》重铸台解锁方法介绍 12-20
- 《无限暖暖》瞄准那个亮亮的成就怎么做 12-20
- 《无限暖暖》魔气怪终结者完成方法 12-20
- 《无限暖暖》曙光毛团获得位置介绍 12-20
- 《无限暖暖》日光果获得位置介绍 12-20
热门栏目
-
php教程
php入门 php安全 php安装 php常用代码 php高级应用 -
asp.net教程
基础入门 .Net开发 C语言 VB.Net语言 WebService -
手机开发
安卓教程 ios7教程 Windows Phone Windows Mobile 手机常见问题 -
css教程
CSS入门 常用代码 经典案例 样式布局 高级应用 -
网页制作
设计基础 Dreamweaver Frontpage js教程 XNL/XSLT -
办公数码
word excel powerpoint 金山WPS 电脑新手 -
jsp教程
Application与Applet J2EE/EJB/服务器 J2ME开发 Java基础 Java技巧及代码