0

Hi,

I have a problem using the AJAX toolkikt TextboxWatermarkExtender.
It does not show up on my page. I have set up the code as follows:

<tr>
                <td>
                    Name:
                </td>
                <td>
                    <asp:TextBox ID="name" runat="server"></asp:TextBox>
                    <asp:TextBoxWatermarkExtender ID="nameField" runat="server" WatermarkText="Section name" TargetControlID="name">
                    </asp:TextBoxWatermarkExtender>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="nameVal" runat="server" ErrorMessage="Please give in a section name" ControlToValidate="name" ></asp:RequiredFieldValidator>
                    <asp:ValidatorCalloutExtender ID="nameValExtender" runat="server" TargetControlID="nameVal" ></asp:ValidatorCalloutExtender>
                </td>
            </tr>

This is all inside an updatePanel. I have checked the source code of the html page that is generated by that code, and i saw that the id of the contentPlaceHolder is put in front of the id of the textboxes, but when i try to add that in code, it gives me an error.
Any help is much appreciated

3
Contributors
2
Replies
4
Views
6 Years
Discussion Span
Last Post by vadmkp
0

>but when i try to add that in code, it gives me an error.

Post error (Exception) description and markup (.aspx) here.

0

ContentPlaceHolder / TextBoxWatermarkExtender is working fine.
You need add ToolkitScriptManager on the top script.
If you got already ScriptManager You need take out from your sript.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.