More in this section

Forums / Developing with Sitefinity / regular textbox displays sitefinity login name!

regular textbox displays sitefinity login name!

2 posts, 0 answered
  1. LouiseBA
    LouiseBA avatar
    61 posts
    23 Mar 2010
    21 May 2010
    Link to this post

    I have this code in my own aspx page within a 'sitefinity enabled' VS solution.

                            Email Address</div>
                        <asp:TextBox ID="tbAdd" runat="server" Text="" />
                        <asp:RegularExpressionValidator ControlToValidate="tbAdd" runat="server" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                            ErrorMessage="* You must use a correct email address format" Display="Dynamic" />
                        <asp:RequiredFieldValidator runat="server" ControlToValidate="tbAdd" ErrorMessage="* You must enter an email address"
                            Display="Dynamic" />
                        <asp:TextBox ID="tbPass" runat="server" TextMode="Password" CssClass="input" Text="" />
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="tbPass"
                            ErrorMessage="* You must enter a password" />

    Every time I load the page the textbox has 'admin' in it, and the password field has, presumably, (its a password field so blobbed out) my admin password. Why is it doing this i cant see any reason. Ive tried naming them something strange (tbAdd instead of tbEmail) thinking sitefinity may look for certain named fields and assume its a sitefinity login page, but this hasnt helped. Why is this happening and how can i get rid of them (i could write some js to blank out the fields on load, but i dont want to blank them out on postback for instance - that will annoy users)
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    01 Feb 2016
    24 May 2010
    Link to this post
    Hi LouiseBA,

    Thank you for using our services.

    Could you please let us know if this form is a custom one created by you, or an extension of any of the built in forms/controls which we provide with the CMS. We have a control - the newsletter subscription form which populates its input fields from the currently logged in user (if the user is authenticated). However we do this through code.

    Your markup does not look like any of the markup we normally use in our controls, so to me it looks like a user control built by you. It worth checking if you have some code setting contents of text boxes on load. Otherwise I do not see how those fields will get populated.

    Radoslav Georgiev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
2 posts, 0 answered