Code separation
Index.asp-----------------------------------------------------------------------' This is the code used to load and display the template.' How to clean it '!!! :)Sub Go ()Dim otemplate
Set otemplate = new template
With Otemplate.
Control listview controls are often used when writing programs, and are a useful control. However, when more data is displayed (the report style displays the data, similar to the detailed view of the explorer), it looks inconvenient. You may be
Control picsep,text1,text2 in controls form
Option Explicit
Private Sub Form_Load ()
Picsep.borderstyle = 0
Picsep.width = 50
Picsep.mousepointer = Vbsizewe
End Sub
Private Sub form_resize ()
On Error Resume Next
Text1.move 0, 0, Picsep.left,
asp.net|datagrid| Access | Control to access the values of all controls in the DataGrid in ASP.net, you can traverse each control in the DataGrid: The following is the ASPX code and the scripting code "vb.net" that implements this
Excel|word| export Excel can also export reports to Excel and Word for output in vb.net, producing professional-level reports. The actions are as follows: (Note: First you need to add a reference, select Com--> Select Microsoft Word Object Library
datagrid|excel| Data | Download Imports System
Imports System.Text
Namespace Toexcel
' Function: The datagrid in the ASP.net to generate Excel file downloads.
' Mountains improvement: 1, Support Chinese 2, hidden column does not show
' Date: 2002.10
Excel|word| export Excel to export reports in. NET environment Excel and Word lihonggen0 (original)
In the VB6 development environment, I used Excel as a report, in. NET environment development, I use Crystal Report. But vb.net can also export
Server | control | Data data Binding server control
Data Binding Overview and syntax
ASP.net introduces a new declarative data-binding syntax. This very flexible syntax allows developers not only to bind to a data source, but also to bind to a
command| Data | database using System;
Namespace Com.joybase.DB
{
The database operations class, through the external interface of this class, can obtain the following characteristics:
1. Do not need to distinguish between database types, but to
Paging ASP. NET DataList and DataRepeater provide a simple and quick way to show, in which we can use is to enable us to control the emission style of the data at will! Unfortunately, they're not like the DataGrid, There is a built-in paging
Design Factory method
The FACTORY method
We have learned the Simple factory model (simplicity Factory pattern), the idea of factory (Factory) throughout the entire object-oriented programming (OOP) and other design patterns throughout. such as:
Design (connected to the page)
Straight Seeding Class
In the practical application of this applet, it is found that most of the work is done in the straight seeding class. We instantiate the Straightseeding class, copying and modifying the
Connected)
The specific process is as follows:
(1) First set up the database configuration file, we are designated here as Database.xml, of course, can also be changed to other names.
Create a mapping file Customer.xml
datagrid| solution in the application, I need to add a blank row after each 10 record in a DataGrid, we can simply modify the DataTable and write some code for the ItemDataBound event in the DataGrid. The following article will explain how to do
Attach all overloaded versions of the Dbdataadapter.update method
n Overloads Public Function Update (ByVal datarows () as DataRow) as Integer
n Overrides Overloads public Function Update (ByVal DataSet as DataSet) as Integer Implements
Capital | currency ' function module: Digital to English (currency) capital
' Public Function numbertostring (number as Double) as String
' Call form: Debug.Print numbertostring (1234.32)
' Description: Maximum support 12 digits, accurate two digits
DataGrid if exists (SELECT * from dbo.sysobjects where
id = object_id (N ' [dbo].[ People] and OBJECTPROPERTY (ID, N ' isusertable ') = 1)
drop table [dbo]. [People]
Go
CREATE TABLE [dbo]. [People] (
[Pkid] [INT] IDENTITY (1, 1) not
Take a look at the following example:
The data table structure is as follows:
Generated property members and added, updated code:
' Autothrcode automatic generation of three-tier structure business logic layer code
' Isdotnet All rights
Access to | data database tables
Tbl_teacher
data field Name
Type
Description
Teaid
Int
Automatic numbering
Teacode
Char (20)
Teacher Employee Number
Teaname
Nchar (10)
?
Teagender
Bit
?
Teanation
Nchar (6)
?
Teaage
TinyInt
?
Tbl_
Variables | data | Data type Variant variables are formatted with OLE definitions, can hold any type of data, and the format of the following diagram holds some variables in 16 bytes.
0-1
2-7
8-15
VarType
Unused
Value
The No. 0 and 1 bytes
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service