asp.net,網頁層與div的資料互動

iDotNetSpace發表於2008-09-28

在我做的那個模組裡涉及到div的相對位置的設定,網頁層與div顯示層之間資料的傳遞,之前我對div根本就不瞭解,經過這麼一折騰啊,不得不明白了!好了,言歸正傳!

這是我的試驗例子,有點亂,多多包含:

程式碼部分:

  1. "C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
  2. nbsp;html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. "http://www.w3.org/1999/xhtml">
  4. "server">
  5.     Div顯示層
  6.     
    "form1" runat="server">
  7.   
  8.         
  9.         
  10.         
  11.         

  12.             "Hidden1" type="hidden" runat="server" />
  13.         
  14.         "txtBox" runat="server">
  15.         <!--"javascript.:void(0)" onclick="">登陸 //登陸連結--&gt
  16.         
  •         <!--加一個登入層--&gt
  •         
    "divLogin" style="background: #fff; padding: 10px 0 0 200px; width: 560px;
  •             z-index: 1001; position: relative; display: none; left: expression(document.getElementById('').offsetLeft+200+ 'px');
  •             ); top: expression(document.getElementById('').offsetTop+150+ 'px');
  •             margin: -200px 0 0 -400px; border-right: silver 1px solid; border-top: silver 1px solid;
  •             border-left: silver 1px solid; border-bottom: silver 1px solid;">
  •             
    "padding: 3px 15px 3px 15px; text-align: left; vertical-align: middle;">
  •                 
  •                     

  •                         請選擇你要傳送的物件
  •                     使用者:
  •                     "TxtUserName" runat="server"
  •                 
  •                 
  •                     border-bottom-width: 1px; border-bottom-color: silver; border-top-color: silver;
  •                     border-right-width: 1px; border-right-color: silver;">
  •                     密碼:
  •                     "TxtUserPwd" runat="server" TextMode="Password"
  •                 
  •                 
  •                 
  •                        
  •                     
  •                 
    "width: 100%">
  •                     "100%" border="1">
  •                         
  •                             
  •                         
  •                         
  •                             
  •                         
  •                     
  • "right">
  •                                 
  •                                 "Panel1" runat="server" Direction="LeftToRight" ScrollBars="Auto" Width="100%"
  •                                     Height="90px" HorizontalAlign="Center">
  •                                     "CheckBoxList1" runat="server" RepeatColumns="8" Width="95%">
  •                                         "0">檔案
  •                                         "2">數碼
  •                                         "1">書本
  •                                         "3">電器
  •                                         "4">娛樂
  •                                         "5">軍事
  •                                         "36">地球
  •                                         "89">環境
  •                                         "3">經濟
  •                                         "3">政治
  •                                         "3">電器
  •                                         "3">娛樂
  •                                         "3">軍事
  •                                         "3">地球
  •                                         "3">環境
  •                                         "3">經濟
  •                                     
  •                                 
  •                                 
  •                             
  •                 
  •             
  •         
  •          
  •     
  • 來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/12639172/viewspace-466031/,如需轉載,請註明出處,否則將追究法律責任。

    相關文章