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
Ïà¹ØÎĵµ£º
ÔÚWeb±à³Ì¹ý³ÌÖУ¬´æÔÚןܶలȫÒþ»¼¡£±ÈÈçÔÚÒÔǰµÄASP°æ±¾ÖУ¬CookieΪ·ÃÎÊÕߺͱà³ÌÕß¶¼ÌṩÁË·½±ã£¬²¢Ã»ÓÐÌṩ¼ÓÃܵŦÄÜ¡£´ò¿ªIEä¯ÀÀÆ÷£¬Ñ¡Ôñ“¹¤¾ß”²Ëµ¥ÀïµÄ“InternetÑ¡Ï¬È»ºóÔÚµ¯³öµÄ¶Ô»°¿òÀïµ¥»÷“ÉèÖÔ°´Å¥£¬Ñ¡Ôñ“²é¿´Îļþ”°´Å¥£¬ÔÚµ¯³öµÄ´°¿ÚÖУ¬¾Í»áÏÔʾӲÅÌÀï ......
×î½ü£¬Òª×öÒ»¸öµÇ½µÄÒ³Ãæ£¬¾ÍÏëµ½Á˰²È«ÐÔ·½ÃæµÄÎÊÌâ¡£¼ÇµÃÔø¾ÔÚÉÛÖ¾¶«ÀÏʦ½²µÄ¹ØÓÚasp.net°²È«ÐÔ·½ÃæµÄ¿Î³ÌÖУ¬Ìáµ½asp.netÌṩÁË4¸öÉí·ÝÑéÖ¤³ÌÐò£º1.±íµ¥Éí·ÝÑéÖ¤£»2.WindowsÉí·ÝÑéÖ¤£»3.PassportÉí·ÝÑéÖ¤£»4.ĬÈÏÉí·ÝÑéÖ¤¡£ÓÈÆä½²ÁË±íµ¥Éí·ÝÑéÖ¤£¬ÏëÏ룬ÕýºÃ×Ô¼ºÒÔǰҲ²»ÔøÊ¹ÓùýÕâ¸öÑ ......
ÔÚ¿ª·¢ÐèÒªÓû§×¢²áºó²ÅÄÜʹÓÃÌṩµÄ¸÷ÏÄܵÄÓ¦ÓóÌÐòʱ£¬ÔÚÐÂÓû§Ìá½»×¢²áÐÅÏ¢ºó£¬½Ï³£¼ûµÄ×ö·¨ÊÇÓɳÌÐòÉú³ÉËæ»úÃÜÂ룬Ȼºó·¢ËÍÃÜÂëµ½Óû§×¢²áʱÌîдµÄµç×ÓÐÅÏ䣬Óû§ÔÙÓÃÊÕµ½µÄÃÜÂëÀ´¼¤»îÆäÕÊ»§¡£
ʵÏÖASP.NETÉú³ÉËæ»úÃÜÂ빦ÄÜÊǺÜÈÝÒ׵ģ¬ÏÂÃæµÄ´úÂë¸ø³öÁËÍêÕûµÄʵÏÖ·½·¨£º
publicstaticstringMakePassword(stringpw ......
ASP.NETÒ³Ãæ»º´æµÄ¼¸µãÌå»á
¾¡¹Ü±¾ÎĵÄ×÷ÕßдµÄºÜ¼òµ¥£¬µ«ÊÇÏàÐÅͨ¹ýÕâЩÎÄ×Ö£¬»¹ÊÇÄܶԴó¼ÒÁ˽âASP.NETÒ³Ãæ»º´æÓкܴóµÄ°ïÖú¡£
ǰ¼¸ÌìÓöµ½¸öÎÊÌ⣬°Ù˼²»µÃÆä½â¡£ºóÀ´²éÔÄÁËһЩ×ÊÁÏÐÄÀï²ÅÓÐÁ˵ã˼·¡£°Ñ×Ô¼ºÓöµ½µÄÎÊÌâ¼Ç¼ÏÂÀ´Ï£ÍûÄܸøÆäËûµÄÔ°ÓÑһЩ°ïÖú°É¡£
ÊÂÇéÊÇÕâÑùµÄ¡£ÎÒµÄÒ»¸öASP.NETÒ³ÃæÓÃwindow.openµ¼º½ºó ......
3¸öÎļþ
code ÀàÎļþ
using System;
using System.Text;
namespace ConcreteMIS.Common.Chinese
{
/// <summary>
/// ºº×ÖÆ´ÒôÉùĸ¼ÆËãÀà
/// Write by WangZhenlong at 2003/11/29
/// </summary>
......