在这段代码中回答我......它不能正常工作...... RoundedCornersExtender不工作......我还在主页面注册了AjaxControlToolKit [英] Answer me in this code… Its not working…RoundedCornersExtender is not working… I also register The AjaxControlToolKit in the master page
问题描述
<table>="width: 788px;">
<tr>
="top">
<asp:Panel ID="Panel1" runat="server" Width="218px" BackColor="#EFF3FB">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<contenttemplate>
<asp:Login ID="Login1" runat="server" BackColor="#EFF3FB"
BorderColor="#B5C7DE" BorderPadding="4" BorderStyle="Solid"
BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em"
ForeColor="#333333" Height="170px" Width="196px"
CreateUserText="Register Here" CreateUserUrl="~/RegisterUser.aspx"
PasswordRecoveryText="Recover Your Password" PasswordRecoveryUrl="~/RecoverPassword.aspx">
<instructiontextstyle font-italic="true" forecolor="Black" />
<layouttemplate>
<table cellpadding="1" cellspacing="0" style="border-collapse:collapse;">
<tr>
<td>
<table cellpadding="0">
<tr>
<td style="font-size:small;" align="center">
Log In
</td>
</tr>
<tr>
<td align="center">
<asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name
</td>
</tr>
<tr>
<td align="center">
<asp:TextBox ID="UserName" runat="server">
<asp:RequiredFieldValidator ID="UserNameRequired" runat="server"
ControlToValidate="UserName" ErrorMessage="User Name is Required." ToolTip="User Name is Required"
ValidationGroup="ctl00$Login1">*
</td>
</tr>
<tr>
<td align="center">
<asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password
</td>
</tr>
<tr>
<td align="center">
<asp:TextBox ID="Password" runat="server" TextMode="Password">
<asp:RequiredFieldValidator ID="PasswordRequired" runat="server"
ControlToValidate="Password" ErrorMessage="Password is Required" ToolTip="Password is Required"
ValidationGroup="ctl00$Login1">*
</td>
</tr>
<tr>
<td align="right">
<asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" ValidationGroup="ctl00$Login1" />
</td>
</tr>
<tr>
<td>
<asp:CheckBox ID="Rememberme" runat="server" Text="Remember Me next time." />
</td>
</tr>
<tr>
<td align="center" style="color:Red;">
<asp:Literal ID="FailureText" runat="server" EnableViewState="false">
</td>
</tr>
<tr>
<td>
<asp:HyperLink ID="CreateUserLink" runat="server" NavigateUrl="~/RegisterUser.aspx">Register Here
<br />
<asp:HyperLink ID="PasswordRecoveryLink" runat="server" NavigateUrl="~/RecoverPassword.aspx">Recover Your Password
</td>
</tr>
</table>
</td>
</tr>
</table>
</layouttemplate>
<loginbuttonstyle backcolor="White" bordercolor="#507CD1" borderstyle="Solid" borderwidth="1px">
Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284E98" />
<textboxstyle font-size="0.8em" />
<TitleTextStyle BackColor="#507CD1" Font-Bold="true" Font-Size="0.9em" ForeColor="White" />
<asp:LoginName ID="LoginName1" runat="server" FormatString="Welcome, {0}" />
<br />
<asp:LoginStatus ID="LoginStatus1" runat="server" LogoutAction="RedirectToLoginPage" Visible="false" LogoutPageUrl="~/Login.aspx" />
<br />
<asp:HyperLink ID="hlChangePassword" runat="server" NavigateUrl="~/ChangePassword.aspx" Width="113px">
Change Password
</loginbuttonstyle></contenttemplate>
<triggers>
<asp:AsyncPostBackTrigger ControlID="Login1" EventName="Disposed" />
</triggers>
***<cc1:RoundedCornersExtender ID="RoundedCornersExtender1" runat="server" TargetControlID="Panel1" <table style="width: 788px;">
<tr>
<td align="left" valign="top">
<asp:Panel ID="Panel1" runat="server" Width="218px" BackColor="#EFF3FB">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<contenttemplate>
<asp:Login ID="Login1" runat="server" BackColor="#EFF3FB"
BorderColor="#B5C7DE" BorderPadding="4" BorderStyle="Solid"
BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em"
ForeColor="#333333" Height="170px" Width="196px"
CreateUserText="Register Here" CreateUserUrl="~/RegisterUser.aspx"
PasswordRecoveryText="Recover Your Password" PasswordRecoveryUrl="~/RecoverPassword.aspx">
<instructiontextstyle font-italic="true" forecolor="Black" />
<layouttemplate>
<table cellpadding="1" cellspacing="0" style="border-collapse:collapse;">
<tr>
<td>
<table cellpadding="0">
<tr>
<td style="font-size:small;" align="center">
Log In
</td>
</tr>
<tr>
<td align="center">
<asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name
</td>
</tr>
<tr>
<td align="center">
<asp:TextBox ID="UserName" runat="server">
<asp:RequiredFieldValidator ID="UserNameRequired" runat="server"
ControlToValidate="UserName" ErrorMessage="User Name is Required." ToolTip="User Name is Required"
ValidationGroup="ctl00$Login1">*
</td>
</tr>
<tr>
<td align="center">
<asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password
</td>
</tr>
<tr>
<td align="center">
<asp:TextBox ID="Password" runat="server" TextMode="Password">
<asp:RequiredFieldValidator ID="PasswordRequired" runat="server"
ControlToValidate="Password" ErrorMessage="Password is Required" ToolTip="Password is Required"
ValidationGroup="ctl00$Login1">*
</td>
</tr>
<tr>
<td align="right">
<asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" ValidationGroup="ctl00$Login1" />
</td>
</tr>
<tr>
<td>
<asp:CheckBox ID="Rememberme" runat="server" Text="Remember Me next time." />
</td>
</tr>
<tr>
<td align="center" style="color:Red;">
<asp:Literal ID="FailureText" runat="server" EnableViewState="false">
</td>
</tr>
<tr>
<td>
<asp:HyperLink ID="CreateUserLink" runat="server" NavigateUrl="~/RegisterUser.aspx">Register Here
<br />
<asp:HyperLink ID="PasswordRecoveryLink" runat="server" NavigateUrl="~/RecoverPassword.aspx">Recover Your Password
</td>
</tr>
</table>
</td>
</tr>
</table>
</layouttemplate>
<loginbuttonstyle backcolor="White" bordercolor="#507CD1" borderstyle="Solid" borderwidth="1px">
Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284E98" />
<textboxstyle font-size="0.8em" />
<TitleTextStyle BackColor="#507CD1" Font-Bold="true" Font-Size="0.9em" ForeColor="White" />
<asp:LoginName ID="LoginName1" runat="server" FormatString="Welcome, {0}" />
<br />
<asp:LoginStatus ID="LoginStatus1" runat="server" LogoutAction="RedirectToLoginPage" Visible="false" LogoutPageUrl="~/Login.aspx" />
<br />
<asp:HyperLink ID="hlChangePassword" runat="server" NavigateUrl="~/ChangePassword.aspx" Width="113px">
Change Password
</loginbuttonstyle></contenttemplate>
<triggers>
<asp:AsyncPostBackTrigger ControlID="Login1" EventName="Disposed" />
</triggers>
***<cc1:RoundedCornersExtender ID="RoundedCornersExtender1" runat="server" TargetControlID="Panel1"
Radius="6" Corners="All">
***
Radius="6" Corners="All">
***
I am just trying to make a master page for my project but this problem stucked me here... I downloaded the Ajax tool kit from the asp.net website and after that I made a new tab in the tool box where I added the Ajax control tool kit .dll file... and now when I am using the tool from the tab, there occurs the problem... that is the compilation error... I also register the AjaxControlToolKit in the master page as follows:
I am just trying to make a master page for my project but this problem stucked me here... I downloaded the Ajax tool kit from the asp.net website and after that I made a new tab in the tool box where I added the Ajax control tool kit .dll file... and now when I am using the tool from the tab, there occurs the problem... that is the compilation error... I also register the AjaxControlToolKit in the master page as follows:
<%@ Register Assembly="AjaxControlToolKit" Namespace="AjaxControlToolKit" TagPrefix="cc1" %>
and when I compile my code this shows me the below errors:
and when I compile my code this shows me the below errors:
Error 2 Could not load file or assembly 'AjaxControlToolKit' or one of its dependencies. The system cannot find the file specified. C:\......\TravelOnlineApp\MasterPage1.master 3
Error 3 Unknown server tag 'cc1:RoundedCornersExtender'. C:\......\TravelOnlineApp\MasterPage1.master 149
Warning 4 Element 'RoundedCornersExtender' is not a known element. This can occur if there is a compilation error in the Web site, or the web.config file is missing.
推荐答案
Login1\">*
</td>
</tr>
<tr>
<td align=\"center\">
<asp:Label ID=\"PasswordLabel\" runat=\"server\" AssociatedControlID=\"Password\">Password
</td>
</tr>
<tr>
<td align=\"center\">
<asp:TextBox ID=\"Password\" runat=\"server\" TextMode=\"Password\">
<asp:RequiredFieldValidator ID=\"PasswordRequired\" runat=\"server\"
< span class =code-attribute> ControlToValidate=\"Password\" ErrorMessage=\"Password is Required\" ToolTip=\"Password is Required\"
ValidationGroup=\"ctl00
Login1">* </td> </tr> <tr> <td align="center"> <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password </td> </tr> <tr> <td align="center"> <asp:TextBox ID="Password" runat="server" TextMode="Password"> <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" ErrorMessage="Password is Required" ToolTip="Password is Required" ValidationGroup="ctl00
Login1\">*
</td>
</tr>
<tr>
<td align=\"right\">
<asp:Button ID=\"LoginButton\" runat=\"server\" CommandName=\"Login\" Text=\"Log In\" ValidationGroup=\"ctl00
Login1">* </td> </tr> <tr> <td align="right"> <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Log In" ValidationGroup="ctl00
Login1\" />
</td>
</tr>
<tr>
<td>
<asp:CheckBox ID=\"Rememberme\" runat=\"server\" Text=\"Remember Me next time.\" />
</td>
</tr>
<tr>
<td align=\"center\" style=\"color:Red;\">
<asp:Literal ID=\"FailureText\" runat=\"server\" EnableViewState=\"false\">
</td>
</tr>
<tr>
<td>
<asp:HyperLink ID=\"CreateUserLink\" runat=\"server\" NavigateUrl=\"~/RegisterUser.aspx\">Register Here
<br />
<asp:HyperLink ID=\"PasswordRecoveryLink\" runat=\"server\" NavigateUrl=\"~/RecoverPassword.aspx\">Recover Your Password
</td>
</tr>
</table>
</td>
</tr>
</table>
</layouttemplate>
<loginbuttonstyle backcolor=\"White\" bordercolor=\"#507CD1\" borderstyle=\"Solid\" borderwidth=\"1px\">
Font-Names=\"Verdana\" Font-Size=\"0.8em\" ForeColor=\"#284E98\" />
<textboxstyle font-size=\"0.8em\" />
<TitleTextStyle BackColor=\"#507CD1\" Font-Bold=\"true\" Font-Size=\"0.9em\" ForeColor=\"White\" />
<asp:LoginName ID=\"LoginName1\" runat=\"server\" FormatString=\"Welcome, {0}\"/ >
<br />
<asp:LoginStatus ID=\"LoginStatus1\" runat=\"server\" LogoutAction=\"RedirectToLoginPage\" Visible< span class=\"code-keyword\">=\"false\" LogoutPageUrl=\"~/Login.aspx\" />
<br />
<asp:HyperLink ID=\"hlChangePassword\" runat=\"server\" NavigateUrl=\"~/ChangePassword.aspx\" Width=\"113px\">
Change Password
</loginbuttonstyle></contenttemplate>
<triggers>
<asp:AsyncPostBackTrigger ControlID=\"Login1\" EventName=\"Disposed\" />
</triggers>
***<cc1:RoundedCornersExtender ID=\"RoundedCornersExtender1\" runat=\"server\" TargetControlID=\"Panel1\" <table style=\"width: 788px;\">
< tr>
<td align=\"left\" valign=\"top\">
<asp:Panel ID=\"Panel1\" runat=\"server\" Width=\"218px\" BackColor=\"#EFF3FB\">
<asp:UpdatePanel ID=\"UpdatePanel1\" runat=\"server\">
<contenttemplate>
<asp:Login ID=\"Login1\" runat=\"server\" BackColor=\"#EFF3FB\"
BorderColor=\"#B5C7DE\" BorderPadding=\"4\" BorderStyle=\"Solid\"
BorderWidth=\"1px\" Font-Names=\"Verdana\" Font-Size=\"0.8em\"
< span class =code-attribute> ForeColor=\"#333333\" Height=\"170px\" Width=\"196px\"
CreateUserText=\"Register Here\" CreateUserUrl=\"~/RegisterUser.aspx\"
PasswordRecoveryText=\"Recover Your Password\" PasswordRecoveryUrl=\"~/RecoverPassword.aspx\">
<instructiontextstyle font-italic=\"true\" forecolor=\"Black\" />
<layouttemplate>
<table cellpadding=\"1\" cellspacing=\"0\" style=\"border-collapse:collapse;\" >
<tr>
<td>
<table cellpadding=\"0\">
<tr>
<td style=\"font-size:small;\" align=\"center\">
Log In
</td>
</tr>
<tr>
<td align=\"center\">
<asp:Label ID=\"UserNameLabel\" runat=\"server\" AssociatedControlID=\"UserName\">User Name
&l t;/td>
</tr>
<tr>
<td align=\"center\">
<asp:TextBox ID=\"UserName\" runat=\"server\">
<asp:RequiredFieldValidator ID=\"UserNameRequired\" runat=\"server\"
ControlToValidate=\"UserName\" ErrorMessage=\"User Name is Required.\" ToolTip=\"User Name is Required\"
ValidationGroup=\"ctl00
Login1" /> </td> </tr> <tr> <td> <asp:CheckBox ID="Rememberme" runat="server" Text="Remember Me next time." /> </td> </tr> <tr> <td align="center" style="color:Red;"> <asp:Literal ID="FailureText" runat="server" EnableViewState="false"> </td> </tr> <tr> <td> <asp:HyperLink ID="CreateUserLink" runat="server" NavigateUrl="~/RegisterUser.aspx">Register Here <br /> <asp:HyperLink ID="PasswordRecoveryLink" runat="server" NavigateUrl="~/RecoverPassword.aspx">Recover Your Password </td> </tr> </table> </td> </tr> </table> </layouttemplate> <loginbuttonstyle backcolor="White" bordercolor="#507CD1" borderstyle="Solid" borderwidth="1px"> Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284E98" /> <textboxstyle font-size="0.8em" /> <TitleTextStyle BackColor="#507CD1" Font-Bold="true" Font-Size="0.9em" ForeColor="White" /> <asp:LoginName ID="LoginName1" runat="server" FormatString="Welcome, {0}" /> <br /> <asp:LoginStatus ID="LoginStatus1" runat="server" LogoutAction="RedirectToLoginPage" Visible="false" LogoutPageUrl="~/Login.aspx" /> <br /> <asp:HyperLink ID="hlChangePassword" runat="server" NavigateUrl="~/ChangePassword.aspx" Width="113px"> Change Password </loginbuttonstyle></contenttemplate> <triggers> <asp:AsyncPostBackTrigger ControlID="Login1" EventName="Disposed" /> </triggers> ***<cc1:RoundedCornersExtender ID="RoundedCornersExtender1" runat="server" TargetControlID="Panel1" <table style="width: 788px;"> <tr> <td align="left" valign="top"> <asp:Panel ID="Panel1" runat="server" Width="218px" BackColor="#EFF3FB"> <asp:UpdatePanel ID="UpdatePanel1" runat="server"> <contenttemplate> <asp:Login ID="Login1" runat="server" BackColor="#EFF3FB" BorderColor="#B5C7DE" BorderPadding="4" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#333333" Height="170px" Width="196px" CreateUserText="Register Here" CreateUserUrl="~/RegisterUser.aspx" PasswordRecoveryText="Recover Your Password" PasswordRecoveryUrl="~/RecoverPassword.aspx"> <instructiontextstyle font-italic="true" forecolor="Black" /> <layouttemplate> <table cellpadding="1" cellspacing="0" style="border-collapse:collapse;"> <tr> <td> <table cellpadding="0"> <tr> <td style="font-size:small;" align="center"> Log In </td> </tr> <tr> <td align="center"> <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">User Name </td> </tr> <tr> <td align="center"> <asp:TextBox ID="UserName" runat="server"> <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" ErrorMessage="User Name is Required." ToolTip="User Name is Required" ValidationGroup="ctl00
这篇关于在这段代码中回答我......它不能正常工作...... RoundedCornersExtender不工作......我还在主页面注册了AjaxControlToolKit的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!