<%@ Page language="c#" src="EditConfig.aspx.cs" Codebehind="EditConfig.aspx.cs" AutoEventWireup="false" Inherits="XmlSerialization.Client.EditConfiguration" %>
<HTML>
	<HEAD>
<title>第四十五例 XML文件的更新</title>
		<%Response.Expires = -1;%>
		<style type="text/css">
			.heading { FONT-WEIGHT: bold; FONT-SIZE: 12pt; COLOR: #ffffff; FONT-FAMILY: 
			arial } .property { FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: #000000; 
			FONT-FAMILY: arial } .borders { BORDER-RIGHT: black 1px solid; BORDER-TOP: 
			black 1px solid; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid } 
			.edit { FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: yellow; FONT-FAMILY: arial }
		</style>
	</HEAD>
	<body bgColor="#ffffff">
         <span><h3><font face="Verdana">第四十五例 XML文件的更新 </font></h3></span>
		<form runat="server">
			<asp:panel id="pnlAll" Runat="server"> <!-- Compilation -->
			<TABLE class="borders" cellSpacing="0" cellPadding="2" width="450" bgColor="#f7f7f1" border="0">
					<TR>
						<TD class="heading" width="30%" bgColor="#02027a">
							Compilation
						</TD>
						<TD align="right" width="70%" bgColor="#02027a">
				<asp:LinkButton id="lnkEditCompilation" runat="server" cssclass="edit">编辑 </asp:LinkButton>
						</TD>
					</TR>
					<TR>
						<TD colSpan="2">
							&nbsp;
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							Default Language:
						</TD>
						<TD width="70%">
						<asp:Label id="lblCompilationDefaultLanguage" runat="server"></asp:Label>
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							Debug:
						</TD>
						<TD width="70%">
							<asp:Label id="lblCompilationDebug" runat="server"></asp:Label>
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							&nbsp;
						</TD>
						<TD width="70%">
							&nbsp;
						</TD>
					</TR>
					<TR>
						<TD class="heading" width="30%" bgColor="#02027a">
							Custom Errors
						</TD>
						<TD align="right" width="70%" bgColor="#02027a">
				<asp:LinkButton id="lnkEditCustomErrors" runat="server" cssclass="edit">编辑</asp:LinkButton>
						</TD>
					</TR>
					<TR>
						<TD colSpan="2">
							&nbsp;
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							Mode:
						</TD>
						<TD width="70%">
							<asp:Label id="lblCustomErrorsMode" runat="server"></asp:Label>
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							&nbsp;
						</TD>
						<TD width="70%">
							&nbsp;
						</TD>
					</TR>
					<TR>
						<TD class="heading" width="30%" bgColor="#02027a">
							Authetication
						</TD>
						<TD align="right" width="70%" bgColor="#02027a">
			<asp:LinkButton id="lnkEditAuthentication" runat="server" cssclass="edit">编辑</asp:LinkButton>
						</TD>
					</TR>
					<TR>
						<TD colSpan="2">
							&nbsp;
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							Mode:
						</TD>
						<TD width="70%">
					<asp:Label id="lblAuthenticationMode" runat="server"></asp:Label>
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							&nbsp;
						</TD>
						<TD width="70%">
							&nbsp;
						</TD>
					</TR>
					<TR>
						<TD class="heading" width="30%" bgColor="#02027a">
							Trace
						</TD>
						<TD align="right" width="70%" bgColor="#02027a">
				<asp:LinkButton id="lnkEditTrace" runat="server" cssclass="edit">编辑</asp:LinkButton>
						</TD>
					</TR>
					<TR>
						<TD colSpan="2">
							&nbsp;
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							Enabled:
						</TD>
						<TD width="70%">
							<asp:Label id="lblTraceEnabled" runat="server"></asp:Label>
						</TD>
					</TR>
					<TR bgColor="#ffffff">
						<TD class="property" width="30%" bgColor="#ffffff">
							Request Limit:
						</TD>
						<TD width="70%">
							<asp:Label id="lblTraceRequestLimit" runat="server"></asp:Label>
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							Page Output:
						</TD>
						<TD width="70%">
							<asp:Label id="lblTracePageOutput" runat="server"></asp:Label>
						</TD>
					</TR>
					<TR bgColor="#ffffff">
						<TD class="property" width="30%">
							Trace Mode:
						</TD>
						<TD width="70%">
							<asp:Label id="lblTraceMode" runat="server"></asp:Label>
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							&nbsp;
						</TD>
						<TD width="70%">
							&nbsp;
						</TD>
					</TR>
					<TR>
						<TD class="heading" width="30%" bgColor="#02027a">
							Session State
						</TD>
						<TD align="right" width="70%" bgColor="#02027a">
				<asp:LinkButton id="lblEditSessionState" runat="server" cssclass="edit">编辑</asp:LinkButton>
						</TD>
					</TR>
					<TR>
						<TD colSpan="2">
							&nbsp;
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							Mode:
						</TD>
						<TD width="70%">
							<asp:Label id="lblSessionStateMode" runat="server"></asp:Label>
						</TD>
					</TR>
					<TR bgColor="#ffffff">
						<TD class="property" width="30%">
							State Conn String:
						</TD>
						<TD width="70%">
					<asp:Label id="lblSessionStateStateConnectionString" runat="server"></asp:Label>
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							Cookieless:
						</TD>
						<TD width="70%">
					<asp:Label id="lblSessionStateCookieless" runat="server"></asp:Label>
						</TD>
					</TR>
					<TR bgColor="#ffffff">
						<TD class="property" width="30%">
							SQL Conn String:
						</TD>
						<TD width="70%">
				<asp:Label id="lblSessionStateSqlConnectionString" runat="server"></asp:Label>
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							Timeout:
						</TD>
						<TD width="70%">
							<asp:Label id="lblSesionStateTimeout" runat="server"></asp:Label>
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							&nbsp;
						</TD>
						<TD width="70%">
							&nbsp;
						</TD>
					</TR>
					<TR>
						<TD class="heading" width="30%" bgColor="#02027a">
							Globalization
						</TD>
						<TD align="right" width="70%" bgColor="#02027a">
				<asp:LinkButton id="lnkEditGlobalization" runat="server" cssclass="edit"> 
        编辑 </asp:LinkButton>
						</TD>
					</TR>
					<TR>
						<TD colSpan="2">
							&nbsp;
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							Request Encoding:
						</TD>
						<TD width="70%">
					<asp:Label id="lblGlobalizationRequest" runat="server"></asp:Label>
						</TD>
					</TR>
					<TR bgColor="#ffffff">
						<TD class="property" width="30%">
							Response Encoding
						</TD>
						<TD width="70%">
					<asp:Label id="lblGlobalizationResponse" runat="server"></asp:Label>
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							&nbsp;
						</TD>
						<TD width="70%">
							&nbsp;
						</TD>
					</TR>
				</TABLE>
			</asp:panel> 
<!-- 隐藏面板 -->
			<asp:panel id="pnlCompilation" Runat="server" visible="False">
		<TABLE class="borders" cellSpacing="0" cellPadding="2" width="450" bgColor="#f7f7f1"border="0">
					<TR>
						<TD class="heading" width="30%" bgColor="#02027a">
							Compilation
						</TD>
						<TD align="right" width="70%" bgColor="#02027a">
				<asp:LinkButton id="lnkShowAllCompilation" runat="server" cssclass="edit"> 
        显示所有 </asp:LinkButton>
						</TD>
					</TR>
					<TR>
						<TD colSpan="2">
							&nbsp;
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							Default Language:
						</TD>
						<TD width="70%">
							<asp:DropDownList id="ddCompilationDefaultLanguage" runat="server">
								<asp:ListItem Value="C#">C#</asp:ListItem>
								<asp:ListItem Value="VB">VB</asp:ListItem>
								<asp:ListItem Value="JScript">JScript</asp:ListItem>
							</asp:DropDownList>
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							Debug:&nbsp;
						</TD>
						<TD width="70%">
							<asp:DropDownList id="ddCompilationDebug" runat="server">
								<asp:ListItem Value="true"> 
        							True </asp:ListItem>
								<asp:ListItem Value="false"> False </asp:ListItem>
							</asp:DropDownList>
						</TD>
					</TR>
					<TR>
						<TD colSpan="2">
							&nbsp;
						</TD>
					</TR>
					<TR>
						<TD colSpan="2">
				<asp:Button id="btnEditCompilation" Runat="server" Text="提交!"></asp:Button>
						</TD>
					</TR>
				</TABLE>
			</asp:panel>
			<asp:panel id="pnlCustomErrors" Runat="server" visible="False">
		<TABLE class="borders" cellSpacing="0" cellPadding="2" width="450" bgColor="#f7f7f1" border="0">
					<TR>
						<TD class="heading" width="30%" bgColor="#02027a">
							Custom Errors:
						</TD>
						<TD align="right" width="70%" bgColor="#02027a">
		<asp:LinkButton id="lnkShowAllCE" runat="server" cssclass="edit" font-bold="True">显示所有 </asp:LinkButton>
						</TD>
					</TR>
					<TR>
						<TD colSpan="2">
							&nbsp;
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							Mode:
						</TD>
						<TD width="70%">
							<asp:DropDownList id="ddCustomErrors" runat="server">
								<asp:ListItem Value="Off"> 
        							Off </asp:ListItem>
								<asp:ListItem Value="On"> On </asp:ListItem>
							</asp:DropDownList>
						</TD>
					</TR>
					<TR>
						<TD colSpan="2">
							&nbsp;
						</TD>
					</TR>
					<TR>
						<TD colSpan="2">
			<asp:Button id="btnEditCustomErrors" Runat="server" Text="提交!"></asp:Button>
						</TD>
					</TR>
				</TABLE>
			</asp:panel>
			<asp:panel id="pnlAuthentication" Runat="server" visible="False">
		<TABLE class="borders" cellSpacing="0" cellPadding="2" width="450" bgColor="#f7f7f1" border="0">
					<TR>
						<TD class="heading" width="30%" bgColor="#02027a">
							Authentication:
						</TD>
			<TD align="right" width="70%" bgColor="#02027a">
			<asp:LinkButton id="lnkShowAllAuth" runat="server" cssclass="edit"> 显示所有 </asp:LinkButton>
						</TD>
					</TR>
					<TR>
						<TD colSpan="2">
							&nbsp;
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							Mode:&nbsp;
						</TD>
						<TD width="70%">
							<asp:DropDownList id="ddAuthentication" runat="server">
								<asp:ListItem Value="None">None</asp:ListItem>
								<asp:ListItem Value="Windows">Windows</asp:ListItem>
								<asp:ListItem Value="Cookie">Cookie</asp:ListItem>
								<asp:ListItem Value="Passport">Passport</asp:ListItem>
							</asp:DropDownList>
						</TD>
					</TR>
					<TR>
						<TD colSpan="2">
							&nbsp;
						</TD>
					</TR>
					<TR>
						<TD colSpan="2">
			<asp:Button id="btnEditAuthentication" Runat="server" Text="提交!"></asp:Button>
						</TD>
					</TR>
				</TABLE>
			</asp:panel>
			<asp:panel id="pnlTrace" Runat="server" visible="False">
			<TABLE class="borders" cellSpacing="0" cellPadding="2" width="450" bgColor="#f7f7f1" border="0">
					<TR>
						<TD class="heading" width="30%" bgColor="#02027a">
							Trace:
						</TD>
						<TD align="right" width="70%" bgColor="#02027a">
			<asp:LinkButton id="lnkShowAllTrace" runat="server" cssclass="edit"> 显示所有 </asp:LinkButton>
						</TD>
					</TR>
					<TR>
						<TD colSpan="2">
							&nbsp;
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							Enabled:
						</TD>
						<TD width="70%">
					<asp:DropDownList id="ddTraceEnabled" runat="server">
								<asp:ListItem Value="true"> 
        							True </asp:ListItem>
								<asp:ListItem Value="false"> False </asp:ListItem>
							</asp:DropDownList>
						</TD>
					</TR>
					<TR bgColor="#ffffff">
						<TD class="property" width="30%">
							Request Limit:
						</TD>
						<TD width="70%">
			<asp:TextBox id="txtTraceRequestLimit" runat="server" MaxLength="3" columns="3"></asp:TextBox>
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							Page Output:
						</TD>
						<TD width="70%">
							<asp:DropDownList id="ddTracePageOutput" runat="server">
								<asp:ListItem Value="true"> True </asp:ListItem>
								<asp:ListItem Value="false"> 
        						False </asp:ListItem>
							</asp:DropDownList>
						</TD>
					</TR>
					<TR bgColor="#ffffff">
						<TD class="property" width="30%">
							Trace Mode:
						</TD>
						<TD width="70%">
							<asp:DropDownList id="ddTraceMode" runat="server">
								<asp:ListItem Value="Default">Default</asp:ListItem>
						<asp:ListItem Value="SortByCategory">SortByCategory</asp:ListItem>
								<asp:ListItem Value="SortByTime">SortByTime</asp:ListItem>
							</asp:DropDownList>
						</TD>
					</TR>
					<TR>
						<TD colSpan="2">
							&nbsp;
						</TD>
					</TR>
					<TR>
						<TD colSpan="2">
					<asp:Button id="btnEditTrace" Runat="server" Text="提交!"></asp:Button>
						</TD>
					</TR>
				</TABLE>
			</asp:panel>
			<asp:panel id="pnlSessionState" Runat="server" visible="False">
		<TABLE class="borders" cellSpacing="0" cellPadding="2" width="450" bgColor="#f7f7f1" border="0">
					<TR>
						<TD class="heading" width="30%" bgColor="#02027a">
							Session State:
						</TD>
						<TD align="right" width="70%" bgColor="#02027a">
			<asp:LinkButton id="lnkShowAllSessionState" runat="server" cssclass="edit">显示所有 </asp:LinkButton>
						</TD>
					</TR>
					<TR>
						<TD colSpan="2">
							&nbsp;
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							Mode:
						</TD>
						<TD width="70%">
							<asp:DropDownList id="ddSessionStateMode" runat="server">
								<asp:ListItem Value="Off">Off</asp:ListItem>
								<asp:ListItem Value="Inproc">Inproc</asp:ListItem>
								<asp:ListItem Value="StateServer">StateServer</asp:ListItem>
								<asp:ListItem Value="SqlServer">SqlServer</asp:ListItem>
							</asp:DropDownList>
						</TD>
					</TR>
					<TR bgColor="#ffffff">
						<TD class="property" width="30%">
							State Conn String:
						</TD>
						<TD width="70%">
				<asp:textbox id="txtSessionStateStateConnectionString" runat="server"></asp:textbox>
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							Cookieless:
						</TD>
						<TD width="70%">
							<asp:DropDownList id="ddSessionStateCookieless" runat="server">
								<asp:ListItem Value="true"> True </asp:ListItem>
								<asp:ListItem Value="false"> 
        							False </asp:ListItem>
							</asp:DropDownList>
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							SQL Conn String:
						</TD>
						<TD width="70%">
			<asp:TextBox id="txtSessionStateSqlConnectionString" runat="server"></asp:TextBox>
						</TD>
					</TR>
					<TR bgColor="#ffffff">
						<TD class="property" width="30%">
							Timeout:
						</TD>
						<TD width="70%">
			<asp:TextBox id="txtSessionStateTimeout" runat="server" MaxLength="3" Columns="3"></asp:TextBox>
						</TD>
					</TR>
					<TR>
						<TD colSpan="2">
							&nbsp;
						</TD>
					</TR>
					<TR>
						<TD colSpan="2">
				<asp:Button id="btnEditSessionState" Runat="server" Text="提交!"></asp:Button>
						</TD>
					</TR>
				</TABLE>
			</asp:panel>
			<asp:panel id="pnlGlobalization" Runat="server" visible="False">
		<TABLE class="borders" cellSpacing="0" cellPadding="2" width="450" bgColor="#f7f7f1" border="0">
					<TR>
						<TD class="heading" width="30%" bgColor="#02027a">
							Globalization:
						</TD>
						<TD align="right" width="70%" bgColor="#02027a">
		<asp:LinkButton id="lnkShowAllGlobalization" runat="server" cssclass="edit"> 显示所有 </asp:LinkButton>
						</TD>
					</TR>
					<TR>
						<TD colSpan="2">
							&nbsp;
						</TD>
					</TR>
					<TR>
						<TD class="property" width="30%">
							Request Encoding:
						</TD>
						<TD width="70%">
				<asp:TextBox id="txtGlobalizationRequest" runat="server"></asp:TextBox>
						</TD>
					</TR>
					<TR bgColor="#ffffff">
						<TD class="property" width="30%">
							Response Encoding:
						</TD>
						<TD width="70%">
				<asp:TextBox id="txtGlobalizationResponse" runat="server"></asp:TextBox>
						</TD>
					</TR>
					<TR>
						<TD colSpan="2">
							&nbsp;
						</TD>
					</TR>
					<TR>
						<TD colSpan="2">
			<asp:Button id="btnEditGlobalization" Runat="server" Text="提交!"></asp:Button>
						</TD>
					</TR>
				</TABLE>
			</asp:panel>
		</form>
		<p>
		</p>
	</body>
</HTML>
