Dear viewers I will show how to use TextBoxWatermarkExtender in asp.net c#. TextBoxWatermark Extender can be attached with ASP.NET TextBox control to display "watermark" style .When watermarkTextBox is empty it can be displayed a message to enter something to viewers. In this case at first I have created a css for text to show as watermark style .Then I have taken necessary textboxs and added TextBoxWatermarkExtender to the textboxs. Three properties has been used such as TargetControlId of TextBoxWatermarkExtender to particular TextBox , WatermarkText for writing text and WatermarkCssClass for assigning css .
TextBoxWatermarkExtender in ASP.NET C#