: WEB- Microsoft Visual Studio 2005 :
- -;
Web-;
;
Web-.
: Microsoft Visual Studio 2005 Web- , , , .
:
, -, .
Microsoft Visual Studio 2005 Web- :
-;
;
.
Web- -.
, , , : , ; ; ; ; ;
-
-, , . - , , ( ).
- , . , -, ASP.NET -, - . - - :
;
ASP.NET .
, -, - , . - Web-.
Web-, -, :
Web-site;
1 Web- ASP.NET
Web-, . , default.aspx, ;
Solution Explorer, Add New Item . Add New Item , :
Master Page;
|
|
MasterPage.master;
( C#).
Place code in separate file;
Add, -.
2. ContentPlaceHolder
-, ContentPlaceHolder, . - (.2). - , ASP-. , . 3 -.
3 -
- , , , :
Web-site, -.
Solution Explorer, , -, Add New Item .
Add New Item , :
: Web Form.
Select Master Page.
Add, Master Page, - (.4). , OK.
4 -
- , , -, . - , - (. .5)
5 -
5 -, -. , - . :
ASP , ( .aspx.), - (MasterPage.master).
ContentPlaceHolder ( ). .
Solution Explorer View In Browser
-, - , :
<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
CodeFile=".aspx.cs" Inherits="" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>
@Page , , -, .
<asp:Content> ContentPlaceHolder , Runat="Server". -.
|
|
- ContentPlaceHolder, .
- -, < asp:Content > ContentPlaceHolder -.
-, ASP.NET ContentPlaceHolder -, .
6 , - -
, -, -, <html> </html>, <head>, <body> </body> <form> </form>. -.
Microsoft Visual Studio 2005 , Web-. , , :
-, -;
;
.
-, .
, , , Source :
<html> , . ( < html></html>, <head>, <body> </body> <form> </form>).
<asp:Content> </asp:Content>, , ID=, ContentPlaceHolderlD=, Runat="Server", ContentPlaceHolderlD - ContentPlaceHolder -.
MasterPageFile -.
- Web-. . -, . Web- .
CSS
, :
Style Format Style Properties;
. Microsoft Visual Studio 2005 Style Builder, 7.
CSS , . . CSS . CSS http://www.w3.org/Style/CSS.
CSS , . Web-, . , , .
7 Style Builder CSS
:
New File File Solution Explorer, Add New Item.
|
|
Add New Item Style Sheet, , , , Add.
1 CSS
WWW | VS 2005 | |
Tape Selector | Element Name | HTML . , , td <td>. |
Class Selector | Class Name | , . , , error, , error. |
ID selector | Element ID | , . , #test , ID= "test". |
, , CSS (.1). 1 .
. :
, ({}).
Add Style Rule Styles, Add Style Rule, 8
8 Add Style Rule
Add Style Rule, , : Element, Class Name, Element ID. .
, . , TABLE.test , <TABLE class = "test">. :
:
Optional Element;
;
, (>). Style Rule Hierarchy.
OK, .
Style Rule Hierarchy, OK, Microsoft Visual Studio 2005 , , , .
, :
IntelliSense.
Build Style Styles.
Build Style .
9 , Microsoft Visual Studio 2005 . Outline CSS, , .
WEB- :
Web-, , :
Design, Solution Explorer Web-.
DOCUMENT Properties, StyleSheet. , .
9
, , .
, Web- .
|
|
(CSS), , Web-. Microsoft Visual Studio 2005 ( ) ( IntelliSense).
, , . :
Web Site, .
Web Site, Add Folder , . , Site App_Themes, Microsoft Visual Studio 2005 , Theme1, .
Theme1. , , . , Web-. , .skin .css . (.10)
10 "" : "", "", "", ""
ASP.NET 2.0 .skin . , .skin . , ASP.NET , . .skin :
, Add New Item .
Add New Item Skin File, , Add. Microsoft Visual Studio 2005 skin .
, .
:
<asp:RadioButtonList runat = "server"/>
<asp:DropDownList runat = "server"/>
<asp:TextBox runat = "server"/>
, , Web-. skin , Web- .
, . , skin , Save File.
Skin Web-, , .
, , , . , . , "" "", :
App_Themes/, .css.
App_Themes/, .css
"" 11.
11 "" ""
Web- Web-. Web-, :
Web- Microsoft Visual Studio 2005;
DOCUMENT Properties;
Theme, .
, Web-, web.config :
web.config;
<system.web> </system.web>. web.config , .
, ( ), .
<system.web>
<pages theme = ""/>
</system.web>
Web- , , . Web- , . :
|
|
1. Web.sitemap, Web-.
2. Menu, Web.sitemap .
3. TreeView, Web.sitemap .
4. SiteMapDataSource, (Web.sitemap) (TreeView Menu).
Web- .
Web- , :
Web-, , Add New Item.
Add New Item Site Map.
, Web.sitemap, . Add.
Web.sitemap, Web-. XML , Microsoft Visual Studio 2005 . Web.sitemap :
<?xml version="1.0" encoding="utf-8"?><siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" > <siteMapNode url="" title="" description=""> <siteMapNode url="" title="" description="" /> <siteMapNode url="" title="" description="" /> </siteMapNode></siteMap>:
<?xml> , XML, .
< siteMap > </siteMap> XML , .
<siteMap> <siteMapNode>. ( , <siteMapNode> , </siteMapNode> ).
<siteMapNode> </siteMapNode> <siteMapNode>. . .
<siteMapNode> <siteMapNode> ..
, Web- "-" (.12), Web.sitemap , 13.
12 Web- "-"
13 Web- "-"
<siteMapNode> , :
1. URL , . URL , . <siteMapNode>, , URL. , , .
2. TITLE , , .
3. DESCRIPTION , , . , .
Web.sitemap , :
1. - , .
2. Toolbox Data SiteMapDataSource . S iteMapDataSource1. .
3. Toolbox, Navigation, Menu , .
4. Microsoft Visual Studio 2005 14, Choose Data Source SiteMapDataSource1, 2. , .
14
, , Properties. Orientation, Horizontal Vertical.
Horizontal Top-level . .
Vertica Top-level . .
Windows Explorer, TreeView Navigation. (+) (-), .
:
, .
Toolbox Data SiteMapDataSource . SiteMapDataSource1. .
Toolbox, Navigation TreeView , .
Microsoft Visual Studio 2005 , Choose Data Source SiteMapDataSource1. , (.15).
15 -
, SiteMapPath. SiteMapPath . SiteMapPath .aspx Web-, -. Toolbox Navigation SiteMapPath , .
Menu TreeView, S iteMapPath SiteMapDataSource, Web.sitemap. , .
, , Web-:
1. SiteMapDataSource , web.sitemap. Menu TreeView.
2. Menu ,
3. TreeView .
4. SiteMapPath web.sitemap .
1
Web- "-", , .
: . 12 , , : , , . , 12 , 12 . : , , , , . , 60 .
-:
;
.
- :
- -
- : " " " "
- , : , , , 2011. E-mail [email protected]
ContentPlaceHolder ,
,
- , .
- , .
- .
2
, .
CSS Skin . CSS ( , ), . Skin .
CSS :
___________________________________________
______________________________________________
______________________________________________
______________________________________________
______________________________________________
______________________________________________
3
. Web-:
DESCRIPTION .
Menu .
" " TreeView, - " "
" " TreeView, - " "
- SiteMapPath.
:
1. . -, -?
2. ? ?
3. . .Skin ?
4. Web-?
5. Menu, TreeView, SiteMapDataSource Web-?
6