Search This Blog

Tuesday, May 19, 2015

How to validate form using JQuery?

To validate a form use below code
var frmX = $("#formName");

var IsValid = frmX.valid();

Note: .valid() method validate the form and return boolean value which shows whether the form is valid or not.....

Saturday, March 21, 2015

How to create an ASPState session database?

Execute following command line to add ASpState database.

C:\%windir%\Microsoft.NET\Framework\\aspnet_regsql.exe -S ServerName -E -ssadd -sstype p

Friday, February 20, 2015

How to change database to single user mode as well as multi-user mode?

A. To change your database mode to single user mode execute below sql script
ALTER DATABASE Databasename SET SINGLE_USER WITH ROLLBACK IMMEDIATE;

b. To change your database mode to multi-user mode execute below sql script
ALTER DATABASE Databasename SET MULTI_USER WITH ROLLBACK IMMEDIATE;

Wednesday, February 4, 2015

How to reset your windows password without an installation CD

If you have been forgotten your windows password and you have not created password reset disk then do the following steps.
Step 1: Create Boot Disk
Download boot disk from here http://pogostick.net/~pnh/ntpasswd/bootdisk.html
There are three options for boot disk CD, USB and Flopy Disk. You can use one of the above option.
Note: Here I chose USB as boot disk and downloaded respective zip file.
Step 2: Make bootable USB drive
Copy all files which are inside downloaded zip folder to USB drive, directly on the USB drive, not inside any directory or folder.
Open command prompt and Install the bootloader onto USB drive(Open command prompt as "Run as Administrator").

     F:>syslinux.exe -ma F:


Here "F" is USB drive in your computer. After executing above command a new file "ldlinux.sys" will be added into your USB drive. Now unplug USB derive and plug into the computer of which you have to reset password

Step 3: Change Boot option
Change the boot option as USB to boot from the USB.
=======================================================================================================
Step 4 : Resetting Your Windows Password
Boot your PC from the boot disk (you might have to adjust the BIOS to allow booting from the USB). You’ll be prompted at a couple of screens, which you can generally just hit the Enter key at. For instance, this screen asks if you want to select the first partition, and [1] is already selected, so just hit Enter.

The same thing happens at the next step, where you have to choose the path to your registry. The default is fine, so hit Enter.

Next you can choose whether to use password reset or some other thing, so just hit Enter for password reset.
Next you’ll be prompted whether you want to edit users or the registry. You want to edit user passwords, so hit Enter again.
And now, the first screen where you’ll need to do something other than hit the Enter key. In this case, you’ll want to type the username that you want to reset. In my case, this was “geek”, so I just typed that (without the quotes). Then hit Enter.
Now you’ll want to probably just blank the password, which is already selected, so hit the Enter key again (you can always change it once you’re back in Windows).
And now, you’ll have to save what you just did. So type an exclamation point to quit (or the “!” symbol), then type the letter “y” to save.
At this point it should say “EDIT COMPLETE”, and you can reboot your computer. You should be able to login without any problems—just make sure to go set a new password