OnClientClick

看discuz.NET2.0的Controls,没有OnClientChlick,细看,名称起到不对,估计直接复制的
/// <summary>
        
/// 要加载的客户端脚本内容
        
/// </summary>

        [Description("客户端脚本"), DefaultValue("")]
        
public string ScriptContent
        
{
            
get
            
{
                
object obj = ViewState["ScriptContent"];
                
return obj == null ? "" : (string)obj;
            }

            
set
            
{
                ViewState[
"ScriptContent"= value;
            }

        }


   [WebSysDescription("Button_OnClientClick"), WebCategory("Behavior"), DefaultValue(""), Themeable(false)]
    
public virtual string OnClientClick
    
{
        
get
        
{
            
string str = (stringthis.ViewState["OnClientClick"];
            
if (str == null)
            
{
                
return string.Empty;
            }

            
return str;
        }

        
set
        
{
            
this.ViewState["OnClientClick"= value;
        }

    }

此文标记.
posted @ 2008-07-11 18:18  zjy  阅读(788)  评论(0编辑  收藏  举报