Reset Form using Jquery

11. August 2010

If you have one or more then one form in HTML page. You can reset  the form by calling jquery reset function.

Example

$(document).ready(function() {
// you can reset more then one form by using this function
   $("#reset").click(function() {
     $("form").each(function() {
       this.reset();
     });
   });
 });


Author: Aamir Hasan     औथोर: आमिर हसन       أثر أمير حسن .

ALL, asp.net, JQuery , , , , ,

How to fetch Random Data in Oracle

10. August 2010

Below is the Query to fetch Random record in Oracle.

 

SELECT ROWNUM
	FROM DUAL
	CONNECT BY LEVEL < 9000;

 


Author: Aamir Hasan     औथोर: आमिर हसन       أثر أمير حسن .

ALL, Oracle

Printing Support in avaible in Silverlight 4 now

9. August 2010

good news for developer's. Print can be done in Silverlight 4 through  PrintDocument class.

Example

 

PrintDocument doct = new PrintDocument();

    doct.PrintPage += (s, args)
    {   
        args.PageVisual = LayoutRoot;
    };

    doct.Print(docName);// print dialog box

By using this PrintDocument Class you can print entrie page or to print a specfic part of page.

 


Author: Aamir Hasan     औथोर: आमिर हसन       أثر أمير حسن .

ALL, SilverLight , ,

How to get All Database name using Query in MS SQL

9. August 2010

You can get all database name by using below Query.

SELECT NAME FROM SYS.DATABASES

You can also use Store Procedure given below.

EXEC sp_databases

 

 


Author: Aamir Hasan     औथोर: आमिर हसन       أثر أمير حسن .

ALL, SQL 2005 & 2008 ,

ms sql Large data import Trick

26. July 2010

If you want to import huge amount of data in a table from another database , then first delete indexes becasue it will import fastly.


Author: Aamir Hasan     औथोर: आमिर हसन       أثر أمير حسن .

ALL, SQL 2005 & 2008 , ,



User Name: Guest

Your Ip: 38.107.191.93
Time: