再谈Asp.net里的活动
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="Default.master.cs" Inherits="MyWebservice.Default" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://http://www.zjjv.com///TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://http://www.zjjv.com///1999/xhtml" >
<head runat="server">
<title>无标题页</title>
<script type="text/javascript" src="<%
=ResolveClientUrl("../js/jquery.js") %>"></script>
<script type="text/javascript">
$(document).ready(function(){
alert("jQuery.")
});
</script>
<asp:ContentPlaceHolder runat="server">
</asp:ContentPlaceHolder>
</head>
<body>
<form runat="server">
<asp:Image runat="server" ImageUrl="~/images/qq.jpg" />
<img src="<%=ResolveUrl("~/images/qq.jpg") %>" />
<!-- 下面使用相对活动 -->
<asp:Image runat="server" ImageUrl="../images/qq.jpg" />
<img src="images/qq.jpg" />
<div>
<asp:ContentPlaceHolder runat="server">
</asp:ContentPlaceHolder>
</div>
</form>
</body>
</html>