ASP.net ÀàºÍÊôÐÔµÄÎÊÌâ
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using BLL;
using Model;
public partial class InsertOwnerInfo : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnOk_Click(object sender, EventArgs e)
{
OwnerInfo owner = new OwnerInfo();
owner.OwnerId = this.textid.Text.Trim();
owner.OwnerName = this.textName.Text.Trim();
owner.OwnerSex = this.ddlSex.SelectedValue.ToString();
owner.Address = this.textAddress.Text.Trim();
owner.Phone = this.textPhone.Text.Trim();
owner.Mobile = this.textMobile.Text.Trim();
owner.Company = this.textcompany.Text.Trim();
owner.OfficePhone = this.textofficePhone.Text.Trim();
owner.PaperName = this.textpaperName.Text.Trim();
owner.PaperId = this.textpaperId.Text.Trim();
owner.InkDate = this.textinkDate.Text.Trim();
owner.GarrisonDate = this.TextgarrisonDate.Text.Trim();
owner.GarrisonEndDate = this.TextgarrisonEndDate.Text.Trim();
owne
Ïà¹ØÎĵµ£º
Èç¹û¶Ô΢ÐͼÆËã»úÓ²¼þϵͳÓÐ×ã¹»µÄÁ˽⣬ÄÇôÎÒÃǶÔÓÚCacheÕâ¸öÃû´ÊÒ»¶¨ÊǶúÊìÄÜÏêµÄ¡£ÔÚCPUÒÔ¼°Ö÷°åµÄоƬÖУ¬¶¼ÒýÈëÁËÕâÖÖÃûΪ¸ßËÙ»º³å´æ´¢Æ÷£¨Cache£©µÄ¼¼Êõ¡£ÒòΪCacheµÄ´æÈ¡ËٶȱÈÄÚ´æ¿ì£¬Òò¶øÒýÈëCacheÄܹ»ÓÐЧµÄ½â¾öCPUÓëÄÚ´æÖ®¼äµÄËٶȲ»Æ¥ÅäÎÊÌâ¡£Ó²¼þϵͳ¿ÉÒÔÀûÓÃCache´æ´¢CPU·ÃÎʸÅÂʸߵÄÄÇЩÊý¾Ý£¬µ±CPUÐèÒª· ......
asp.netĬÈϵıàÂëÊÇUTF-8
jsÎļþÀïµÄ±àÂëÒ²ÊÇUTF-8
µ±ÄãÒªÔÚaspxÒ³ÃæÉϽøÐд«ÖÐÎIJÎÊýʱ»á³öÏÖÂÒÂë
<-----request.aspx--½ÓÊÕ²ÎÊýÒ³----->
<----response.aspx--´«ËͲÎÊýÒ³----->
ÀýÒ»£º<a href="request.aspx?str=ÖйúÈË"></a>
½â¾ö°ì·¨Ò»£º
1.¿ÉÒԺ͸ÄwebconfigµÄ±àÂë È磺
  ......
asp.net Forms±íµ¥ÑéÖ¤ ʹÓþÑé¼°ÑéÖ¤Á÷³Ì·ÖÎö
×î½ü£¬Òª×öÒ»¸öµÇ½µÄÒ³Ãæ£¬¾ÍÏëµ½Á˰²È«ÐÔ·½ÃæµÄÎÊÌâ¡£¼ÇµÃÔø¾ÔÚÉÛÖ¾¶«ÀÏʦ½²µÄ¹ØÓÚasp.net°²È«ÐÔ·½ÃæµÄ¿Î³ÌÖУ¬Ìáµ½asp.netÌṩÁË4¸öÉí·ÝÑéÖ¤³ÌÐò£º1.±íµ¥Éí·ÝÑéÖ¤£»2.WindowsÉí·ÝÑéÖ¤£»3.PassportÉí·ÝÑéÖ¤£»4.ĬÈÏÉí·ÝÑéÖ¤ ......
Õ⼸ÌìÅöµ½¸öºÜÆæ¹ÖµÄÎÊÌ⣬ƽ³£ÔÚÏîÄ¿Öдӹ¤¾ßÏäÖУ¬°Ñ¿Ø¼þÍϵ½±à¼Çø£¬ÄÇÊÇÔÙ¼òµ¥ÈÝÒײ»¹ýÁË¡£
¿ÉÊǼ¸ÌìǰÅöµ½¾ÍÊÇ£¬ÎÞÂÛÄãÔõôÍÏ£¬¶¼ÎÞ·¨Íϵ½±à¼ÇøÖУ¬Çл»µ½Ô´Â룬ÔÙÍϵÄʱºòÊÇ¿ÉÒԵ쬲úÉúÁËHTML´úÂë
£¬ÔÙ½«ËüתÊÓͼµÄʱºò£¬·¢ÏÖÎÞ ·¨Õý³£ÏÔʾ¿Ø¼þ£¬£¬ËµÊÇÎÞ·¨ÕÒµ½¸ÃÒ³Ãæ¡£¡£¡£¡£¡£
н¨Á˼¸´ÎÒ²ÊDz»ÐУ¬ÒÔΪÊÇVS³ ......
1. ´ò¿ªÐµĴ°¿Ú²¢´«ËͲÎÊý£º
´«ËͲÎÊý£º
response.write("£¼script£¾window.open('*.aspx?id="+this.DropDownList1.SelectIndex+"&id1="+...+"')£¼/script£¾")
½ÓÊÕ²ÎÊý£º
string a = Request.QueryString("id");
string b = Request.QueryString("id1");
2.Ϊ°´Å¥Ìí¼Ó¶Ô»°¿ò
Button1.Attributes.Add("o ......