javascriptはasp.netの後置コードの方法を呼び出します.
5167 ワード
aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="PriceSystem_temp_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>
</head>
<script src="../js/jquery-1.5.1.min.js" type="text/javascript"></script> 1:
2:
3: <script>
4: $(function() {
5: PageMethods.Hello(" ", function(e) {
6: alert(e);
7: });
8: })