Details:
1 - Version 2011.2.712.40 of Telerik.Web.UI.
2 - Net 4.0 (therefore Visual Studio 2010).
3 - Development machine is Windows 7 Ultimate.
4 - Application pool is .Net 4.0 Integrated.
I have a simple login form (that uses a master page) with RadTextBoxes for username/password and a server-side button:
CONTENT.MASTER
<%@ master autoeventwireup="true" codebehind="content.master.cs" inherits="Administration.content" language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Administration</title>
</head>
<body>
<form id="frmFormCriteria" runat="server">
<asp:contentplaceholder id="cphContent" runat="server" />
</form>
</body>
</html>
LOGIN.ASPX
<%@ page autoeventwireup="true" codebehind="login.aspx.cs" inherits="Administration.login" language="C#" masterpagefile="~/content.master" title="" %>
<%@ mastertype virtualpath="~/content.master" %>
<%@ register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<asp:content contentplaceholderid="cphContent" runat="server">
<telerik:radscriptmanager runat="server" />
Username: <telerik:radtextbox emptymessage="[Please enter your username]" id="txtUsername" maxlength="255" textmode="SingleLine" width="200" runat="server" />
Password: <asp:textbox id="txtPassword" maxlength="100" textmode="password" width="200" runat="server" />
<asp:button id="btnSubmit" text="Login" runat="server" onclick="btnSubmit_Click" />
</asp:content>
When I click inside the username control, the empty message does not disappear.
While debugging, when I type enter the username and password then click the login button, the text value for both controls is an empty string.
If I change the RadTextBoxes to server-side TextBoxes the entered values are passed correctly.
What is even more frustrating, if I change the RadScriptManager to the asp:ScriptManager and leave the RadTextBoxes alone, EVERYTHING (including the empty message disappearing on focus) works correctly.
I must be doing something wrong, but what?!?
The web.config is also:
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
<customErrors mode="Off" />
<xhtmlConformance mode="Transitional" />
<httpHandlers>
<add verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" />
</httpHandlers>
</system.web>
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="5000000"/>
</webServices>
</scripting>
</system.web.extensions>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<handlers>
<add verb="*" name="Telerik.Web.UI.WebResource.axd_*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" preCondition="integratedMode"/>
</handlers>
</system.webServer>
</configuration>
1 - Version 2011.2.712.40 of Telerik.Web.UI.
2 - Net 4.0 (therefore Visual Studio 2010).
3 - Development machine is Windows 7 Ultimate.
4 - Application pool is .Net 4.0 Integrated.
I have a simple login form (that uses a master page) with RadTextBoxes for username/password and a server-side button:
CONTENT.MASTER
<%@ master autoeventwireup="true" codebehind="content.master.cs" inherits="Administration.content" language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Administration</title>
</head>
<body>
<form id="frmFormCriteria" runat="server">
<asp:contentplaceholder id="cphContent" runat="server" />
</form>
</body>
</html>
LOGIN.ASPX
<%@ page autoeventwireup="true" codebehind="login.aspx.cs" inherits="Administration.login" language="C#" masterpagefile="~/content.master" title="" %>
<%@ mastertype virtualpath="~/content.master" %>
<%@ register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<asp:content contentplaceholderid="cphContent" runat="server">
<telerik:radscriptmanager runat="server" />
Username: <telerik:radtextbox emptymessage="[Please enter your username]" id="txtUsername" maxlength="255" textmode="SingleLine" width="200" runat="server" />
Password: <asp:textbox id="txtPassword" maxlength="100" textmode="password" width="200" runat="server" />
<asp:button id="btnSubmit" text="Login" runat="server" onclick="btnSubmit_Click" />
</asp:content>
When I click inside the username control, the empty message does not disappear.
While debugging, when I type enter the username and password then click the login button, the text value for both controls is an empty string.
If I change the RadTextBoxes to server-side TextBoxes the entered values are passed correctly.
What is even more frustrating, if I change the RadScriptManager to the asp:ScriptManager and leave the RadTextBoxes alone, EVERYTHING (including the empty message disappearing on focus) works correctly.
I must be doing something wrong, but what?!?
The web.config is also:
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.0" />
<customErrors mode="Off" />
<xhtmlConformance mode="Transitional" />
<httpHandlers>
<add verb="*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" validate="false" />
</httpHandlers>
</system.web>
<system.web.extensions>
<scripting>
<webServices>
<jsonSerialization maxJsonLength="5000000"/>
</webServices>
</scripting>
</system.web.extensions>
<system.webServer>
<validation validateIntegratedModeConfiguration="false"/>
<handlers>
<add verb="*" name="Telerik.Web.UI.WebResource.axd_*" path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource, Telerik.Web.UI" preCondition="integratedMode"/>
</handlers>
</system.webServer>
</configuration>