Of article discussion is to be below situation of Web standard all-pervading, the fixed position of website programmer and the website project that how cooperate development to accord with Web standard with stylist.
The reader that the article suits is the division of labor below traditional TABLE layout not be very clear programmer.
1: Standard of 皐 Eb, the job that lets you becomes more simple.
Web standard is hasten of general trends place, regard a website as programmer so. You must brainwashing, must go learning Web standard. Go knowing Html label afresh, go knowing the code that how lets a program output a page to need.

Dim OHtml
Set Rs=server.createobject(”adodb.recordset” )
Sql = “select Top 10 Id, title From Tbl_News Order By Id Desc “
Rs.open Sql, conn, 1, 1
OHtml="<ul> "
Do While Not Rs.eof
OHtml=oHtml&"<li><a Href=""shownews.asp? Id= “&Rs(”id” )&&Rs(”title” )&&Rs(”title” )&"</a></li> "
Rs.movenext
Loop
OHtml=oHtml&"</ul> "
Rs.close
Set Rs=nothing
Response.write (oHtml)
And if be traditional TABLE position,fall, the HTML code that programmer should write is met a lot of more, should draw up TABLE, want judgement when to output TR to come line feed, should add before in every news an IMG will output the small icon, caption length that should control output with the program. All jobs need to give page code first, programmer ability goes drawing up this paragraph of program.
To programmer, you should regard Web standard as is a kind of good news, you should go to it reading euqally when Bible, go understanding page code what to need after all, after understanding, you can discover. You are much more relaxed than wanting before. What pay attention to as a result of Web standard is expression and content photograph are broken away from, and the program is in charge of content data only. From now on you need to consider how to be controlled with program code no longer lie between change color, group to divide an output to wait a moment all right. You need to do, output the directest content to the page namely, without any illuminative content.
If if you are,be being developed with.net of course, you are OK a bit more complete. You can put working emphasis completely in establish a target, kind visit of library, data, to expression the layer provides a means can. The case of below makes an item before me, should have bit of referenced value.
2: Flood dragon of condition silk ribbon protected label of TML of quail 肏 to hold back your line of sight.
If you feel you are stinking really trival HTML label, and oneself study direction also is absent the expressional layer of the website, then you say good-bye thoroughly with HTML label.
The company that I once developed in traditional desktop software works, programmer won’t HTML, they must let help again when website project is close. We are taking the anatomize of a few example that Visual Studio.Net 2003 takes oneself, according to object-oriented structuralization statified develop pattern, also can first-rate undertake assorted. It is with the development of news module exemple:
The first pace: Website programmer can undertake by demand analysis the database is designed, you can be in charge of building a list, write memory process. This kind thing programmer is exceedingly familiar.
The 2nd pace: Definition object. Change the information target of the website, for instance:
Public Class News
Protected _id As Integer
Protected _typeId As Integer
Protected _title As String
Protected _author As String
Protected _original As String
Protected _updateTime As DateTime
Protected _content As String
Protected _clickCount As Integer
Public Property Id() As Integer
Get
Return _id
End Get
Set(ByVal Value As Integer)
_id = Value
End Set
End Property
Public Property TypeId() As Integer
Get
Return _typeId
End Get
Set(ByVal Value As Integer)
_typeId = Value
End Set
End Property
Public Property Title() As String
End Property
Public Property Author() As String
End Property
Public Property Original() As String
End Property
Public Property UpdateTime() As DateTime
End Property
Public Property Content() As String
End Property
Public Property ClickCount() As Integer
End Property
End Class
Resemble such, try all watches in the website the object is changed. Define the record volume related the object again next, what define above is individual news object, define the record volume of a news again.
Public Class Newss
. . . . . .
End Class
The 3rd pace: Define access method of data of a common.
Definition a few operate the common method of process of database, executive memory.
The 4th pace: Write the methodological layer that is based on an object. Be like:
Public Function ReadNews(ByVal ID As Integer) As News
End Function
What function returns is object of a news. According to functional need, still can define a few relevant function commonly, be like:
‘ is read take news list
Public Function ReadNewss(ByVal NewsType As ENewsType, byVal NCount As Integer) As News
End Function
‘ increases one news
Public Function InsertNews(ByVal N As News) As Integer
End Function
‘ replaces a news
Public Function UpdateNews(ByVal N As News) As Integer
End Function
Delete a news
Public Function DeleteNews(ByVal ID As Integer) As Integer
End Function
Such coming that do, website development can divide didymous elephant layer, data to visit layer, method layer, expression layer. And the method that programmer needs to offer expressional layer place to need only. Come so, when expressional layer needs to show news list, page stylist needs to use the Repeater in.net to accuse only, following code:
<asp:REpeater ID=”topNewsList” Runat=”server” >
<HeaderTemplate>
<ul>
</HeaderTemplate>
<ItemTemplate>
<li><a Href="shownews.asp? Id=<%#Container.DataItem("id")%>"><%#Container.DataItem("title")%></a></li>
</ItemTemplate>
<FooterTemplate>
</ul>
</FooterTemplate>
</asp:REpeater>
And we need to add only in the program code that behaving a layer:
TopNewsList.DataSource = New Facade.newsFacade().ReadNewss(eNewsType, newsCount)
Such word, programmer basically can be broken away from completely with HTML. And such word, the member of whole project group is OK and collateral the job. Very can apparent land improves the development efficiency of whole project. Besides now of Web2.0 mode arisen, to tiring-room database development raised taller requirement. Wait for a website like fabaceous valve net, 365Kit, the database mining work of tiring-room is very complex. Be in so division of labor is clear today, besides HTML code, other has a lot of mainer jobs to await website programmer to do.
3: Does こ of ⒐ of of silk of bank of of Huan of argon of exhausted of bail of accept of male of travel of the miscellaneous that don’t have drip Α ?
If you felt to break away from familiar HTML code, if you are hated to part with a bit, never mind. Flat the where the wind and the waves are highest that promotes oneself Web technology. Do to become the downstage development engineer with products plan close relationship.
