Adding Watermark to textbox can be done in two ways:
1) Using Ajax Toolkit:
Sometimes, we want to give the preview of the image uploaded through file upload control in asp.net, at the same time.
There is a very nice article on this.. using server side.
In this article, we have one image control, one file upload control and one button control
We upload image using file upload control, and then click on upload button, at the same time the image uploaded will be shown in the image control..
Sometimes, we want to know how many tables, stored procedures or functions we have created on a particular day, or on which tables, sps or functions, modifications have occured. All this can be known through a very simple sql query, which is as below:
select name,type,type_desc, create_date, modify_date from sys.objects
where convert(varchar,modify_date,101) = convert(varchar,getdate(),101)
order by modify_date desc
name : – “Its the table or sp or function name”
type: – “To identify a table or sp or function etc.. P, S, U”
type_desc: -“Description whether it is table, sp etc..”
– S = System Table, PK = Primary Key,U = User Table,
– P= Stored Procedure, TF = Table Value Function,
– FN = Scalar Function, D= Default Constraint
create_date: – “Date when it is created”
modify_date: – “Last modified datetime of table, sp,.. etc”
In above query, in place of getdate(), you can pass the date you want, also you can get complete list after removing where condition, just giving order by modified date from sys objects..
Very important when we want to generate scripts for particular tables, sps or function for a particular date.
You can add/change css style or add new attributes to current style at runtime, in asp.net code behind.
Lets say you have:
<a ID=”linktemp” style=”text-decoration:underline” class=”verdana12bluebold” runat=”server” >Download</a>
Now if we want to change its class dynamically then in code behind we have to do:
if we want to change its text-decoration under style then,
in the similar you can add new styles, change visible option to true/false,