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..