Archive for June, 2010

Using Jquery Thickbox with

June 28, 2010 2 comments

ThickBox is a webpage UI dialog widget written in JavaScript on top of the jQuery library. Its function is to show a single image, multiple images, inline content, iframed content, or content served through AJAX in a hybrid modal.

Demo, Examples,Implementation:

Thickbox with Gridview

Thickbox From Codebehind(ServerSide)

Thickbox with Server side buttons

Download Demo:


Toggle/(Hide/Show) Div Using Jquery

var hideshowdiv = “#” + document.getElementById(divid).id;

$(function() {



Various other ways and effects to hide/show are as follows:

Using toggle effects

$(function() {



Using slideToggle

$(function() {

$(hideshowdiv). slideToggle(“slow”);


Using  slideDown and slideUp

$(function() {

if (document.getElementById(divid).style.display == “none”) {



else if (document.getElementById(divid).style.display == “block”) {




Using hide(), show()



Improve Stored Procedure Performance in SQL SERVER using SET NOCOUNT ON


This one line of code, put at the top of a stored procedure turns off the messages that SQL Server sends back to the client after each T-SQL statement is executed.

You can read the detailed description here:


Using AjaxControlToolkit Modal Popup

The Modal Popup extender comes with Ajaxcontrol toolkit and  allows a page to display content to the user in a “modal” manner which prevents the user from interacting with the rest of the page.


ModalPopup with In Various Scenarios using Javascript, iframes, etc

ModalPopup Examples

Other Examples can be found at