Watermark in ASP NET TextBox using JavaScript

preview_player
Показать описание
Link for all dot net and sql server video tutorial playlists

Link for slides, code samples and text version of the video

Healthy diet is very important both for the body and mind. If you like Aarvi Kitchen recipes, please support by sharing, subscribing and liking our YouTube channel. Hope you can help.

In this video we will discuss how to create a watermark in ASP.NET TextBox using JavaScript.

Here is the HTML and JavaScript used in the video.

Search :
[asp:TextBox ID="TextBox1" ForeColor="Gray" runat="server" Width="250px"
Text="Enter your serach term here"
onfocus="ClearWaterMark('Enter your serach term here', this);"
onblur="CreateWaterMark('Enter your serach term here', this);" ]
[/asp:TextBox]
[asp:Button ID="Button1" runat="server" Text="Search" /]
[script type="text/javascript"]
function CreateWaterMark(defaultText, textBoxControl)
{
{
}
}

function ClearWaterMark(defaultText, textBoxControl)
{
{
}
}
[/script]
Рекомендации по теме
Комментарии
Автор

How to add watermark image logo to video ??

rahulkhokhariya
Автор

can you tell me how to add watermark in Excel worksheet while downloading file

kailasbhambare
Автор

I tried to run but i had issue with unhandle javascript runtime error. I had the same issue with javascript runtime error with previous video(SelectedAll checkbox) as well. When I checked the top (HeaderCheckBox) it was pop up window dialog said. (Unhandle javascript runtime error). Please help me!! Thank you in advance.

davidsambath