這篇文章主要介紹了html+ashx 表單提交的具體實現,需要的朋友可以參考下
1,sumbit表單提交 WebForm1.aspx源碼: 代碼如下:<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="NETFormDemo.ashx.WebForm1" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head > <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></title> <script type="text/javascript"> </script> </head> <body> <form id="form1" action="submitForm.ashx" > <div> <input type="submit" value="提交" /> </div> </form> </body> </html> submitForm.ashx源碼: 代碼如下:using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace NETFormDemo.ashx { /// <summary> /// submitForm 的摘要說明 ///新聞熱點
疑難解答