CSDN博客

img xuandhu

asp.net 绑定到JAVASCRIPT

发表于2004/12/31 15:33:00  747人阅读

<%@ Page language="c#" Codebehind="WebForm3.aspx.cs" AutoEventWireup="false" Inherits="newhbee.admin.WebForm3" %><%@ Page language="c#" Codebehind="WebForm3.aspx.cs" AutoEventWireup="false" Inherits="newhbee.admin.WebForm3" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
 <HEAD>
  <title>WebForm3</title>
  <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
  <meta name="CODE_LANGUAGE" Content="C#">
  <meta name="vs_defaultClientScript" content="JavaScript">
  <meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
 </HEAD>
 <body MS_POSITIONING="GridLayout">
 <script>
 function aa()
 {
 alert("<%#er%>");
 }
 aa(); 
 </script>
  <form id="Form1" method="post" runat="server">
   <FONT face="宋体"></FONT>
  </form>
 </body>
</HTML>



===================================================

  public string er="hello";
  private void Page_Load(object sender, System.EventArgs e)
  {
   // 在此处放置用户代码以初始化页面
   this.DataBind();
  }
0 0

相关博文

我的热门文章

img
取 消
img即使是一小步
也想与你分享
打开
img