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.
相关问答:
前段时间碰到一道面试题如下:
test.aspx页面有如下代码:
Response.Write(Test.GetDate());
Test类如下:
public class Test
{
static string dt="";
public static s ......
我在后台调用JavaScript的时候,他是在后台把事件的代码执行一次后在执行JavaScript方法
有什么办法 在执行JavaScript方法的时候停住,在执行后面的代码
不太明白啊,说清楚点吧
就是执行后台代码的时候 ......
后台有一个函数 protected string Fun1(int a, string b)
我想在javascript代码中调用它,怎么做?
function GridBind()
{
var a = 1;
var b='s';
& ......
后台:
protected void form_ini2(string id)
{
//处理代码
}
前台:
<script language="javascript">
function DbClickEvent(a ......