Search This Blog

Wednesday, January 30, 2008

Improvements in ASP.NET 3.5

  • A new data control, ListView, for displaying data
  • A new data source control, LinqDataSource, that exposes Language Integrated Query (LINQ) to Web developers through the ASP.NET data source control architectures
  • A new tool, ASP.NET Merge Tool (Aspnet_merge.exe), for merging precompiled assemblies
  • Tight integration with IIS 7.0. ListView is a highly customizable control (using templates and styles) that also supports edit, insert, and delete operations, as well as sorting and paging functionality.
  • The paging functionality for ListView is provided by a new control called DataPager. You can use the merge tool to combine assemblies to support a range of deployment and release management scenarios.
  • The integration of ASP.NET and IIS 7.0 includes the ability to use ASP.NET services, such as authentication and caching, for any content type. It also includes the ability to develop server pipeline modules in ASP.NET managed code and supports unified configuration of modules and handlers.

What's New in the .NET Framework Version 3.5

This topic contains information about new and enhanced features in the .NET Framework version 3.5.

.NET Compact Framework

The .NET Compact Framework version 3.5 expands support for distributed mobile applications by including the Windows Communication Foundation (WCF) technology. It also adds new language features such as LINQ, new APIs based on community feedback, and improves debugging with updated diagnostic tools and features.

For details about these new features and enhancements, see What's New in the .NET Compact Framework Version 3.5

ASP.NET

The .NET Framework 3.5 includes enhancements in targeted areas of ASP.NET and Visual Web Developer. The most significant advance is improved support for the development of AJAX-enabled Web sites. ASP.NET supports server-centric AJAX development with a set of new server controls and APIs. You can enable an existing ASP.NET 2.0 page for AJAX by adding a ScriptManager control and an UpdatePanel control so that the page can update without requiring a full page refresh.

ASP.NET also supports client-centric AJAX development with a new client library called the Microsoft AJAX Library. The Microsoft AJAX Library supports client-centric, object-oriented development, which is browser-independent. By using the library classes in your ECMAScript (JavaScript) you can enable rich UI behaviors without roundtrips to the server. You can mix the degree of server-centric and client-centric development to meet the needs of your application. Furthermore, Visual Web Developer includes improved IntelliSense support for JavaScript and support for the Microsoft AJAX Library.

ASP.NET and Visual Web Developer now support the creation of both ASMX and WCF-based Web services and the seamless use of either implementation from Web pages using Microsoft AJAX Library. Furthermore, server-side application services including forms authentication, roles management, and profiles are now exposed as Web services that can be consumed in WCF-compatible applications, including client script and Window Forms clients. ASP.NET enables all Web-based applications to share these common application services.

Saturday, January 19, 2008

How to share one Internet connection with another computer using Vista?

If you have more than one computer at home and have only one internet connection, you might be wondering how to use internet in both the computer.
Let’s assume there are two computers A and B. Computer A runs on Windows Vista and Computer B runs on Windows XP.

Computer A is connected to Internet via cable, so this will be connected through a LAN card. Now to connect computer B, you will need another LAN card in computer A or if you want to connect to more than one computer, you will need a wired hub.

First let me explain how to connect two computers in LAN.

Step 1: In Vista, before doing this you should enable Sharing and Discovery. You can do that by going to Control Panel -> Network and Sharing Center. Under the section ‘Sharing and Discovery, enable Network discovery, File Sharing, Public folder sharing and others if you want to. (See picture below)




Here, first network represents connection to internet and second one the local connection with another computer.

Step 2: If your LAN card that is connecting to another computer is installed, it will be shown under Control Panel -> Network Connections.

Step 3: Right click that local area connection and click properties.

Step 4: Under the tab ‘Networking’, click the properties Internet Protocol Version 4 (TCP/IPv4).

Step 5: Click the radio button to ‘Use the following IP’ and give an IP address (For example, IP address: 192.168.0.1 and Subnet Mask: 255.255.255.0)

Step 6: Don’t give any other information, Click Ok and close everything.

Step 7: In computer B, make sure you enable the LAN card which is used to connect to computer ‘A’. Here you need not give any IP information as Computer ‘A’ will assign an IP address dynamically. If it’s not working make sure there are no IP assigned and change the properties to ‘Obtain an IP address automatically’.

Step 8: Test the connection by pinging. (You can do this by typing ping 192.168.0.1 or whichever is Compter ‘A’s IP in the comand prompt)

Sharing the Internet connection of computer ‘A’ with computer ‘B’:

Right click LAN card which is connected to Internet under Control Panel -> Network Connections and click ‘Sharing’ tab and enable both the options to share Internet. (Note: Unless there is another enabled LAN setting you will not be able to see the shared tab under properties)

Click Ok and close. This option is given by the Windows OS known as ICS (Internet Connection Sharing).

Now you can use Internet from both Computer A and Computer B from a single connection.

Wednesday, January 02, 2008

Configuration of SMTP Server using CDO.Message

We can set the settings of SMTP Server as given below:

Mail.SmtpMail.SmtpServer = "Give ur SMTP Server port if u have " or else give 127.0.0.4 or SMTPOut.SecureServer.Net

newMail.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2

newMail.Fields("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1

newMail.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = "ur Smtp user name"

newMail.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "ur SMTP Server Password"


Note: For testing in ur Local System u can set the Outlook Email Id as ur userName and Outlook Password as ur Password for sendusername and sendpassword

Hope this answered ur question..

Wednesday, November 28, 2007

Four Foundation Technologies

.Net 3.0 introduced a key new language called XAML. XAML is a declarative XML-based language that defines objects and their properties in XML allowing customers to develop workflows (WF) and immersive user experiences (WPF) declaratively. Let us explore the key pillars of the .NET 3.0 framework in greater detail in this post.

Windows Communication Foundation (WCF)



















WCF allows you to architect services by offering a standards- based framework and a composable architecture. The three key design philosophies for WCF are interoperability, productivity and service-oriented development.Microsoft provides a number of messaging layer channels and service model layer behaviours that can be added and removed easily. It also allows you to define your own custom instances, for example you can write or buy a custom encoder for ASCII and insert it as a reusable channel in the messaging layer that can be used across various systems. WCF interoperates with existing investments and combines and extends existing Microsoft distributed systems technologies like Enterprise Services, System.Messaging, Microsoft .NET Remoting, ASMX and Web Services Extensions (WSE). This change implies that you can use a single model for different types of application behaviours which significantly reduces the complexity in application development. WCF also offers interoperability with non-Microsoft applications through support of the WS-I basic profile and a number of additional WS-* standards.

Finally in terms of productivity you can get a significant order of magnitude difference in developing secure transactional web services using WCF. Think of WCF as tens of thousands of lines of code that you would need to develop, generate and maintain, but instead are provided now as part of the base framework. WCF offers one of the first core programming frameworks that have been designed from the ground-up for services oriented development.

Windows Workflow (WF)










Workflow Foundation is an enterprise class workflow development framework and engine that has taken declarative workflow mainstream for the first time. WF supports human, system, sequential and state-machine workflows. It provides runtime infrastructure, flexible flow control, long running and stateful work flows and runtime and design time transparency and auditing capabilities for compliance and record management. Workflow Foundation allows you to define a workflow as a set of activities. Activities are the unit of execution and allow for easy re-use and composition. Basic activities are steps within a workflow while composite activities contain other activities. You can add and remove activities even when a workflow is already in progress allowing you significant flexibility in terms of change. Workflow Foundation provides a base activity library out-of-the-box and a framework for partners and customers to easily author custom activities.In terms of authoring options, you can use XAML mark-up only, mark-up plus code or code-only. Visual Studio 2005 Designer for Workflow Foundation is available as a downloadable plug-in and provides a drag-and-drop design surface, intuitive graphical tools, integration with the Properties window, debugging and graphic Commenting capabilities.




Friday, November 23, 2007

.Net 3.0 Introduction



Introduction:

In the programming field, .NET is the most successful development platform..Net Framework 2.0 is enough to satisfy for most of us. .NET Framework 3.0 came with many new and useable features. With .NET Framework 3.0, developers feel more easy when develops. In the new version of .NET, there is nothing new with CLR (Common Language runtime) but it introduces four new technologies. The latest versions of .NET are .NET Framework 3.0. Programming with .NET Framework 3.0 become more advance.

It is built with all the advantage of .NET framework 2.0, and is all set to bring in a paradigm shift in the way we write our applications today. When we go to develop any application then the main goal we set is, to create the Best application in least amount of time. 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 newly released framework was earlier named as WinFx! .NET Framework 3.0 , compromise of familiar .NET Framework2.0 components (ASP.NET, ADO.NET, Window Forms etc).There are four new technologies in .NET Framework 3.0. These technologies are added to face the new challenge of software development. These new complementary technologies are added to address some of the most arduous challenges of contemporary software development.

The New in .NET Framework 3.0

Here .NET Framework 3.0 is same like as .NET Framework 2.0, but with some new technology and feature. The entire features are same in new framework, which was in .NET Framework 2.0.

As .NET 2.0 and 3.0 share the same CLR, everything written in .NET 2.0 works in .NET 3.0 which is an important and significant departure from previous versions. In terms of change, for those who love algebra equations the relationship can be summed anecdotally as:

The .NET Framework 3.0 achieves this objective through four key standards-based pillars corresponding to areas identified and requested by our customers. It also introduced a key new language called XAML. XAML is a declarative XML-based language that defines objects and their properties in XML allowing customers to develop workflows (WF) and immersive user experiences (WPF) declaratively.

.NET 3.0 = .NET 2.0 + Windows Communication Foundation + Windows Presentation Foundation + Window CardSpace + Workflow Foundation


The .NET 3.0 introducing four new foundation technologies:

Windows Presentation Foundation (WPF)
Windows Communication Foundation (WCF)
Windows Workflow Foundation (WWF)
Windows Card Space (WCS)

Lets learn WPF in the Next Post.