Skip to main content

Posts

how to add A DAY IN DATE, SQL-SERVER

DATEADD ( type , value , date ) date is the date you want to manipulate value is the integere value you want to add (or subtract if you provide a negative number) type is one of: yy, yyyy: year qq, q: quarter mm, m: month dy, y: day of year dd, d: day wk, ww: week dw, w: weekday hh: hour mi, n: minute ss or s: second ms: millisecond mcs: microsecond ns: nanosecond SELECT DATEADD(dd, 1, GETDATE()) will return a current date + 1 day

What is the difference between classes and structs in Microsoft.Net?

A struct is a value type, while a class is a reference type. When we instantiate a class, memory will be allocated on the heap. When struct gets initiated, it gets memory on the stack. Classes can have explicit parameter less constructors. But structs cannot have this. Classes support inheritance. But there is no inheritance for structs. A struct cannot inherit from another struct or class, and it cannot be the base of a class. Like classes, structures can implement interfaces. We can assign null variable to class. But we cannot assign null to a struct variable, since structs are value type. We can declare a destructor in class but can not in struct.

How to use cufon.replace inside UpdatePanel?

Place below code inside Update Panel   < script type = " text /javascript" language = "javascript" >   Sys . WebForms . PageRequestManager . getInstance (). add_endRequest ( EndRequestHandler );   function EndRequestHandler ( sender , args )   {   Cufon.replace('h1'); Cufon.now();      } < script >