Tuesday, December 9, 2008

Assign Value to TextBox - Password TextMode ASP.NET

You have a Textbox with the password TextMode and you try to assign a value to password textmode.
If you've got a password textbox name txtPassword, you cannot assign the Text property to it in code, or via DataBinding.

below is the method to assign value to the Password Textbox

txtPassword.Attributes.Add("value", "PASSWORD VALUE")

this is one of the way to assign value to password textbox

Tuesday, November 25, 2008

Fix a rotated screen problem

If you are facing a 90/180 degrees rotation issue with your displayed screen, this can be either due to a problem with your graphic card or a wrong manipulation of the hot keys of your keyboard. This problem can be easily fixed if you follow the steps below:

Solution 1
Step 1: With the Desktop screen displayed in front of you, use your mouse’s left-click to access the “Graphic Properties” option
Step 2: Select the “Rotation” Tab
Step 3: Uncheck the box labeled “Enable Rotation”

Fix a rotated screen problem
Solution 2
Step 1: With the Desktop screen displayed in front of you, use your mouse’s left-click to access the “Properties” option
Step 2: Select the “Parameters” tab and click the “Advanced” option
Step 3: From the displayed list, choose the name corresponding to your graphic card model
Step 4: Select the “Rotate” option and change it to 0 degrees or to the “normal” mode.


Solution 3

You can also make use of the hotkeys to change the rotation of your screen

Press CTRL+ALT Gr+Up/Down/Left/Right arrows

Solution 4

If none of the above solutions has solved your problem, this might be due to a bad configuration of your graphic card. I will strongly suggest you to contact a computer technician to fix this issue.

Wednesday, April 9, 2008

Service Unavailable in IIS Web Page

When you browse your web site, if you receive the following error message:
Service Unavailable
It maybe application pool is not running or not started.

Solution
- Click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.
- Expand ServerName -> Application Pools -> start your application pool





Tuesday, March 4, 2008

Re-Register ASP.Net with IIS

Windows 2000/XP
To fix this on Windows 2000 or Windows XP, run this command from the

Start>Run box or a command prompt

(assuming the system directory is C:\Documents and Settings\Administrator>):

.Net1.1: C:\Windows\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis -i
.Net2.0: C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -i


Below Show you example with step by step to Re-Register ASP.Net with IIS in Window XPRe-Register ASP.Net with IIS on Window XP

Windows 2003
On Windows 2003, ASP.NET must be both installed and enabled. To install ASP.NET:
On the taskbar, click the Start button, point to Control Panel, and then click Add or Remove Programs.

In the Add or Remove Programs dialog box, click Add/Remove Windows Components.
In the Components box in the Windows Components Wizard, click the Web Application Server check box, and then click Next.

When the Windows Components Wizard has finished configuring Windows Server 2003, click Finish.

Run this command from the Start>Run box or a command prompt
(assuming the system directory is C:\Windows):
.Net1.1: C:\Windows\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis -i
.Net2.0: C:\Windows\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -i