How do I put hint in a asp:textbox
How do I put a hint/placeholder inside a asp:TextBox? When I say a hint I mean some text which disappears when the user clicks on it. Is there a way to achieve the same using html / css? The placeholder attribute You're looking for the placeholder attribute. Use it like any other attribute inside your ASP.net control: <asp:textbox id="txtWithHint" placeholder="hint" runat="server"/> Don't bother about your IDE (i.e. Visual Studio) maybe not knowing the attribute. Attributes which are not registered with ASP.net are passed through and rendered as is. So the above code (basically) renders to: