Monday, September 10, 2012
Wednesday, March 28, 2012
Saturday, October 22, 2011
Transfer domain from godaddy to Amazon
http://www.quora.com/If-I-bought-a-domain-name-from-Godaddy-but-plan-to-use-amazon-EC2-to-run-the-site-do-I-need-hosting-from-Godaddy
Tuesday, June 14, 2011
Run as administrator on Shortcuts using Visual studio setup project
Use Microsoft's ORCA tool
- This is provided as p art of the "Windows Installer SDK" which is part of the "Win dows Platform SDK"
- After installing the Platform SDK you actually have to install ORCA. Its setup file will be in the directory where the Platform SDK was installed.
- Run ORCA and open the MSI file
- Select the table "Property"
- Add a row to the "Property" table with the following values for the columns
- Property: DISABLEADVTSHORTCUTS
- Value: 1
Tuesday, February 8, 2011
Verify User Using Active Directory
DirectoryEntry result = DS.FindOne().GetDirectoryEntry();
if (result == null)
return false;
string Type = string.Empty;
if (result.Properties["MemberOf"].Count > 0)
{
Object[] objCollection = (Object[])result.Properties["MemberOf"].Value;
foreach (object single in objCollection)
{
if ((single.ToString() == "mbc ur ir 013 is") || (single.ToString() == "mbc ur ir 005 HR SAF"))
{
Type= "Admin" ;
}
else if (single.ToString() == "mbc ur ir salaried users")
{
Type= "Reports" ;
}
else if (single.ToString() == "mbc ur ir 005 HR Sec")
{
Type= "Security";
}
}
}
else
{
object single = result.Properties["MemberOf"].Value
if ((single.ToString() == "mbc ur ir 013 is") || (single.ToString() == "mbc ur ir 005 HR SAF"))
{
Type = "Admin";
}
else if (single.ToString() == "mbc ur ir salaried users")
{
Type = "Reports";
}
else if (single.ToString() == "mbc ur ir 005 HR Sec")
{
Type = "Security";
}
}
Subscribe to:
Posts (Atom)
How to generate Model class and DbContext from existing Data Base using .NET Core Open the Nuget Manage and run the following command Scaf...
-
In order to set static value of MVC2 drop down list use below code binded with entity field Html.DropDownListFor(model => model.Type, new...
-
Too loop through table using Jquery, that can also be used to loop nested table/nested structure like, to parse only single table rows just ...
-
Use Microsoft's ORCA tool This is provided as p art of the "Windows Installer SDK" which is part of the "Win dows Platfor...