Method 1.
<%@ Control Language="vb" AutoEventWireup="false" Codebehind="LoginControl.ascx.vb" Inherits="MCADPrac.LoginControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %> <%@ Control Language="vb" AutoEventWireup="false" Codebehind="LoginControl.ascx.vb" Inherits="MCADPrac.LoginControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %> <%@ Control Language="vb" AutoEventWireup="false" Codebehind="LoginControl.ascx.vb" Inherits="MCADPrac.LoginControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %> <%@ Control Language="vb" AutoEventWireup="false" Codebehind="LoginControl.ascx.vb" Inherits="MCADPrac.LoginControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %> <%@ Control Language="vb" AutoEventWireup="false" Codebehind="LoginControl.ascx.vb" Inherits="MCADPrac.LoginControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<style>
BODY { MARGIN: 0px }
.LoginControl { BORDER: 1px solid <% response.write( sBorderColor)%> ;}
.LoginControl TABLE { BORDER-TOP-WIDTH: 2px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 100%; BORDER-RIGHT-WIDTH: 0px }
.LoginControl .Text { FONT-SIZE: x-small; COLOR: green; FONT-FAMILY: verdana, arial, helvetica }
</style>
sBorderColor is variable in vb code.
<%@ Control Language="vb" AutoEventWireup="false" Codebehind="LoginControl.ascx.vb" Inherits="MCADPrac.LoginControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %> <%@ Control Language="vb" AutoEventWireup="false" Codebehind="LoginControl.ascx.vb" Inherits="MCADPrac.LoginControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %> <%@ Control Language="vb" AutoEventWireup="false" Codebehind="LoginControl.ascx.vb" Inherits="MCADPrac.LoginControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %> <%@ Control Language="vb" AutoEventWireup="false" Codebehind="LoginControl.ascx.vb" Inherits="MCADPrac.LoginControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %> <%@ Control Language="vb" AutoEventWireup="false" Codebehind="LoginControl.ascx.vb" Inherits="MCADPrac.LoginControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<style>
BODY { MARGIN: 0px }
.LoginControl { BORDER: 1px solid <% response.write( sBorderColor)%> ;}
.LoginControl TABLE { BORDER-TOP-WIDTH: 2px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; WIDTH: 100%; BORDER-RIGHT-WIDTH: 0px }
.LoginControl .Text { FONT-SIZE: x-small; COLOR: green; FONT-FAMILY: verdana, arial, helvetica }
</style>
sBorderColor is variable in vb code.
Imports System.web.UI.WebControls
Imports System.Web.UI.HtmlControls
Public Class LoginControl
Inherits System.Web.UI.UserControl
Private sUserName As String
Public sBorderColor As String
Method 2.
• | Simple property (syntax for a customer):
|
• | Collection (syntax for an order):
|
• | Expression (syntax for a contact):
|
• | Method result (syntax for the outstanding balance):
|