zoukankan      html  css  js  c++  java
  • aspx.net后台调用前台JS方法

    方法1:

       ScriptManager.RegisterStartupScript(this.Button1, this.GetType(), "alertScript", "window.open('default2.aspx');", true); 其中第一个参数为要注册脚本的控件ID,试了一下,只要是本页面的就行。  第二个参数为注册脚本控件类型,是控件还是this的GetType()都可以,typeOf(string)也没问题. 第三个脚本

    方法2:

    Page.RegisterStartupScript("2013","<script>seData();</script>");//调用前台JS方法

    以上方法效果一样

  • 相关阅读:
    cmake的安装
    安装cmake过程g++: 错误:unrecognized command line option ‘-std=gnu++14’
    进程空间分配
    git 基本操作
    nm命令
    container_of 宏
    cmake
    fiddler修改Requests之前的数据和response 之后的数据
    Fiddler抓包请求前设置断点
    jmeter连接mysql数据库
  • 原文地址:https://www.cnblogs.com/spring_wang/p/3120655.html
Copyright © 2011-2022 走看看