当前位置:首页
开发技术指南» 文章正文
    引言:
 

 

 ·mapx的distance的奇怪问题    »显示摘要«
    摘要: vb中 dim ds as double ds = map1.distance(0, 0, 180, 0) msgbox "距离=" + format$(ds, "#.###") + "公里" ds的值为12436.792 在delphi中, edit1.text := floattostr(map1.distance(0,0,1......
    摘要: 请教一个sql问题 现在有两个表: 1、category ┏━━━━━━━━━━━━━━┓ ┃categoryid │catename ┃ ┠──────┼───────┨ ┃ 1 │类别一 ┃ ┠──────┼───────┨ ┃ 2 │类别二 ┃ ┠──────┼───────┨ ┃ 3 │类别三 ┃ ┠──────┼───────┨ ┃ ...... │...... ┃ ┠─────......


在一个页中要填的东西太多,在asp.net中有没有类于vb的分页控件(如sstab,multipage)控件

或者有什么好的解决方案?

NO.1   作者: hgknight

下面是一个小例子,这是我比较喜欢的TabStrip样式,复制即可运行  
  WebForm1.aspx  
   
  <%@   Register   TagPrefix="iewc"   Namespace="Microsoft.Web.UI.WebControls"   Assembly="Microsoft.Web.UI.WebControls,Version=1.0.2.226,   Culture=neutral,   PublicKeyToken=31bf3856ad364e35"   %>  
  <script   language=C#   runat=server>  
  void   btn_click(object   sender,   System.EventArgs   e)  
  {  
  Response.Write("This   is   page   one!");  
  TextBox1.Text="This   is   Page   three!";  
  }  
  </script>  
   
  <HTML>  
  <HEAD>  
  </HEAD>  
  <body   MS_POSITIONING="GridLayout">  
  <TABLE   height="214"   cellSpacing="0"   cellPadding="0"   width="79"   border="0"   ms_2d_layout="TRUE">  
  <TR   vAlign="top">  
  <TD   width="79"   height="214">  
  <form   id="WebForm1"   method="post"   runat="server">  
  <TABLE   height="62"   cellSpacing="0"   cellPadding="0"   width="202"   border="0"   ms_2d_layout="TRUE">  
  <TR   vAlign="top">  
  <TD   width="1"   height="15"></TD>  
  <TD   width="201"></TD>  
  </TR>  
  <TR   vAlign="top">  
  <TD   height="47"></TD>  
  <TD>  
  <table   height="46"   width="200">  
  <tr>  
  <td><iewc:tabstrip   id="TabStrip1"   runat="server"   TargetID="MultiPage1"   SepDefaultStyle="background-color:#FFFFFF;border-color:#AAAAAA;&#13;&#10;       &#13;&#13;&#10;border-width:1px;border-style:solid;border-top:none;border-left:none;&#13;&#10;       border-right:none"   TabDefaultStyle="color:#aaaaaa;background-color:#EEEEEE;&#13;&#10;       &#13;&#13;&#10;border-color:#AAAAAA;border-width:1px;border-style:Solid;&#13;&#10;       &#13;&#13;&#10;font-weight:bold;font-family:Verdana;font-size:11px;height:21;&#13;&#10;       width:79;text-align:center;"   TabHoverStyle="color:red"   TabSelectedStyle="color:#000000;background-color:#FFFFFF;&#13;&#10;       border-bottom:none"   Width="100%">  
  <iewc:Tab   Text="第一页"></iewc:Tab>  
  <iewc:TabSeparator></iewc:TabSeparator>  
  <iewc:Tab   Text="第二页"></iewc:Tab>  
  <iewc:TabSeparator></iewc:TabSeparator>  
  <iewc:Tab   Text="第三页"></iewc:Tab>  
  </iewc:tabstrip></td>  
  </tr>  
  <tr>  
  <td><iewc:multipage   id="MultiPage1"   runat="server"   Width="100%">  
  <iewc:PAGEVIEW>  
  <div   align="center">  
  <asp:Button   id="Button1"   runat="server"   Text="第一页"   Font-Size="13px"   Font-Bold="True"   ForeColor="#8080FF"   BackColor="#FFFFC0"   OnClick="btn_click"></asp:Button></div>  
  </iewc:PAGEVIEW>  
  <iewc:PAGEVIEW>  
  <div   align="center">  
  <asp:Label   Font-Size="13px"   id="Label2"   runat="server"   Font-Bold="True"   ForeColor="#8080FF">第二页</asp:Label></div>  
  </iewc:PAGEVIEW>  
  <iewc:PAGEVIEW>  
  <div   align="center">  
  <asp:TextBox   id="TextBox1"   runat="server"   Font-Bold="True"   Width="150px"   ForeColor="#8080FF">第三页</asp:TextBox></div>  
  </iewc:PAGEVIEW>  
  </iewc:multipage></td>  
  </tr>  
  </table>  
  </TD>  
  </TR>  
  </TABLE>  
  </form>  
  </TD>  
  </TR>  
  </TABLE>  
  </body>  
  </HTML>


    摘要: string[] atsql = new string{("1"),("2"),("3"),("4"),("5")}; 正确的写法是: ......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE