Default.aspx
上传用户:zhuzg88
上传日期:2018-04-24
资源大小:868k
文件大小:2k
源码类别:

SilverLight

开发平台:

C#

  1. <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head runat="server">
  5.     <title>SilverlightDesktop</title>
  6. </head>
  7. <body>
  8.     <form id="form1" runat="server">
  9.     <div>    
  10.         <img alt="SilverlightDesktop.net" src="images/SilverlightDesktop_small.gif" 
  11.             style="width: 264px; height: 122px" /></div>
  12.     <asp:LinkButton ID="lnkLogin" runat="server" PostBackUrl="~/Login.aspx" 
  13.         Visible="False">Login</asp:LinkButton>
  14.     <asp:LinkButton ID="lnkLogOut" runat="server" onclick="lnkLogOut_Click" 
  15.         Visible="False">Log Out</asp:LinkButton>
  16.     <br />
  17.     <asp:LinkButton ID="lnkSetup" runat="server" PostBackUrl="~/SetupWizard.aspx" 
  18.         Visible="False">Click 
  19.     here to set-up SilverlightDesktop</asp:LinkButton>
  20.     <br />
  21.     <asp:LinkButton ID="lnkAdministration" runat="server" 
  22.         PostBackUrl="~/Administration/Default.aspx" Visible="False">Go to 
  23.     Administration</asp:LinkButton>
  24.     <br />
  25.     <br />
  26.     <asp:LinkButton ID="lnkSilverlightDesktop" runat="server" 
  27.         PostBackUrl="~/SilverlightDesktop/SilverlightDesktop.aspx" Visible="False">Go to your 
  28.     SilverlightDesktop</asp:LinkButton>
  29.     <br />
  30.     <br />
  31.     <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
  32.         <Columns>
  33.             <asp:TemplateField HeaderText="Desktops">
  34.                 <ItemTemplate>
  35.                     <asp:HyperLink ID="HyperLink1" runat="server" 
  36.                         NavigateUrl='<%# Eval("ID", "~/SilverlightDesktop/SilverlightDesktop.aspx?ID={0}") %>' 
  37.                         Text='<%# Eval("DesktopName", "{0}") %>'></asp:HyperLink>
  38.                 </ItemTemplate>
  39.                 <HeaderStyle BorderColor="Black" BorderStyle="Solid" BorderWidth="1px" 
  40.                     HorizontalAlign="Left" />
  41.             </asp:TemplateField>
  42.         </Columns>
  43.     </asp:GridView>
  44.     </form>
  45. </body>
  46. </html>