Jack @ ASP.NET

As a software engineer, I focus on .NET, especially asp.net, C#, WCF and so on, and I am also very interested in Search Engine Optimization.

Microsoft will Increased Support of Client Development Through the jQuery JavaScript Library

Industry standards and innovation took center stage at MIX10, as Microsoft Corp. made a series of announcements that underscore the company’s commitment to interoperability and performance on the Web. Dean Hachamovitch, general manager of Internet Explorer at Microsoft, unveiled the Internet Explorer 9 Platform Preview including expanded support for HTML5, hardware-accelerated graphics and text, and a new JavaScript engine. Together these allow developers to use the same markup and deliver graphically and functionally rich Web applications that take advantage of modern PC hardware through a modern operating system.

Microsoft also announced that it will contribute to the development of new features and enhancements in the jQuery JavaScript Library and shared the release of new software development kits (SDKs) for the Open Data Protocol (OData) that make it easier for developers to access data from the cloud to create more compelling cross-platform Web applications.

As part of Microsoft’s broad engagement with open source communities, Corporate Vice President Scott Guthrie today announced that Microsoft is investing resources to contribute to the development of the jQuery JavaScript Library to help improve the development process of standards-based Web applications. Microsoft will also work to provide better interoperability between ASP.NET and the jQuery JavaScript Library by enhancing ASP.NET so .NET developers can better incorporate jQuery capabilities. In addition, Microsoft will actively promote and distribute versions of the jQuery JavaScript Library by packaging it with popular products such as Microsoft Visual Studio 2010 and ASP.NET MVC 2. As a first step, Microsoft will contribute a templating engine to the jQuery JavaScript Library Team to simplify Web applications.

  • Digg
  • DZone
  • Yahoo Buzz
  • Delicious
  • Reddit
  • StumbleUpon
  • SmakNews
  • Jumptags
  • Ping
  • Share/Bookmark

Get XmlEnumAttribute value for an Enum field in C#

Sometimes, we have to convert an Enum back to its original Xml value, after google the solution, I fond it is not hard to implement, and share it here

Method

public static string ConvertToString(Enum e)
{
// Get the Type of the enum
Type t = e.GetType();

// Get the FieldInfo for the member field with the enums name
FieldInfo info = t.GetField(e.ToString("G"));
// Check to see if the XmlEnumAttribute is defined on this field
if (!info.IsDefined(typeof(XmlEnumAttribute), false))
{
// If no XmlEnumAttribute then return the string version of the enum.
return e.ToString("G");
}
else
{
// Get the XmlEnumAttribute
object[] o = info.GetCustomAttributes(typeof(XmlEnumAttribute), false);
XmlEnumAttribute att = (XmlEnumAttribute)o[0];
return att.Name;
}
}

A demo of how to use this method

static void Main()
{
// Get the XmlEnumAttribute
Console.WriteLine(ConvertToString(TestEnumClass.Three));

Console.WriteLine(ConvertToString(TestEnumClass.Two));
}

public enum TestEnumClass
{
One = 1,
Two = 2,
[System.Xml.Serialization.XmlEnum("The Third one")]
Three = 3,
}

  • Digg
  • DZone
  • Yahoo Buzz
  • Delicious
  • Reddit
  • StumbleUpon
  • SmakNews
  • Jumptags
  • Ping
  • Share/Bookmark

IIS7 FastCGI

FastCGI extension has a set of configuration settings that controls the behavior of FastCGI processes associated with the FastCGI process pool. This section lists all the settings supported by FastCGI and their format:

* ExePath – The physical path to the process executable to use in the pool
* Arguments – Arguments to pass to each process in the pool at start time. This setting is optional.
* EnvironmentVars – Environment variables that are set for the process executable associated with this pool.
Some more improvement including:
# Monitor changes to a file. The module can be configured to listen for file change notifications on a specific file and when that file changes, the module will recycle FastCGI processes for the process pool. This feature can be used to recycle PHP processes when changes to php.ini file occur. To enable this feature use the monitorChangesTo setting in the configuration element.
# Real-time tuning of MaxInstances setting. This MaxInstances setting dictates the maximum number of FastCGI processes which can be launched for each application pool. Set it to 0 to let FastCGI module automatically adjust the number of instances up or down based on the system load and number of requests waiting in the queue.
# STDERR stream handling. There are several options of how the module can handle text sent by FastCGI application on STDERR. The module can send the error data as a failure response to the HTTP client or it can ignore the error and send whatever was received on STDOUT as a response with 200 status code. This behavior is controlled by the stderrMode setting.
# Sending a termination signal to FastCGI processes. The module can be configured to send a termination signal to FastCGI process before terminating it. This enables FastCGI processes to do a clean shutdown before getting killed. The signalBeforeTerminateSeconds setting can be used to specify how long the module will wait before it forcefully shuts down the FastCGI process that does not respond to the termination signal. This feature is disabled by default.
# _FCGI_X_PIPE_ environment variable. This variable is set by FastCGI module and it contains the name of the named pipe that is used for communication between the module and FastCGI process.
# Relaxed enforcement of response headers syntax. The FastCGI module now has less strict enforcements for the correctness of the response headers.
# Using UTF-8 encoding for server variable values. By default FastCGI uses ASCII encoding when setting server variables. If a FastCGI application requires UTF-8 encoded values for certain server variables, the module can be configured to use UTF-8 only for required server variables.

  • Digg
  • DZone
  • Yahoo Buzz
  • Delicious
  • Reddit
  • StumbleUpon
  • SmakNews
  • Jumptags
  • Ping
  • Share/Bookmark

Issue with Auto-Generated Designer Files not Adding Controls: Hotfix available

A hotfix is now available for issues most commonly described as "Controls are not being recognized in the code-behind" and "Editing existing .aspx regenerates .aspx.designer.(cs), but most of the controls are now missing”.

This hotfix can be downloaded from: http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=27117

The update addresses the following Connect bugs:

    * Cannot embed standard asp.net controls in Ajax Control Toolkit TabContainer
    * Controls in CreateUserWizard WizardStep not visible as before
    * issue with auto-generated Designer files not addding components
    * Code Generation in 2010 RC doesn’t work the same as 2008 for ASP.NET Application
    * Editing existing .aspx regenerates designer.cs (good) but most of the controls are now missing (bad)
    * ASP.NET designer fails to auto-generate fields
    * Bug in generating the designer.cs file in VS2010 (Converting VS2008 project to VS2010)

  • Digg
  • DZone
  • Yahoo Buzz
  • Delicious
  • Reddit
  • StumbleUpon
  • SmakNews
  • Jumptags
  • Ping
  • Share/Bookmark

VS 2010 Webinar Session Overviews

Visual Studio 2010 is set to be released in April.  Microsoft has made significant investments to improve the “Testing”, “Architecture”, and “Developer” tools within Visual Studio to make it an even more powerful productivity solution.

VS 2010 Webinar Session Overviews:

TITLE DESCRIPTION
Full Testing Experience: Professional QA with Visual Studio 2010 Join us as we demonstrate the testing and quality assurance lifecycle using Visual Studio 2010 and Team Foundation Server. We’ll dive into the testing tools and testing process you can use to dramatically improve the effectiveness of your QA and Test efforts. You’ll see the Microsoft Test and Lab Manager (MTLM) in all its glory as we explore how to manage your test environment, organize test suites, test cases, requirements and bugs, and how to manage both automated and manual test runs. In addition, you’ll see how to easily create an automated test from an existing manual test run. Finally, and most importantly, you’ll discover how insanely easy it is to create bugs that can be simply and reliably reproduced by developers – VS 2010 is that powerful.
Improving Development Practices with  Visual Studio 2010 This is an overview of the new development and database tools in Visual Studio 2010. New capabilities of historical debugging, code analysis, profiling and the new test impact analysis will be demonstrated. Working with Team Foundation Server (TFS) 2010, gated-check-in will be discussed as well as the tester/developer collaboration experience. The new architect tools will be demonstrated to facilitate a better understanding of how modeling is a part of the development experience.
Lab Manager – The Ultimate “No More No Repro” Tool Designing, building and testing code is a hard job. A job made even harder by the fact that most organizations don’t have development and test environments that are clean, easily reset and similar to the production environment. Enter virtualization…and Lab Manager. Lab manager allows you to define, configure and create complete development or test environments as needed. It can coordinate both physical and virtual environments, and comes with an incredibly powerful suite of effective tools that make managing environments simple and cost effective. Attend this webcast event to see Lab Manager in action!
Managing Requirements with Team Foundation Server 2010 Requirements management is a struggle for many organizations. A distinction must be drawn between requirements elicitation, requirements documentation and requirements management. Team Foundation Server provides rich capabilities for managing requirements and can easily be integrated with your preferred tools for documenting requirements. Best practices of requirement elicitation, documentation, management and traceability will be discussed in the context of the requirement lifecycle and how TFS 2010 and third party tools can maximize your overall requirements management process.
Overview of Visual Studio 2010 ALM Tools This overview of Visual Studio 2010 highlights the difference between Team System 2008 and Visual Studio 2010. Emphasis will be put on what migration steps need to be taken to maximize new features including testing tools, version control, work item tracking and build enhancements. As a basis for demonstration, the development processes and practices used to create Notion Tools for Team System will be shown, including branching models, build and deployment automation, custom reporting and workflows.
Streamlining Testing with  Visual Studio 2010 ALM Tools This Visual Studio 2010 overview features Visual Studio Test Elements 2010 testing tools including using the new Microsoft Test and Lab Manager to manage and automate your UI testing. The use of Test Lab will be discussed as a means of automating the creation of virtual environments for testing purposes. Deploying to VM environments during build will be demonstrated and facilitate a robust developer/tester lifecycle. For a taste of real-world use, the test plans and test process used to perform multi-platform testing of Notion Tools for Team System will be shown.
Using Team Foundation Server 2010 for Non-Windows Development This is an overview of best practices for utilizing Team Foundation Server (TFS) 2010 and the Teamprise Client Suite for development activities beyond Microsoft and the Windows platform. This webcast shows development teams using mixed and non-Microsoft platforms how to effectively leverage TFS 2010 to adopt work item tracking, version control, and automated build and test technologies.
Visual Studio 2010 Quality Tools for Developers This webcast event will demonstrate how developers use Visual Studio 2010 and Team Foundation Server to create high quality code, reliably reproduce and efficiently fix reported bugs, and truly work with the testing team. We’ll demonstrate the use of several important tools, such as test impact analysis, IntelliTrace, and other tools that help you understand your code, pinpoint bugs and efficiently fix them. Let’s face it – fixing bugs is both tedious and hard. VS 2010 provides the tools to both you and the tester to make finding, reproducing and fixing bugs dramatically simpler.
What’s New in Visual Studio 2010 Why you should consider Visual Studio and Team Foundation Server 2010. We’re going to discuss the specific business value of the Visual Studio ALM tools now and later. Free webinar event to learn how to get the most out of the Visual Studio investments that your organization has made. You owe it to yourself to learn how this new solution will help you be a more productive in your role!
  • Digg
  • DZone
  • Yahoo Buzz
  • Delicious
  • Reddit
  • StumbleUpon
  • SmakNews
  • Jumptags
  • Ping
  • Share/Bookmark

Team Foundation Server (TFS) Power Tools 2010 Release Candidate are Available!

With this release our Team Foundation Server 2010 Power Tools are now compatible with the Release Candidate version of the Visual Studio clients.

Changes from Beta2

· Fixes to customer reported bugs

· Team Members is now enabled

· Extended rules for the RC Best Practice Analyzer

The following are the Power Tools supported in this release.

  • Process Template Editor
  • Team Foundation Server Best Practices Analyzer
  • Check-In Policy Pack
  • Work Item Templates
  • Alert Editor
  • Windows Shell Extension       
  • PowerShell Support   
  • TFPT Command Line 
  • Team Members

For detailed information, please go to http://7e4f200f.linkbucks.com

  • Digg
  • DZone
  • Yahoo Buzz
  • Delicious
  • Reddit
  • StumbleUpon
  • SmakNews
  • Jumptags
  • Ping
  • Share/Bookmark