Create a permanent textbox watermark in ASP.Net
Posted on 2010-09-23
I am trying to create a web user control in ASP.Net that is a textbox with a permanent watermark positioned on the right hand side of the textbox. I want to be able to change the text on the watermark though a property of the user control.
To help make the example clearer, I want to use this textbox control for things like capturing percentages so the % symbol will be permanently displayed on the right hand-side of the textbox so it is clear to the user.
I have created something simple that works by having a label in a separate div that is absolutely positioned....however when I pull it into the main webpage the styles are overridden and it displays incorrectly.