This is a migrated thread and some comments may be shown as answers.

Empty Message Issues

2 Answers 103 Views
Input
This is a migrated thread and some comments may be shown as answers.
Stuart Hemming
Top achievements
Rank 2
Stuart Hemming asked on 16 Jun 2009, 02:20 PM
Run this page ...

<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server"
    <title></title
</head> 
<body> 
    <form id="form1" runat="server"
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server"
    </telerik:RadScriptManager> 
    <div> 
      <telerik:RadTextBox ID="RadTextBox1" runat="server" EmptyMessage="Drag text on to me"
      </telerik:RadTextBox><asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> 
      <br /> 
      <telerik:RadTextBox ID="RadTextBox2" runat="server" TextMode="Password" EmptyMessage="Enter Password"
      </telerik:RadTextBox><asp:Label ID="Label2" runat="server" Text="Label"></asp:Label> 
      <br /> 
       
      <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" /> 
    </div> 
    </form> 
</body> 
</html> 
        protected void Button1_Click(object sender, EventArgs e) 
        { 
            Label1.Text = RadTextBox1.Text; 
            Label2.Text = RadTextBox2.Text; 
        } 

First of all, you will see that the password box appears to have a value, although clicking on the button will show that it doesn't.

Drag some text on to the 1st textbox. I dragged the url for this page out of the Location bar of FF on to the textbox on my page. Pressing the button, you would expect to see "http://www.telerik.com/community/forums/new-thread.aspx?forumId=243". What I actually get is "Drag text on to mehttp://www.telerik.com/community/forums/new-thread.aspx?forumId=243 ".

I'm fairly sure you can't do anything about the first of these 2 issues. I suspect the 2nd is a bug you could fix.

--
Stuart




2 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 17 Jun 2009, 11:49 AM
Hello Stuart,

>> First of all, you will see that the password box appears to have a value, although clicking on the button will show that it doesn't.

The "value" that you are seeing is actually the EmptyMessage. Since it is not a real value, it is not returned as such on the server. I am afraid we don't support EmptyMessage with password RadTextBoxes.


>> What I actually get is "Drag text on to me....................".

Indeed, it is not expected for the empty message to be preserved and transformed into a part of the textbox value when you drag text into the textbox. We will fix this. Thank you for the report.


Kind regards,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Stuart Hemming
Top achievements
Rank 2
answered on 17 Jun 2009, 02:03 PM
> The "value" that you are seeing is actually the EmptyMessage.
As I suspected.

> I am afraid we don't support EmptyMessage with password RadTextBoxes.
Then you should document that.

> We will fix this
Cool.

--
Stuart
Tags
Input
Asked by
Stuart Hemming
Top achievements
Rank 2
Answers by
Dimo
Telerik team
Stuart Hemming
Top achievements
Rank 2
Share this question
or