Posts

Showing posts with the label ASP.NET MVC

Enumerating Active Directory object properties using C#

I had to look up for a properties in Active Directory against my login. Since I didn’t even know the name of properties, I had to enumerate through them. Here is the code. 1. Create C# application and add a configuration file “app.config”. 2. Update it as follows: <configuration>   <appSettings>     <add key="ADDomain" value="mydomain"/>     <add key="username" value="username"/>   </appSettings> </configuration> Update your “domain” and “username”. 3. Add following code in Main method (usually in program.cs file) try {     using (DirectoryEntry de = new DirectoryEntry(@"LDAP://" + ConfigurationSettings.AppSettings["ADDomain"]))     {         using (DirectorySearcher adSearch = new DirectorySearcher(de)) ...

ASP.NET WebMatrix–Beta 3 is out now

Image
Microsoft took first step way ahead when it launched ASP.NET 1.1 after “Classic ASP”. Then moved back by providing ASP.NET MVC flavor and now WebMatrix is another step forward to speed up the web development. It is a nice step to reduce costs of projects. I expect WebMatrix to have the most project templates as compared to templates for other flavors of ASP.NET. What is WebMatrix?* WebMatrix is everything you need to build Web sites using Windows. It includes IIS Express (a development Web server), ASP.NET (a Web framework), and SQL Server Compact (an embedded database). It streamlines Web site development and makes it easy to start Web sites from popular open-source apps. The skills and code you develop with WebMatrix transition seamlessly to Visual Studio and SQL Server. Who is it for?* WebMatrix is for developers, students, or just about anyone who just wants a small and simple way to build Web sites. Start coding, testing, and deploying your own Web sites without having ...