如何将文本框放在登录面板中?

时间:2017-02-14 07:47:07

标签: javascript html css asp.net vb.net

enter image description here



<form id="form1" runat="server">
            <div id="header" runat="server" class="clsHeaderContent">
                <div class="clsDivBody">
                    <table cellpadding="0" border="0" cellspacing="0" style="width: 1024px;">
                        <tr>
                            <td>
                                <a href="<%=Page.ResolveUrl("~/Main/Home.aspx")%>">
                                    <asp:Image ID="imgLogo" runat="server" ImageUrl="~/Images/Logo.png" Style="border: 0" />
                               </a>
                               
                            </td> 
                        </tr>
                            <%
                                    If Not Session("Member_Login_Profile") Is Nothing Then
                            %> 
                                <tr style="height:30px;">
                                    <td align="right" valign="top">
                                         <asp:Button ID="cmdHome" runat="server" Text="Home" />
                                         <asp:Button ID="cmdMyProfile" runat="server" Text="My Profile" />
                                         <asp:Button ID="cmdLogout" runat="server" Text="Logout" />
                                    </td>
                                </tr>                        
                                <tr style="height: 5px;">
                                    <td/>
                                </tr>
                            <%
                                End If
                            %>
                    </table>
                </div>
            </div>
        <div class="clsDivBody bg" style="padding: 15px 0;min-height:730px;">
            <asp:ContentPlaceHolder ID="MainContent" runat="server" />
        </div>

        <div id="backtotop" style="display: block;">^ Back to Top</div>
        <div id="push"></div>
        <input type="hidden" id="_ispostback" value="<%=Page.IsPostBack.ToString()%>" />
             </form>
&#13;
&#13;
&#13;

&#13;
&#13;
<form >

                            
                            <asp:TextBox ID="txtCardNo" runat="server"  MaxLength="20" value="Card No." Text="824488"  onclick="this.value='';" onfocus="this.select()" onblur="this.value=!this.value?'Card No.':this.value;" />&nbsp;
                            <asp:RequiredFieldValidator ID="reqCardNo" runat="server" ControlToValidate="txtCardNo" CssClass="clsValidationErrMsg" Display="dynamic" ValidationGroup="Login" />
                            <asp:RegularExpressionValidator ID="regExCardNo" runat="server" ControlToValidate="txtCardNo" CssClass="clsValidationErrMsg" Display="dynamic" ValidationGroup="Login" />
                                                     	
                            <asp:TextBox ID="txtPassword" runat="server"   MaxLength="16"  value="thegardensclub123" TextMode="Password" onclick="this.value='';" onfocus="this.select()" onblur="this.value=!this.value?'Password':this.value;" />
                            <asp:RequiredFieldValidator ID="reqPassword" runat="server" ControlToValidate="txtPassword" CssClass="clsValidationErrMsg" Display="dynamic" ValidationGroup="Login" />
                            <asp:RegularExpressionValidator ID="regExPassword" runat="server" ControlToValidate="txtPassword" CssClass="clsValidationErrMsg" Display="dynamic" ValidationGroup="Login" /><br/>
                            
<%--                            <u><asp:LinkButton ID="lnkForgotPwd" runat="server" CausesValidation="False" Text="Forgot your password?" /></u>
--%>                        <asp:Button runat="server" ID="btnLogin" Text="Log In"/>     
        
                             
		</form>
&#13;
&#13;
&#13;

第一个片段是我的母版页,第二个是我的登录页面。 问题是,如果我不删除登录页面中的主页面我的文本框,文本框不能放在面板中。 如果我删除了母版页,它会显示我的错误&#34; Control&#39; ctl00_MainContent_oSM&#39;类型&#39; ScriptManager&#39;必须放在带有runat = server的表单标记内。&#34; 如果我删除登录,也无法将文本框放在面板中。那我该怎么办?

0 个答案:

没有答案