Guest User

Untitled

a guest
Jul 12th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 2.34 KB | None | 0 0
  1. Public Class MainForm
  2.     Inherits System.Web.UI.Page
  3.     Private selectedCustomer As New Customer
  4.  
  5.     Public Class Customer
  6.         Private cID, cName, cAddress, cCity, cState, cZipCode, cPhone, cEmail As String
  7.         Friend Property CustID As String
  8.             Get
  9.                 Return cID
  10.             End Get
  11.             Set(ByVal value As String)
  12.                 cID = value
  13.             End Set
  14.         End Property
  15.         Friend Property CustName As String
  16.             Get
  17.                 Return cName
  18.             End Get
  19.             Set(ByVal value As String)
  20.                 cName = value
  21.             End Set
  22.         End Property
  23.         Friend Property CustAddress As String
  24.             Get
  25.                 Return cAddress
  26.             End Get
  27.             Set(ByVal value As String)
  28.                 cAddress = value
  29.             End Set
  30.         End Property
  31.         Friend Property CustCity As String
  32.             Get
  33.                 Return cCity
  34.             End Get
  35.             Set(ByVal value As String)
  36.                 cCity = value
  37.             End Set
  38.         End Property
  39.         Friend Property CustState As String
  40.             Get
  41.                 Return cState
  42.             End Get
  43.             Set(ByVal value As String)
  44.                 cState = value
  45.             End Set
  46.         End Property
  47.         Friend Property CustZipCode As String
  48.             Get
  49.                 Return cZipCode
  50.             End Get
  51.             Set(ByVal value As String)
  52.                 cZipCode = value
  53.             End Set
  54.         End Property
  55.         Friend Property CustPhone As String
  56.             Get
  57.                 Return cPhone
  58.             End Get
  59.             Set(ByVal value As String)
  60.                 cPhone = value
  61.             End Set
  62.         End Property
  63.         Friend Property CustEmail As String
  64.             Get
  65.                 Return cEmail
  66.             End Get
  67.             Set(ByVal value As String)
  68.                 cEmail = value
  69.             End Set
  70.         End Property
  71.  
  72.         Public Sub New()
  73.         End Sub
  74.     End Class
  75.  
  76.     Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
  77.         If Not IsPostBack Then
  78.             ddlCustomer.DataBind()
  79.         End If
  80.         aSelectedCustomer = selectedCustomer()
  81.  
  82.         displayCustomer()
  83.     End Sub
  84. End Class
Add Comment
Please, Sign In to add comment