Monday, October 12, 2009

Dreamweaver compose builds memoir of Blog whole journey (12)- uploads installation

Dozenth chapter Upload Doking's BLOG to long-range space

It is normal to arrive to make Doking's BLOG program uploads after long-range space move, point of a few installation introduces below.

1. The Doking's BLOG program that this tutorial offers is with site root catalog is given priority to, because want to use Web.config to configure catalog of file, Bin and Aspnet_client script library, program of card of experience of data set of the ability below the root list that these 3 files and catalog must put in the site, window moves normally.

2. Catalog of the source program file of this tutorial and Web.config configuration file, Bin and Aspnet_client script library are put in same catalog, position of these 3 files is not kinetic, if think the secondary level directory that puts Doking's BLOG page below root catalog is medium, for instance such:

Http://localhost/dkblog/

Above in the address, dkblog list sets file of Doking's BLOG page, besides Web.config catalog of configuration file, Bin and Aspnet_client script library upload root catalog China and foreign countries, other is all the file can duplicate in Dkblog catalog.

3. Because Dreamweaver MX deposits the string of join database in Web.config configuration file, open Web.config to configure a file, if graph 12-1 red encircles place to show,can seeing is a database the physical method in this locality.

Graph 12-1 Web.config configures document part content

Because upload long-range space, its physics method is common won't the physical way of this locality is same. The server variable that also cannot use and so on of such as Server.MapPath in Web.config configuration file will get the database physics way of long-range space.

Can get a database to be in through coming with lower part law the method of true list physics of long-range main engine. Assume, be as follows in the domain name address that uploads long-range space:

Http://www.pconline.com.cn/dkblog

Visit the Dkblog of secondary level directory of long-range and fictitious lead plane through the fictitious address above, database file protects existence Dat folder in, accordingly actual and fictitious address is: Http://www.pconline.com.cn/dkblog/dat

Dynamic page of ASP.NET VB of a blank is built in Dreamweaver, switch arrives code view, input following code:

<%=server.MapPath("") %>

Save for Dkurl.aspx, browse in IE, if pursue,as a result 12-2 place is shown.

Graph 12-2 Test physical way

The physical way that can see Dkurl.aspx is in is: D\dkblog\ , the physical way nature of that database is: D:\Dkblog\dat\dkblog.mdb.

After the physical way that gets long-range leader, open Web.config to configure a file, the physical method of modification database.

Remind: Come here Doking ' the program development of S BLOG already was finished. This procedure is very simple, but be helpful for abecedarian developing a database. The BLOG program that uses actually actually very complex, a lot of skill remain the reader goes thoughtful with research.

No comments:

Post a Comment