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"); }
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; }
Custom Role / User Management Page
Custom Role / User Management Page Tutorial
We can download it and make appropriate changes.
Customizing Win 7 Desktop
Posted by allenkwc in Entertainment on April 24, 2011
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:
- Open SQL Server Management Studio.
- On the menu choose Tools -> click Options
- In the Options pop-up box, expand Designers, and then click Table and Database Designers.
- Uncheck the option “Prevent saving changes that require the table to be re-created” check box.
- Click OK.
- Now when you go to save changes to a Table, you will be permitted to do so.
Implement a Custom Membership User in asp.net
Calling ASP.Net validators from JavaScript
function DisplayLoadingDialog() { if (typeof (Page_IsValid) != "undefined") { if (Page_ClientValidate()) { ShowDialog(); } } else { ShowDialog(); } }
Forms Authentication in SharePoint Products and Technologies (Part 2): Membership and Role Provider Samples
Posted by allenkwc in .net, SharePoint on April 12, 2011
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
Could Not Load File Or Assembly ‘xxxxx’ Or One Of Its Dependencies. An Attempt Was Made To Load A Program With An Incorrect Format
Posted by allenkwc in .net, SharePoint on April 6, 2011
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
Remote Desktop Connection behind a router (Multiple computers)
Posted by allenkwc in Windows Server on April 5, 2011
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!