当前位置:编程学习 > C#/ASP.NET >>

谁来帮我翻译下这些代码的意思,要逐句翻译的

<td > 用户名:<asp:TextBox ID="txtUserName" runat="server" CssClass="textbox"></asp:TextBox></td>

    </tr>
     <tr>
     <td >密    码:<asp:TextBox ID="txtpassword" runat="server" CssClass="textbox" TextMode="Password"></asp:TextBox></td>

     </tr>
     <tr >     <td align="center">
Text="登录" CssClass="button" OnClick="btnLogin_Click" />
<asp:Button ID="btnLogin" runat="server" --------------------编程问答-------------------- 有你这发帖的时间 看看书也明白了 --------------------编程问答--------------------   <asp:TextBox ID="txtLoginName" runat="server" AutoPostBack="True" OnTextChanged="txtLoginName_TextChanged" ></asp:TextBox>
          
           <asp:RequiredFieldValidator ID="rfvLoginName" runat="server" ErrorMessage="请输入用户名" ControlToValidate="txtLoginName">*</asp:RequiredFieldValidator>
           </td>
      </tr>
        <tr>
          <td>密码</td>
           <td>
               <asp:TextBox ID="txtLoginPwd" runat="server" TextMode="Password"></asp:TextBox>
                <asp:RequiredFieldValidator ID="rfvLoginPwd" runat="server" ErrorMessage="输入密码" ControlToValidate="txtLoginPwd">*</asp:RequiredFieldValidator>
               </td>
        </tr>
      <tr>
       <td>确认密码</td>
       <td>
           <asp:TextBox ID="txtPwdAgain" runat="server" TextMode="Password"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvPwdAgain" runat="server" ErrorMessage="再次输入密码" ControlToValidate="txtPwdAgain">*</asp:RequiredFieldValidator>
        <asp:CompareValidator ID="cvPwdAgain" runat="server" ErrorMessage="两次密码输入不一致" ControlToValidate="txtPwdAgain"  ControlToCompare="txtLoginPwd">*</asp:CompareValidator>
           </td>
      </tr>
         <tr>
          <td>性别</td>
          <td>
              <asp:RadioButtonList ID="rdlSex" runat="server" RepeatDirection="Horizontal">
                  <asp:ListItem Selected="True">男</asp:ListItem>
                  <asp:ListItem>女</asp:ListItem>
              </asp:RadioButtonList>
             
               </td> 
        </tr>
      <tr>
       <td>出生年月</td>
       <td>
           <asp:DropDownList ID="ddlYear" runat="server">
               <asp:ListItem>1991</asp:ListItem>
               <asp:ListItem>1992</asp:ListItem>
               <asp:ListItem>1993</asp:ListItem>
               <asp:ListItem>1994</asp:ListItem>
               <asp:ListItem>1995</asp:ListItem>
           </asp:DropDownList>年
           <asp:DropDownList ID="ddlMonth" runat="server">
               <asp:ListItem>1</asp:ListItem>
               <asp:ListItem>2</asp:ListItem>
               <asp:ListItem>3</asp:ListItem>
               <asp:ListItem>4</asp:ListItem>
               <asp:ListItem>5</asp:ListItem>
               <asp:ListItem>6</asp:ListItem>
               <asp:ListItem>7</asp:ListItem>
               <asp:ListItem>8</asp:ListItem>
               <asp:ListItem>9</asp:ListItem>
               <asp:ListItem>10</asp:ListItem>
               <asp:ListItem>11</asp:ListItem>
               <asp:ListItem>12</asp:ListItem>
           </asp:DropDownList>月
           
           </td>
      </tr>
        <tr>
          <td>爱好</td>
          <td>
              
              <asp:CheckBoxList ID="chkHobby" runat="server" RepeatDirection="Horizontal">
                  <asp:ListItem>唱歌</asp:ListItem>
                  <asp:ListItem>看书</asp:ListItem>
                  <asp:ListItem>旅游</asp:ListItem>
                  <asp:ListItem>运动</asp:ListItem>
              </asp:CheckBoxList>  
             
           
              </td>
        </tr>
      <tr>
       <td>电子邮箱</td>
       <td>
           <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
           <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtEmail" ErrorMessage="请输入邮箱地址">*</asp:RequiredFieldValidator>
           
           <asp:RegularExpressionValidator ID="RegularExpressionValidator" ControlToValidate="txtEmail" runat="server" ErrorMessage="电子邮件格式不正确" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*">*</asp:RegularExpressionValidator>
           
           </td>
      </tr> 
       <tr>
       <td> </td>
       <td>
           <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True" ShowSummary="False" /></td>
       
      </tr>
      <tr>
       <td> </td>
       <td>
           <asp:Button ID="btnSubmit" runat="server" Text="提交" OnClick="btnSubmit_Click" /></td>
      </tr>
      </table>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:OnlineShopConnectionString %>" InsertCommand="INSERT INTO [tb_Users1] ([userName], [userPwd], [userSex], [userBirthday], [userHobby], [userEmail], [userRole]) VALUES (@userName, @userPwd, @userSex, @userBirthday, @userHobby, @userEmail, @userRole)" OnInserting="SqlDataSource1_Inserting" >
    
            <InsertParameters>
                <asp:ControlParameter ControlID="txtLoginName" Name="userName" PropertyName="Text"
                    Type="String" />
                <asp:ControlParameter ControlID="txtLoginPwd" Name="userPwd" PropertyName="Text"
                    Type="String" />
                <asp:ControlParameter ControlID="rdlSex" Name="userSex" PropertyName="SelectedValue"
                    Type="String" />
                <asp:Parameter Name="userBirthday" Type="String" />
                <asp:Parameter Name="userHobby" Type="String" />
                <asp:ControlParameter ControlID="txtEmail" Name="userEmail" PropertyName="Text" Type="String" />
                <asp:Parameter DefaultValue="1" Name="userRole" Type="String" />
            </InsertParameters>
        </asp:SqlDataSource>
        
        <asp:Panel ID="pnlResult" runat="server" Visible ="false">
             用户名 :<asp:Label ID="lblLoginName" runat="server" Text=""></asp:Label><br />
             性  别:<asp:Label ID="lblSex" runat="server" ></asp:Label><br />
             爱  好:<asp:Label ID="lblHobby" runat="server" Text=""></asp:Label><br />
             出生年月:<asp:Label ID="lblBirthday" runat="server" Text=""></asp:Label><br />
             电子邮箱:<asp:Label ID="lblEmail" runat="server" Text=""></asp:Label>
        </asp:Panel>
     
     
    
    
    </div>
    

</asp:Content>


--------------------编程问答-------------------- <div id="goods_search">
          <img src ="App_Themes/BlueTheme/images/images/search.gif" alt ="搜索"  style ="vertical-align:middle" />
          商品名称 <asp:TextBox ID="txtGoodsNameSearch" runat ="server"></asp:TextBox>
          商品种类 <asp:DropDownList ID="ddlGoodsTypeSearch" runat ="server" Width ="120px"></asp:DropDownList>
          <asp:Button ID="btnSearch" runat ="server" Text ="搜索"  /> 
     <br />
     <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" SelectMethod="GetAllList"
         TypeName="BLL.defaultMange"></asp:ObjectDataSource>
</div>
--------------------编程问答-------------------- 1、 商品浏览
<div id="goods_list">
                   <asp:DataList ID="DataList1" runat="server"  >
                            <ItemTemplate>
                                <table border="0" cellpadding="0" cellspacing="0" width="545">
                                    <tr>
                                        <td style="width: 160px; vertical-align: top; text-align: center">
                                            <a href='/Detail.aspx?goodsID=<%#Eval("goodsID")%>'>
                                                <asp:Image ID="ImagePicture" runat="server" Height="150px" ImageUrl='<%#Eval ("goodsImageName","~/images/{0}") %>'
                                                    Width="150px" /></a>
                                        </td>
                                        <td>
                                            <div>
                                                <h1>
                                                    <asp:Label ID="LabelName" runat="server" Text='<%# Eval ("goodsName") %>'></asp:Label></h1>
                                            </div>
                                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                <tr>
                                                    <td style="text-align: left; width: 30%; height: 37px;">
                                                        商品类别:<asp:Label ID="LabelGoodsType" runat="server" Text='<%# Eval ("goodsTypeName") %>'></asp:Label>
                                                    </td>
                                                    <td style="height: 37px">
                                                        单价:<span class="Price"><asp:Label ID="LabelPrice" runat="server" Text='<%# Eval ("goodsUnitPrice","{0:C}") %>'></asp:Label>元</span>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="left" colspan="2">
                                                        <div>
                                                            商品简介:<asp:Label ID="LabelDescription" runat="server" Text='<%# Eval ("goodsDescript") %>'></asp:Label></div>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>   
                    </asp:DataList>
                         <div id="page">
                         <asp:Label ID ="lblpage" runat= "server" Text =""></asp:Label> 
                         <asp:Button ID="btnFirst" runat="server" Text="首页" OnClick="btnFirst_Click" />
                         <asp:Button ID="btnPrev" runat="server" Text="上一页" OnClick="btnPrev_Click" />
                         <asp:Button ID="btnNext" runat="server" Text="下一页" OnClick="btnNext_Click" />
                         <asp:Button ID="btnLast" runat="server" Text="尾页" OnClick="btnLast_Click" />                         
                         </div>    </div>
--------------------编程问答-------------------- 拉了几个控件组合使用的可以生成的代码
--------------------编程问答-------------------- 鄙人真翻译不了你的神码,太高深了你还是自学吧 --------------------编程问答--------------------  <asp:GridView ID="GridViewAccount" runat="server" AutoGenerateColumns="False" BackColor="White"
                            BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4" OnRowDataBound="GridViewAccount_RowDataBound"
                            ShowFooter="True" Width="95%">
                            <Columns>
                                <asp:TemplateField HeaderText="商品名称">
                                   
                                    <ItemTemplate>
                                        <%# DataBinder.Eval (Container.DataItem, "goodsName") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="商品价格">
                                    
                                    <ItemTemplate>
                                        <%# DataBinder.Eval (Container.DataItem, "goodsUnitPrice","{0:C}") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="商品数量">                                   
                                    <ItemTemplate>
                                        <%# DataBinder.Eval (Container.DataItem, "goodsCount","{0:d}") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
                            <RowStyle BackColor="White" ForeColor="#330099" />
                            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
                            <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
    </asp:GridView>
    <asp:Button ID="ButtonCheckOk" runat="server" Text="确定结帐" OnClick="ButtonCheckOk_Click" />
    <asp:Button ID="ButtonContinue" runat="server" Text="继续购买" OnClick="ButtonContinue_Click" />
</asp:Content>
--------------------编程问答-------------------- 我只来看看。不说话!~ --------------------编程问答-------------------- for(i=0;i<楼主代码.length;i++)
{
    alert("我擦泪");
} --------------------编程问答-------------------- 估计没人那么仔细的帮你,那里就是几个简单的控件,里面设置了一些属性。看看书真的就不用花那个40分了 --------------------编程问答-------------------- 这个你还是百度吧 --------------------编程问答-------------------- 其实我都是明白的,就是老师要求我们要弄上解释,我嫌烦。。。 --------------------编程问答-------------------- --------------------编程问答-------------------- 就是注册问题了... --------------------编程问答-------------------- 这.... --------------------编程问答--------------------
引用 12 楼 w12w13w88_88 的回复:
其实我都是明白的,就是老师要求我们要弄上解释,我嫌烦。。。


你们老师不嫌烦啊? --------------------编程问答-------------------- 你们老师是不是有个课题:汉字描述替代HTML的可行性研究

现正找你们寻找灵感呢。。。。什么学校啊,不是一对一的话。。那么一帮学生交上来的东西,这位伟大的园丁会看么? --------------------编程问答-------------------- 我表示无语了....................... --------------------编程问答-------------------- 那你老师是NB轰轰的。 --------------------编程问答-------------------- 论坛里边挺有乐 --------------------编程问答--------------------
引用 12 楼 w12w13w88_88 的回复:
其实我都是明白的,就是老师要求我们要弄上解释,我嫌烦。。。


这里嫌烦的人应该会更多。。。。。。

SO。。。。。。
补充:.NET技术 ,  ASP.NET
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,