日期:2014-05-17 浏览次数:20472 次
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="courseContent.aspx.cs" Inherits="teachingAndStudy.Public.courseContent" %> <!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 src="../js/jq1.6.2.min.js" type="text/javascript"></script> <script type="text/javascript"> $(function () { $.post('getCourseMenus.ashx', 'who=<% =who %>', function (d) { }); }) }); </script> </head> <body> <form id="form1" runat="server"> <div id='content'> </div> </form> </body> </html>
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace teachingAndStudy.Public { public partial class courseContent : System.Web.UI.Page { public string who = null; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { who = Request.QueryString["who"]; } } } }