Code 1<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="Default3" %> 2 3<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 4 5<html xmlns="http://www.w3.org/1999/xhtml" > 6<head runat="server"> 7 <title>无标题页</title> 8</head> 9<body>10 <form id="form1" runat="server">11 <div>12 <input type="text" id="you" name="you" value="fuck" />13 14 15 </div>16 </form>17</body>18</html> Code Response.Write(Request["you"]); 在text中输入值将会传到 Request["you"] 转载于:https://www.cnblogs.com/fairy-tale/articles/1272646.html