易截截图软件、单文件、免安装、纯绿色、仅160KB

asp.net通过后台调用前台的javascript函数

<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>无标题页 </title>
    <script type="text/javascript">
    function click()
    {
        alert(this.id);
    }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:AdRotator ID="AdRotator1" runat="server" AdvertisementFile="~/ad.xml" KeywordFilter="1" Target="_blank"  />
        <asp:AdRotator ID="AdRotator2" runat="server" AdvertisementFile="~/ad.xml" KeywordFilter="2" Target="_blank" />
    </div>
    </form>
</body>
</html>

using System;
using System.Data;
using System.


相关问答:

asp.net 线程的问题? - .NET技术 / ASP.NET

前段时间碰到一道面试题如下:
test.aspx页面有如下代码:
 Response.Write(Test.GetDate());
Test类如下:
public class Test
{
  static string dt="";
  public static s ......

后台调用JavaScript问题 - .NET技术 / ASP.NET

我在后台调用JavaScript的时候,他是在后台把事件的代码执行一次后在执行JavaScript方法
 有什么办法 在执行JavaScript方法的时候停住,在执行后面的代码
不太明白啊,说清楚点吧

就是执行后台代码的时候 ......

javascript调用后台带参数的函数

后台有一个函数 protected string Fun1(int a, string b)

我想在javascript代码中调用它,怎么做?

function GridBind()
{
    var a = 1;
    var b='s';
& ......

javascript如何调用asp.net带参数的函数

后台:
  protected void form_ini2(string id)
  {
  //处理代码
  }
前台:
 <script language="javascript">
 function DbClickEvent(a ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号