百度空间 | 百度首页 
               
 
查看文章
 
后台C#调用js脚本
2008-06-05 15:22
string scriptstr = "\n window.parent.document.getElementById('upload').style.display='none'";
       scriptstr = scriptstr + "\n window.parent.document.getElementById('uploadinfo').style.display='block'";
       scriptstr = scriptstr + "\n window.parent.document.getElementById('show_upload').value='重新上传'";
       Page.ClientScript.RegisterStartupScript(this.GetType(), "OnInitControl", "<script language='JavaScript'type='text/javascript'>" + scriptstr + "\n</script>");
             
       this.GetType()//必传的参数,为本页面的类型。
       OnInitControl://起的名字。
       scriptstr:在js中的方法。

类别:.net | 添加到搜藏 | 浏览() | 评论 (0)
 
最近读者:
 
网友评论:
发表评论:
姓 名:
网址或邮箱: (选填)
内 容:
验证码: 请点击后输入四位验证码,字母不区分大小写
      

     

©2009 Baidu