addressconfirm.ascx.cs

来自「精通ASP.NET2.0企业级开项目开发源代码.有会员积分系统/简单OA系统/客」· CS 代码 · 共 43 行

CS
43
字号
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class controls_AddressConfirm : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    /// <summary>
    ///	设置控件内的地址信息
    /// </summary>
    public AddressInfo Address
    {
        set
        {
            if (value != null)
            {
                if (!string.IsNullOrEmpty(value.UserName))
                    ltlUserName.Text = value.UserName;
                if (!string.IsNullOrEmpty(value.Address))
                    ltlAddress.Text = value.Address;
                if (!string.IsNullOrEmpty(value.ZipCode))
                    ltlZip.Text = value.ZipCode;
                if (!string.IsNullOrEmpty(value.Country))
                    ltlCountry.Text = value.Country;
                if (!string.IsNullOrEmpty(value.Phone))
                    ltlPhone.Text = value.Phone;
                if (!string.IsNullOrEmpty(value.Email))
                    ltlEmail.Text = value.Email;
            }
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?