Test Post

This post is to test pdf search function

sample document 

Be the first to comment - What do you think?
Posted by admin - August 27, 2014 at 12:56 am

Categories: Windows Workflow Foundation   Tags:

Difference between Machine.config and Web.config files in ASP.Net

Both machine and web config files are xml format files.

The settings made in web.config file are applied to that particular web application only, whereas the settings of machine.config file are applied to whole ASP.Net applications in the machine (machile.config is configuration file for all the application in the IIS)

Machine.config

  • This will be installed when you install .Net framework.
  • Only one machine.config file can exist on a server/machine.
  • This file is at the highest level in the configuration hierarchy. The machine.config file is the master config file on your system with default settings.
  • It can be found in “Windows\Microsoft.NET\Framework\\CONFIG” folder (or in WINNT\Microsoft.NET\Framework\\CONFIG)
  • .Net applications cannot be executed without the machine.config file.
  • It can be overridden by web.config file.

Web.config

  • Automatically created when you create a web application project.
  • More than one web.config files can be added for a single project.
  • This file inherits the settings from machine.config file.
  • Web.config file resides only in the application folder, if the application has one.
  • The application can be executed even without the web.config file.
  • Web.config (parent) file can be overridden by another web.config file (a child web.config file)

Be the first to comment - What do you think?
Posted by admin - March 9, 2013 at 12:37 am

Categories: .Net, ASP.Net, Topics: Differences   Tags: , ,

Difference between Build, Rebuild, Clean Solution and Compile in .Net

While developing your projects in .Net you may notice that there are the following build options: Build, Rebuild, Clean Solution and Compile are available with the IDE. But what are the differences between those options? This topic explains the differences between those building options in detail.

Build
Build solution will perform an incremental build.

It will not build the whole project, if it thinks, there is no need to build the entire project, means the option Build solution, builds only those components that have changes since the last build. (Just for an example you have two projects: Project1 and Project2 under the same solution. You build the solution after making some changes in Project1. Now only project1 will be compiled and Project2 will not be compiled since there are no changes in it.)

Sometimes, the build may fail, if the referenced components for the project are in out of sync and it needs a rebuild to make the build successful.

Clean Solution
Clean Solution will remove the build artifacts from the previous build. The other files, which are in build target directories (bin, obj) may not be removed, but the actual build artifacts will be.

Rebuild
Simply we can say the Rebuild=Clean+Build.

Rebuild will clean and build the entire solution from the scratch; it will ignore anything that’s done before. (If you have two projects: project1 and project2 in a solution, and you rebuild the solution after making some changes in project1, not like Build, the whole solution including project2 will be rebuilt even though there are no changes made in project2)

Compile
Compile option just compiles the source file that is currently being edited. This option is useful to check for errors when the rest of the source files are in incomplete stage and would prevent a successful build of the entire project.

Ctrl+F7 is the shortcut key for Compile option.

Be the first to comment - What do you think?
Posted by admin - March 8, 2013 at 1:05 am

Categories: .Net, .Net IDE, Build Options, Topics: Differences   Tags: , , , , ,

How to use the Keyboard as a Mouse in Windows

Have you ever been in a situation to work in a computer with out a mouse, or with a not working mouse?

what did you do to complete your task with out that small device?

Actually, windows has a feature to handle all the mouse operations in the key board too. By enabling this feature, we can turn the numeric keyboard to act as a mouse.

To turn on the mouse keys in key board in Windows XP,

  • Go to Control Panel (Start >> Control Panel) or (Windows Key + R and type “control”)
  • Select “Accessibility Options”
  • Select the tab “Mouse”
  • Enable the Mouse Keys by Selecting the “Use MouseKeys” check box

Mouse_TT1

That’s it, now the mouse keys are enabled in your keyboard, so you can start using them, using your numeric keyboard. If you want to handle the mouse keys with some more setup like short cut keys, please read further.

Mouse key settings

  • Click “Settings”, if you want have some more setup on mouse keys.

Click “Settings” button, and in the opened “Settings for MouseKeys” window, Enable the “Use Shortcut” check box, so that you can turn the mouse keys on/off at anytime, by just pressing the “left Alt+left Shift+Num Lock” keys. (When you press these keys, sometimes, a pop up will appear to confirm the setting, you can simply press “Yes” to turn on or select “Settings” to change the settings)

Mouse_TT2

  • In the “Pointer speed” section of “Settings for MouseKeys” window, you can setup the mouse pointer speed, by selecting the “Hold down Ctrl to speed up and Shift to slow down” check box, To check this setting in action, just hold the “Ctrl” key or “Shift” key and move the mouse cursor using Numeric keyboard. (moving the mouse pointer using the numeric keyboard is explained below)
  • You can decide, when the numeric keyboard should act as a mouse, by selecting any one of the options in “Use MouseKeys when NumLock is” section. If you select the option “Off” in this section, the mouse keys will turn on when the NumLock is in off state. Select the option “Off” here, so that you can have both Numeric keys and as well as the Mouse keys in Numeric Keyboard (All you need to do is just on/off the NumLock).
  • Select “Show MouseKey status on screen” option, if you want to see the status of the Mouse keys in system tray area. (you can see a mouse image in the bottom right corner of the screen, and this icon will indicate the status of Mouse keys whether it’s in on state or in off.)

Mouse_TT3

That’s all. Now you enabled the Mouse Keys in your Numeric Keyboard, Just turn off the Num Lock and try the mouse keys in action.

Move the Mouse pointer using Mouse Keys

Key (in Numeric key board) Function (To move the mouse pointer)
1 Down and to the left
2 Down
3 Down and to the right
4 Left
6 Right
7 Up and to the left
8 Up
9 Up and to the right

Selecting a mouse button

Before selecting the items in the screen, you must first choose which mouse button you want to be the active one. (the left mouse button, the right one or both) You can see the status of which button is selected in the mouse icon in system tray.

Key Function
‘/’ (The forward slash) To select the left mouse button
‘-’ (The minus sign) To select the right mouse button
‘*’ (The asterisk) To select both buttons

Note: If you select the left mouse button as the active button, it will remain active until you choose another button. After you select a mouse button, you don’t need to select a mouse button again until you want to change buttons.

Clicking items using Mouse Keys

Once you choose an active button, you can click items on your screen

Actions (To do these Actions) Do this
Click an item Select the left mouse button as your active button, point to the item and press 5
Right-click an item Select the right mouse button as your active button, point to the item and press  5
Double-click an item Select the left mouse button as your active button, point to the item, and then press + (plus sign)

Dragging items using Mouse Keys

You can use the numeric keypad to press and hold the active mouse button and to release it. This is helpful if you want to drag an item.

To (Action) Do this
Drag an item Point to the item and then press 0 (Zero), use mouse keys to move the selected item over the screen.
Drop the item Point to the location where you want to move the item, and then press the period or point symbol (.)

Ohhh, it’s really a long post to explain just a simple feature :)

Be the first to comment - What do you think?
Posted by admin - February 24, 2013 at 11:53 pm

Categories: Operating Systems, OS & System Applications, OS and Applications, Topics: How?, Windows, Windows Workflow Foundation   Tags: , ,

How to restore the backup to Windows Registry?

Follow these steps to restore the Registry backup or to import the keys into System Registry.

Note: The following described steps require working with Windows registry. If you are importing a REG file to the system registry that you downloaded from an unknown source, be cautious and aware that making inappropriate changes in the system registry could cause system problems.

  1. Locate the registry backup file that you exported before.
  2. Double-click the file to open it.
  3. You will be prompted with a message saying “Are you sure you want to add the information in to the registry?”
  4. Click Yes button
  5. If the restoration of the system registry keys was successful, you should receive a message “Information in has been successfully entered into the registry.”
  6. Click OK
  7. Restart the computer. Depending on the changes you made by the restoring process, you might need to restart system to see the changes take effect.

Be the first to comment - What do you think?
Posted by admin - February 23, 2013 at 12:20 am

Categories: Operating Systems, OS & System Applications, Registry, Topics: How?, Windows   Tags: , ,

Next Page »