You are on page 1of 43

DNN

DNN

DNN

.net

VS DNN DNN
DNN
DNN
DNN VS
C .net
web

DNN John DNN DNN


http://www.dnnmix.com/

DNN
DNN
DNN

win2003 server sp1 vs2005 sql2005 sp1 IIS


DNN StarterKit
windows vista vs2008 sql2005
IIS
DNN StarterKit StarterKit
StarterKit
DNN
windows XP Windows DNN

vs2005 vs2008 notepad


sql2005mysql
DNN StarterKit
IIS IIS vs Debugging IIS
IIS
DNN dotnetnuke DNN DNN
DNN4.9.3

DNN windows DNN


DNN IIS IIS

DNN DNN
DNN
fat32 ntfs DNN
network services
NTFS

Fat32 network services


1 DNN

network service

fat32 DNN ntfs

DNN
DNN

sql2005
sql2005 management studio

DNN_LH_493 sql2005

DNN

sql server

DNN db_owner

DNN

DNN web.config

vs2008Open Web Site DNN

DNN Solution Exploer web.config

<connectionStrings>
<!-- Connection String for SQL Server 2005 Express -->
<!--<add
name="SiteSqlServer"
connectionString="Data Source=.\SQLExpress;Integrated Security=True;User
Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"
providerName="System.Data.SqlClient" />-->
<!-- Connection String for SQL Server 2000/2005
<add

-->
name="SiteSqlServer"

connectionString="Server=192.168.1.10;Database=DNN_LH_493;uid=DNN_LH493;pwd=lh49
3;" providerName="System.Data.SqlClient" />
</connectionStrings>
<appSettings>
<!-- Connection String for SQL Server 2005 Express - kept for backwards
compatability - legacy modules
<!--<add

-->

key="SiteSqlServer"

value="Data

Source=.\SQLExpress;Integrated

Security=True;User
Instance=True;AttachDBFilename=|DataDirectory|Database.mdf;"/>-->

<!-- Connection String for SQL Server 2000/2005 - kept for backwards compatability
- legacy modules -->
<add

key="SiteSqlServer"

value="Server=192.168.1.10;Database=DNN_LH_493;uid=DNN_LH493;pwd=lh493" />

DNN
IIS IIS IIS IIS
Default.aspx
IIS VS debugging
Solution Exploer

F4 Properties Port number 80Use dynamic ports falseVirtual Path


/

80
80 vs debugging IIS

VS2008 DNN F5 debug Start


DNN DNN

debugging

CustomTypicalAuto Typical
English
typical next

DNN DNN
Test Permissions
Test Permissions Your site passed the permissions check.
next,

web.config

Test Database Connection Connection


Success
next

DNN DNN

dotnetnuke.com

next

Completed Installing Database

Scripts

Completed Installing Database Scripts

DNN
DNN
DNN DNN

DNN next

DNN DNN HTML Links


DNN

DNN

next

DNN DNN
DNN
next
DNN next

DNN
next
DNN

DNN
Finished(Goto Site) DNN

DNN
DNN DNN
DNN
DNN Login

DNN

DNN DNN

aotu DNN


DNN DNN
DNN DNN DNN

AdminHost

Admin HOST DNN


HOST Languages DNN4.9.3

Languages

Install Language Pack

dotnetnuke.net browse

DNN
Install Language Pack

return

DNN


DNN

Portals/_default/skin(
Portals/0/skin(0 1,2...)

.aspx .aspx
.aspx //

DNN
zip

htmlXML ascx DNN


ascx vs ascx html
xml

html []

: ,,.
.

VS2008 HTML+XML

XMLHTML CSS
CSS images

HTML HTML XML


bofeitgSKIN CSS

bofeitgSKIN.html

HTML
skin.css
<!DOCTYPE

html

PUBLIC

"-//W3C//DTD

XHTML

1.0

Transitional//EN"

"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>
</title>
<link rel="stylesheet" type="text/css" href="skin.css" />
</head>
<body>

<div class="top">
<div class="nav">
<ul>
<li><a href="#">

<br

/><span>Domestic service</span></a></li>

<li
class="width1"><a
care</span></a></li>

href="#">

<li
class="width1"><a
cleaning</span></a></li>

href="#">

<li class="width2"><a href="#">


decoration</span></a></li>

<br

</ul>
</div>
</div>
<div class="banner">
<div class="lt">
<ul>

</a></li>
href="#"></a></li>
href="#"></a></li>
href="#"></a></li>
href="#"></a></li>

<li><a href="#">
<li><a
<li><a
<li><a
<li><a
</ul>
</div>
<div class="rt">

<img src="images/001_15.jpg" />


</div>
</div>
<div class="main">
<div class="left">
<div class="leftBox">

<br
<br

/><span>Health
/><span>Cleaning

/><span>Home decoration

<h1>
<ul>

</h1>
</a></li>
href="#"></a></li>
href="#"></a></li>
href="#"></a></li>

<li><a href="#">
<li><a
<li><a
<li><a
</ul>
<div

class="more">

<a href="#"><img src="images/001_55.gif" alt="


</div>
</div>
<div class="leftBox">
<h1>
<ul>

</h1>

</a></li>
href="#"></a></li>
href="#"></a></li>
href="#"></a></li>

<li><a href="#">
<li><a
<li><a
<li><a
</ul>
</div>

<div class="leftBox">
<h1>
<ul>

</h1>

</a></li>
href="#"></a></li>

<li><a href="#">
<li><a
</ul>
</div>

<div class="leftBox">
<h1>
<ul>

</h1>
</a></li>
href="#"></a></li>

<li><a href="#">
<li><a
</ul>
</div>

<div class="contact">

010-67649401
</div>

</div>

"

/></a>

<div class="right">
<div class="location"><h1>
<div class="box">

</h1></div>

<!--begin-->
<img

src="images/001_38.jpg"

style="

display:block;

margin:0

auto;

margin-top:80px; margin-bottom:80px;"/>
<!--end-->
</div>
</div>
<div class="footer">
Copyright &copy;
Reserved<br />

2009

anjiajz.com

All

Rights

14 101
010-67649401 ICP09019135
</div>
</div>

</body>
</html>

DNN
<body></body> Pane DNN
ContentPane
<div id="All">
<div class="top1">
[LOGO]
</div>
<div class="top2" id="topMuenPane" runat="server">
</div>
<div class="banner">
<div id="BanLeftMuenPane" runat="server" class="banner1"></div>
<div class="banner2" id="BanRightMuenPane" runat="server"></div>
</div>
<div class="main">
<div class="left" runat="server" id="leftPane">

</div>
<div class="right">
<div class="location" id="submeunPane" runat="server"></div>
<div class="box" id="ContentPane"

runat="server">

<!--begin-->

<!--end-->
</div>
</div>
<div class="footer" id="copyrightPane"

runat="server">

</div>
</div>
</div>
<div>[NAV]</div>
<div>[LOGIN]</div>

bofeitgSKIN.html
DNN<div><td>IDrunat=serverpane
<div class="top2" id="topMuenPane" runat="server">
</div>

id topMuenPan DIV pane, DNN

<div class="top1">
[LOGO]
</div>

div[LOGO]DNNlogo
skin.css
* { font-size:12px;}
body { font-family:arial,""; margin:0; padding:0; background:url(images/line1.gif) repeat-x left top;
padding-top:7px;font-size:12px;color:#000;}
ul,ol { list-style:none;}
div,form,img,ul,ol,li,dl,dt,dd {margin:0; padding:0; border:0;}
h1,h2,h3,h4,h5,h6 { margin:0;padding:0;}
table,td,tr,th {font-size:12px;}
a {color: #1f3a87; text-decoration: none;}
a:hover {color: #ff34aa; text-decoration: underline;}
.divclear { clear:both; font-size:0px;}

.top { clear:both; width:805px; height:80px; margin:0 auto; background:url(images/logo.gif) no-repeat


left top;}
.top .nav { float:right; width:606px; height:80px;}
.top .nav ul li { display:block; float:left; width:150px; height:60px; background:url(images/line2.jpg)
no-repeat left top; text-align:center; padding-top:20px;}
.top .nav ul li.width1 { width:125px;}
.top .nav ul li.width2 { width:200px;}
.top .nav ul li a { color:#b88e2a; text-decoration:none; font-weight:bold; font-size:14px;
letter-spacing:2px; line-height:20px;}
.top .nav ul li a:hover { color:#ff34aa; text-decoration:none; font-weight:bold}
.top .nav ul li a span { font-weight:normal; font-size:11px; letter-spacing:0; font-family:Arial}
.top .nav ul li a:hover span { font-weight:normal;}

.banner { clear:both; width:805px; height:181px; margin:0 auto; margin-bottom:30px;}


.banner .lt { float:left; width:200px; height:181px; background:url(images/001_12.jpg) no-repeat left
top;}
.banner .lt ul { width:153px; margin:0 auto; margin-top:15px;}
.banner .lt ul li { line-height:25px; height:27px; background:url(images/001_15.gif) no-repeat left
bottom;}
.banner .lt ul li a { display:block; background:url(images/001_21.gif) no-repeat 4px 7px;
padding-left:30px; color:#fff; text-decoration:none; font-size:14px;}
.banner .lt ul li a:hover { text-decoration:none; color:#ff0;}
.banner .rt { float:right; width:604px; height:181px; overflow:hidden;}

.main { clear:both; width:805px; height:400px; margin:0 auto; }


html>body .main { height:auto; min-height:400px;}
.left { float:left; width:201px; height:400px;}
html>body .left { height:auto; min-height:400px;}
.right { float:right; width:588px; height:400px;}
html>body .right { height:auto; min-height:400px;}

.more { text-align:right; padding:12px 0; padding-bottom:0}

.location { clear:both; background:url(images/001_33.gif) no-repeat left


padding-left:40px; line-height:26px;}
.location h1 { font-weight:normal; color:#000; font-size:14px; letter-spacing:2px;}

top;

height:26px;

.leftBox { clear:both; margin-bottom:12px;}


.leftBox h1 { height:26px; background:url(images/001_31.gif) no-repeat left top; height:26px;

line-height:26px; text-align:center; font-size:14px; color:#000; letter-spacing:2px; font-weight:normal;}


.leftBox ul { padding:10px 0;}
.leftBox ul li { clear:both; display:inline;}
.leftBox ul li a { display:block; height:25px; line-height:22px; color:#000; text-decoration:none;
background:url(images/001_39.gif) no-repeat 8px 9px; padding-left:18px;}
.leftBox ul li a:hover { color:#ff34aa; text-decoration:none;}
.box { clear:both; padding:10px;}
.leftBox#two ul li a { background:url(images/001_66.gif) no-repeat 8px 9px;}
.footer { clear:both; border-top:1px #e1e1e1 solid; padding:25px 0; text-align:center; line-height:25px;}
.contact { clear:both; width:201px; height:23px; background:url(images/001_72.jpg) no-repeat left top;
padding-top:35px; text-align:center; color:#000;}

HTML CSS
XML bofeiteSKIN.doctype.xml
<SkinDocType>
<![CDATA[<!DOCTYPE html PUBLIC "-//W3C//DTD
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">]]>
</SkinDocType>

XHTML

1.0

Transitional//EN"

bofeiteSKIN
bofeiteSKIN.jpg
zip

DNN host

StarterKit
StarterKit
App_Code ascx
DesktopModules

host DNN

Run as Script
DNN

DesktopModules Test

Test

Test.ascx

Test.ascx.vb
Imports DotNetNuke
Imports System.Web.UI
Imports System.Collections.Generic
Imports System.Reflection
Imports DotNetNuke.Security.PortalSecurity
Partial Class DesktopModules_Test_Test
'Inherits System.Web.UI.UserControl
Inherits Entities.Modules.PortalModuleBase

Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)


Handles Button1.Click
Me.TextBox2.Text = Me.TextBox1.Text
End Sub
End Class

bulid bulid page,

bulid
host Module Definitions

Create Module Definition

Test Test.ascx
Test DNN
Test

Test

test

ContentPane Text/html Enter Title

Text/html
Test

test test ContentPane


DNN
DNN

DNN

web.config

DNN web.config

DNN http://www.bofeitg.com
DNN

host

ghost

You might also like