Archive for April, 2011

Enable / Disable Textbox based on selected value in RadioButtonList

if ($("#<%=RadioBoxList.ClientID%> input:checked").val()== "Yes") {
	$("[id$=password]").attr("disabled", "disabled");
} else {
	$("[id$=password]").removeAttr("disabled", "disabled");
}

,

No Comments

Add a JavaScript popup to an ASP.NET button

if (confirm("Are you sure ?") == false) 
{ 
 window.event.returnValue = false; 
 return false; 
} 
else 
{ 
 window.event.returnValue = true; 
 return true; 
}

No Comments

Custom Role / User Management Page

Custom Role / User Management Page Tutorial

We can download it and make appropriate changes.

No Comments

Customizing Win 7 Desktop

1. Install Rain Meter: Download

2. Install Omnimo Theme for Rain Meter: Download

No Comments

COMPUTERS How to Disable “Saving changes is not permitted” dialog box (SQL Server 2008)

To turn off the “Saving changes not permitted” dialog box, so that you don’t have to recreate a table in order to save changes to the table, follow these SQL Server 2008 configuration instructions:

  1. Open SQL Server Management Studio.
  2. On the menu choose Tools -> click Options
  3. In the Options pop-up box, expand Designers, and then click Table and Database Designers.
  4. Uncheck the option “Prevent saving changes that require the table to be re-created” check box.
  5. Click OK.
  6. Now when you go to save changes to a Table, you will be permitted to do so.

,

No Comments

Implement a Custom Membership User in asp.net

How to_ Implement a Custom Membership User

How to_ Sample Membership Provider Implementation

Ref:
Membership User
Membership Provider

No Comments

Calling ASP.Net validators from JavaScript

function DisplayLoadingDialog() {

    if (typeof (Page_IsValid) != "undefined") {
        if (Page_ClientValidate()) {
            ShowDialog();
        }
    } else {
        ShowDialog();
    }
}

No Comments

Forms Authentication in SharePoint Products and Technologies (Part 2): Membership and Role Provider Samples

1. Create Class Library based on following instructions
Forms Authentication in SharePoint Products and Technologies (Part 2)_ Membership and Role Provider Samples

2. Update the web.config of Central Admin

3. Create Web Application and Site Collection for SharePoint, and update the web.config of the sharepoint to add the new “MembershipProvider”

4. *** Note: the debug message is not meaningful. the details of the error can be found in SharePoint Log, C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\LOGS

,

No Comments

Could Not Load File Or Assembly ‘xxxxx’ Or One Of Its Dependencies. An Attempt Was Made To Load A Program With An Incorrect Format

How to fix it:

Simply follow the steps below :
open project properties window.
select Build tab
Change it to ‘Any CPU’
Save your changes.
Compile your project and run

No Comments

Remote Desktop Connection behind a router (Multiple computers)

Change the RDP port by following procedures,

1. changing the registry key in
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp\PortNumber

2. that’s all!

No Comments