Maintain div or panel scroll position after postback in asp.net update panel
By default asp.net updatepanel will not maintain the div/panel scroll position after partial post back. To main the scroll position we need to add our own javascript after the scriptmanager tag.
Draggable button using jquery ui
Draggable button using jquery ui: To make button draggable you need to set the cancel: false property
Get total number of tables, views, stored procedures and functions count and names in sql server
Below query will return the total number of tables count, views count, stored procedures count and functions count and names in sql server
JavaScript function to get date in mmddyyyy hhmmss ampm format
Below JavaScript function getdatetime() will return the date string in mm/dd/yyyy hhmmss ampm format. You need to pass date as parameter that need to be returned in the format mm/dd/yyyy hhmmss ampm. If you want current date in the format then you can simple call the function as getdatetime(new Date());
JavaScript function to get date in mmddyyyy format
Below JavaScript function getdate() will return the date string in mm/dd/yyyy format. You need to pass date as parameter that need to be returned in the format mm/dd/yyyy.
jQuery animate example to create mobile sliding menu
Using jQuery animate you can animate the controls. In this example we will see how to animate the control width using jQuery animate and toggle.
Blink div background using jQuery toggleClass
This example shows you how to blink div background using jQuery toggleClass and javascript setInterval.
How to take backup of Assemblies in GAC
To take GAC dll backup open C:\Windows\assembly\GAC_MSIL in Run command.
Bind data to DropDownList in GridView
This example shows you how to bind data to DropDownList in GridView based on the Grid Row Value. In this example we will bind the States to DropDownList based on Country in Row.
Convert DataSet to JSON - C# extension method example
This example shows you how to write C# extension method and how to convert DataSet to JSON using JavaScriptSerializer.