Sunday, June 18, 2006

What is Project Glidepath ?

Project Glidepath is an Evangelism program to help the ISVs to develop application using .NET Framework 3.0.

To know more about Project Glidepath visit
http://projectglidepath.net/glidepath/default.aspx

Asp.Net 2.0 Data Access Articles

Are you looking for a good article to learn about data access in Asp.net 2.0?
There is a place to get it.First 10 of 50 articles are now available in
http://www.asp.net/learn/dataaccess

It covers following topics:

  1. Creating a Data Access Layer
  2. Creating a Business Logic Layer
  3. Master Pages and Site Navigation
  4. Displaying Data With the ObjectDataSource
  5. Declarative Parameters Programmatically
  6. Setting the ObjectDataSource's Parameter Values
  7. Master/Detail Filtering With a DropDownList
  8. Master/Detail Filtering With Two DropDownLists
  9. Master/Detail Filtering Across Two Pages
  10. Master/Detail Using a Selectable Master GridView with a Details DetailView

Wednesday, June 14, 2006

.NET Framework 3.0 and WinFx

In TechEd 2006 Microsoft officially announced the new name for WinFx platform as .Net Framwork 3.0 which includes Windows Presentation Foundation (WPF), Windows Communication Foundation (WCF), Windows Workflow Foundation (WF) and the newly christened Windows CardSpace (WCS) formerly known under the codename “InfoCard.” The .NET Framework 3.0 will still ship with Windows Vista, and will be available down-level for Windows XP and Windows Server 2003 as planned. This change doesn’t affect in any way the ship schedules of either Windows Vista or the .NET Framework 3.0 itself.
To know more visit 1 Stop WebSite for .NET 3.0

Saturday, June 10, 2006

Code Snippets : A new feature in Visual studio 2005

Code Snippets are reusable, task-oriented blocks of code.Code Snippets provide simple code generation for repetitive tasks within the Visual Studio 2005 IDE. For example, rather than typing a complete property declaration or case statement, just type a brief shortcut, TAB, and fill in a couple of values. The construct is built for you. Visual Studio 2005 includes code snippets covering tasks ranging from creating a custom exception, to sending an e-mail message, to drawing a circle. A set of Visual Basic and Visual C# Code Snippets are included in the Visual Studio 2005 box.

Where to get the Code snippets?
A set of code snippets for VB.Net is available in Visual Studio 2005 box. The C# version of the code snippet can be downloaded from following URL.
You can get code snippet from various thirdparty vendors also.Here is a website where you can get free code Snippets.

How to create your own code snippet?

It is very easy to create your own code snippet using VS.NET Editor.To learn more about creating a code snippet visit following URL.
http://aspnet.4guysfromrolla.com/articles/122105-1.aspx

A code snippet editor also available for free download using which code snippet can be created easily.You can download it from following URL
http://msdn.microsoft.com/vbasic/downloads/tools/snippeteditor/

Saturday, May 13, 2006

JSON : JavaScript Object Notation

JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others. These properties make JSON an ideal data-interchange language.
JSON is built on two structures:
1.A collection of name/value pairs. In various languages, this is realized as an object, record, struct, dictionary, hash table, keyed list, or associative array.
2.An ordered list of values. In most languages, this is realized as an array, vector, list, or sequence.These are universal data structures. Virtually all modern programming languages support them in one form or another. It makes sense that a data format that is interchangable with programming languages also be based on these structures.

JSON's simplicity has resulted in its widespread use, especially as an alternative to XML in Ajax. One of the claimed advantages of JSON over XML as a data interchange format in this context is that it is much easier to write a JSON parser. In JavaScript itself, JSON can be parsed trivially using the eval() procedure. This was important for the acceptance of JSON within the Ajax programming community because of JavaScript's ubiquity among web browsers.

DotNet Ajax Frameworks

AJAX Asynchronous JavaScript And XML is a widely used buzz word now in web development world.There are some many libraries available to develop ajax enabled web application in asp.net with less effort and less code. i am listing few of them here.
ASP.NET 2.0 Atlas

Atlas is Microsoft's in-progress AJAX project.ASP.NET Atlas is a package of new Web development technologies that integrates an extensive set of client script libraries with the rich, server-based development platform of ASP.NET 2.0.With Atlas, you can take advantage of the best of ASP.NET and server-side code while doing much of the work in the browser, enabling a richer user experience.It provides rich set of client side and server side controls.It is still in Beta.

Ajax.NET for ASP.NET 1.x/2.0

It is a basic AJAX library for ASP.NET which provides the very basic AJAX capability to make xmlhttp callbacks. Does not have any 'Ajax-enabled' controls or support for Viewstate, etc.

Anthem.Net for ASP.NET 1.x/2.0

Anthem.NET provides a set of ajax-enabled controls inherited from ASP.NET server controls, with most AJAX behaviours pre-built, avoiding lots of client Javascript. It supports Viewstate so that you can actually modify server controls (either Anthem controls, or ASP.NET controls inside an Anthem control, e.g. panel) in your serverside code, in C# or VB without having to mess about in JavaScript. Unlike some other Ajax implementations the system supports callbacks for Anthem controls that are inside user controls, and even for wizards and master pages.

AjaxAspects

AjaxAspects is an engine that uses JavaScript proxies to call server-side WebService methods. It is built upon JavaScript client proxy methods for standard web services. (Just call a regular JavaScript method to call a method on the server). it uses standard SOAP and WSDL for the communication between client and server. it supports Multiple types, Arrays and XML objects as parameters and return values.It has soem other features like Caching on the client and server ,Queuing actions,Delaying actions.Many AJAX Controls also available that integrate in standard ASP.NET Web Forms.

Bitkraft for ASP.NET

Bitkraft Bitkraft is a CLR based (.NET) web framework that allows distributed web content to be created and served in a unique fashion. It is written in C# and compiles for operation under the Microsoft .NET Framework 1.1+ or the .Mono Framework, making it portable to almost any platform.At it's core, the Bitkraft framework extends the ASP .NET Architecture to fully support Javascript-based Server callbacks using the XmlHttpRequest object as a transport layer in a fashion referred commonly today as AJAX (Asynchronous Javascript Over XmlHttpRequest). It uses Uses JSON instead of XML .
With Visual WebGUI you program outlook web access like applications by programming with WinForms like server side objects.It works both ASP.NET 2.0 & 1.1 .It provides all most all of WinForms controls and can be extendable.It doesnot require any usage of JavaScripts,HTML or any other web language (Full WinForms abstraction).





Sunday, May 07, 2006

What is new in IIS 7.0 for Web Developers

Flexible Extensibility Model for Powerful Customization:
IIS 7 enables developers to extend IIS to provide custom functionality in new, more powerful ways. IIS7 extensibility begins with an all-new core server API-set, which supports both native (C/C++) and managed (C#, VB.NET) feature module development. IIS7 also enables extensibility of configuration, scripting, event logging, and administration tool feature-sets, providing software developers a complete server platform on which to build Web server extensions.

Rich Troubleshooting Tools and Diagnostic Information:
IIS 7 enables developers and IT Professionals to more easily troubleshoot errand Web sites and applications. IIS7 provides a clear view of internal diagnostic information about IIS, and collects and surfaces detailed diagnostic events to aid troubleshooting problematic servers.

All New Delegated Administration:
IIS7 enables Web Hosters and IT Professionals to safely and securely delegate fine-grained administrative control to developers and content owners, reducing cost of ownership and administrative burden for the Administrator. IIS7 enables Administrators to delegated configuration tasks to developers, and supports delegated administration of sites and applications through an all-new administration tool.

Enhanced Security through Workload Customization:
IIS 7 is designed to enable the Developer to customize in a fine-grained manner exactly which features should be installed and running on their Web server. IIS is now factored into 40+ feature modules that can be independently installed on the server, dramatically reducing the security attack surface of the server, and providing Developers and Administrators more confidence and control over their servers.

Improved Support for Server Farms:
IIS 7 makes deployment and management of content and configuration data in server farm scenarios easier than ever before. IIS 7 provides an easy way for Web site and application configuration to be copied between servers. Configuration information can now be shared across multiple front-end servers, avoiding costly and error-prone replication and manual synchronization issues that plague today’s Administrators.

Application and Health Management for Web Services:
IIS 7 enables development and hosting of Web services, over any protocol, in a secure and robust environment. The Windows Activation Service (WAS) is a Windows Vista / Longhorn Server system service that provides process activation and health management services for all types of message-activated applications. WAS is an evolution of the robust and secure IIS 6.0 request processing model, which was extended in this release to support pluggable activation for arbitrary protocol listeners. WAS provides applications with intelligent resource management, on-demand activation, health-monitoring, and automatic failure detection and recycling.WAS includes a worker process environment that hosts applications independent from message protocol. For example: an application hosted by WAS may live in a single application domain within a given process and still communicate over multiple protocols.

Sunday, April 30, 2006

Microsoft Office Open XML Format

Microsoft “Office 12” the new version office will introduce new default XML file formats for Microsoft Office Word word processing, Excel spreadsheet, and PowerPoint presentation graphics programs, and will change the way developers can approach solutions based on Office documents.The new Microsoft Office Open XML Formats introduce a number of benefits like interoperable , robust , efficient ,secured that will accrue not only to developers and the solutions they build, but also to individual users and organizations of all sizes.

Here is a nice place to find resources about open xml format document
http://openxmldeveloper.org/

Saturday, April 29, 2006

Asp.Net 2.0 Tips&Tricks

1. App_offline.htm
It Enables you to gracefully take a server application “offline” for maintenance.It is very much useful when making big changes/upgrades.This feature can be enabled by adding a “app_offline.htm” file at the root of an applicationwhich causes ASP.NET app to shutdown and causes all dynamic requests to return app_offline.htm file contents

Tip: Make sure the app_offline.htm file is large enough (512 bytes) to disable the IE “friendly http errors” feature

2.Cross Page Post-backs
In asp.net 2.0 you can directly postback to another page from a server contro.You can do it by using “PostBackUrl” property .It can be declaratively or programmatically set.Another advantage is that Postback “target page” has full access to server controls for “originating page”.You can access controls via “Page.PreviousPage” property

3.Validation Groups
It Enable validation controls to only apply in response to a specific button/action by the use of “ValidationGroup” property

4.MaintainScrollBackPosition
It enable pages to automatically maintain the current scroll position across postbacks by using the following page directive attribute

5.Default Button
It Enable developers to identify default button behavior when the “enter” key is hit .It Can be set on control to identify default for the form.it Can also be set on control to override form behavior when an input control has focus in the browser

6.Default Focus.
It enable developers to identify default focus behavior when page is loaded .It can an be set on control to identify default for the form .it an also be programmatically set:
Page.SetFocus(control)TextBox.Focus()

7.SetFocusOnError
It enable developers to force focus on a control when a validation error occurs by setting as a property on the validation control

8.Client Script Handlers
In Asp.net 2.0 new features called client side script handler is introduce to wtite events on both clien and server site.

9.Web.Config Registration of Controls
Server controls can now be registered within web.config files instead of on every page

10.CSS Control Adapters
ASP.NET 2.0 supports a “control adapter” architecture that allows developers to customize and override rendering semanticsEg: use CSS instead of tables/inline-styles.It can be enabled by adding a .browser file within /app_browsers directory that maps a control to a control-adapter class

Analyze your .NET code using NDepend

NDepend is a free tool taht analyses .NET assemblies of an application and generates reports containing design quality metrics, warnings and diagrams.This tool also provides a graphical view of the analysis report.It supports code query language(CQL) to write the code quality constraint,code naming constraint,design constraint etc.It provides Application Metric,Assembly Metric,Assembly Abstracness vs. Instability,Assembly Dependency Diagram,Assembly build order and much more informations about the assembly.
You can download it from following URL.

Tuesday, April 25, 2006

Threat Analysis & Modeling

Application Security is very important for all the Applications .So it is a good idea to analyze the threats to the application at the design phase of the application.Recently Microsft has released a Threat Analysis & Modeling tool which can be used to analyze and model the threats in various phase of your software development life cycle.

Creating a threat model using the Microsoft Application Security Threat Analysis & Modeling tool is a three-phase process. First, you define your application context. Second, you model your threats on top of your application context. Third, you measure the risk that is associated with each threat. Once you have completed these phases, you can assimilate your threat models through analytics, visualizations, and reports.

The Threat Analysis & Modeling tool automatically generates potential threats to your software application, based solely on known information that you provide. The Threat Analysis & Modeling tool also has the capability to assimilate the information you provide to build security artifacts such as access control matrices, data flow and trust flow diagrams, and focused, customizable reports.

You can download it from Microsoft MSDN security center and try it .

Monday, April 24, 2006

Highway Code: The drive for safer coding!

Do you want to write safer code ? Do you want to build a secured Application using .NET platform ? Here is the book that gives you the checklists to check while developing a secured Application and also lot more about security.

Download it from following URL.
http://www.microsoft.com/uk/msdn/security/dev_highway.mspx

Tuesday, April 18, 2006

What is the difference between Asp.Net 1.1 and 2.0 Paging Model ?

There is a mojor difference between asp.net 2.0 and 1.1 paging model. In 2.0 the aspx markup file and code beside class compiles at same time due to the nice feature partial class.The compilation model produces a comfortable coupling between the declarative markup and the class in the code-beside file. This is ‘vertical coupling’.

In 1.1 there is unwanted coupling between types in the code-behind files. This is ‘horizontal coupling’. Instead of using a layer of indirection, like an interface, base class, delegate, or event, types in the code-behind files can reference each other directly and produce brittle code.

So definitely 2.0 compilation model is better thean 1.1 compilation model.

Microsoft has released Web application project Add-ons same like that in ASp.NET 1.1.Please check y previous post.

HTML spell checker add-on to Visual Studio

Do you want to check spell in your Asp.Net HTML editor .Visit following url and and download the Add on.Spell checker works in Source view.It is able to extract text from markup elements and use Office 2003 spell checker to check the text.You can also configure it check for specific elements .

http://blogs.msdn.com/mikhailarkhipov/archive/2006/04/17/577471.aspx

Monday, April 17, 2006

Are you missing Asp.Net Web Application in 2.0 ?

In Asp.Net 2.0 the ASP.Net web application has been replaced by asp.net website.But still we are missing the web project that was available in VS.Net 1.1 .But good news is that microsoft has released the Web Application project add-in for 2.0 with new features.

Download it from following URL and try it today.
http://msdn.microsoft.com/vstudio/default.aspx?pull=/library/en-us/dnvs05/html/WAP.asp

Sunday, April 16, 2006

Membership Provider source code released

The source code for the built-in providers for ASP.NET 2.0 has now been released. Learn how they were built, and how to create your own providers

Please visit following link to see more details.
http://weblogs.asp.net/scottgu/archive/2006/04/13/442772.aspx

Tuesday, April 04, 2006

why we need to switch into VS.NET 2005?

Have a look at 400 difference..A nice animated site...

http://www.400plusdifferences.com/

Monday, April 03, 2006

Microsoft Application Verifier

The Microsoft® Application Verifier (AppVerifier) is a runtime verification tool for unmanaged code that assists in finding subtle programming errors, security issues and limited user account privilege problems that can be difficult to identify with normal application testing techniques.

To Know more about Microsoft Application verifier visit following URL..

http://msdn.microsoft.com/security/default.aspx?pull=/library/en-us/dnsecure/html/appverifier_sdl.asp
http://www.microsoft.com/technet/prodtechnol/windows/appcompatibility/appverifier.mspx

You can download this tool from following URL.
http://www.microsoft.com/downloads/details.aspx?FamilyID=bd02c19c-1250-433c-8c1b-2619bd93b3a2&DisplayLang=en

Sunday, April 02, 2006

Cross Site Scripting

Cross-site scripting is a potentially dangerous security exposure that should be considered when designing a secure Web-based application

Coss-site scripting poses server application risks that include, but are not limited to, the following:
  • Users can unknowingly execute malicious scripts when viewing dynamically generated pages based on content provided by an attacker.
  • An attacker can take over the user session before the user's session cookie expires.
  • An attacker can connect users to a malicious server of the attacker's choice.
  • An attacker who can convince a user to access a URL supplied by the attacker could cause script or HTML of the attacker's choice to be executed in the user's browser.
  • Using this technique, an attacker can take actions with the privileges of the user who accessed the URL, such as issuing queries on the underlying SQL databases and viewing the results and to exploit the known faulty implementations on the target system.

To know more about Cross site scripting visit following URL

http://www.cgisecurity.com/articles/xss-faq.shtml

Microsoft has realeased a anti-cross site scripting Library which can be used to provide comprehensive protection to Web-based applications against Cross-Site Scripting (XSS) attacks.

It can be downloaded from following link

http://www.microsoft.com/downloads/details.aspx?FamilyID=9A2B9C92-7AD9-496C-9A89-AF08DE2E5982&displaylang=en

Saturday, March 18, 2006

New Events in ASP.NET 2.0

ASP.NET 2.0 adds quite a few new events to allow you to follow the request-processing more closely and precisely. These new events are discussed below

PreInit :This occurs before the page begins initialization. This is the first event in the life of an ASP.NET 2.0 page.
InitComplete :This occurs when the page initialization is completed.
PreLoad:This occurs immediately after initialization and before the page begins loading the state information.
LoadComplete:This occurs at the end of the load stage of the page's life cycle.
PreRenderComplete:This occurs when the pre-rendering phase is complete and all child controls have been created. After this event, the personalization data and the view state are saved and the page HTML is rendered