Tips and Tricks from my Experience

VS 2008 and .NET 3.5 Training Kit

Posted in Micrsoft Promotions by Chakravarthy on December 17, 2007

The Visual Studio 2008 and .NET Framework 3.5 Training Kit includes presentations, hands-on labs, and demos. This content is designed to help you learn how to utilize the Visual Studio 2008 features and a variety of framework technologies including: LINQ, C# 3.0, Visual Basic 9, WCF, WF, WPF, ASP.NET AJAX, VSTO, CardSpace, SilverLight, Mobile and Application Lifecycle Management.

I’ve downloaded this, if any one require this, you can drop me a mail or can collect from me.

VS 2008 and .NET 3.5 Training Kit

Posted in ASP.NET, C# v3.0, Code, Micrsoft Promotions, Tips, Tutorials by Chakravarthy on December 17, 2007

The Visual Studio 2008 and .NET Framework 3.5 Training Kit includes presentations, hands-on labs, and demos. This content is designed to help you learn how to utilize the Visual Studio 2008 features and a variety of framework technologies including: LINQ, C# 3.0, Visual Basic 9, WCF, WF, WPF, ASP.NET AJAX, VSTO, CardSpace, SilverLight, Mobile and Application Lifecycle Management.

Microsoft Products at No Cost – Free

Posted in Micrsoft Promotions, Tips by Chakravarthy on December 17, 2007

Who says that Microsoft manufactures products only to sell ?? Microsoft has many products that are free to download. As am into .NET and specially with Visual Studio, am aware that Visual Studio is free to download from Microsoft’s website. Yes, that’s true.. Microsoft give Visual studio 2008 Express Editions, MSDN Library for Visual Studio 2008 as well as the Runtime for the latest .NET framework 3.5.

Here is the link to learn more towards free products as well as priced products. To know more about the product information about Visual Studio 2008, click here.

Laptop under $100

Posted in Micrsoft Promotions, Tips by Chakravarthy on December 11, 2007

That’s true, you read the title correct. BBC recently wrote about this on 6th Dec 08. Microsoft is working out towards the XP operating system to be a reality on the co called $100 laptop or XO. If things go as scheduled, $100 Laptop or XO will be a reality by the mid 2008.

James Utzschneider, GM for Marketing and Communications from Microsoft, wrote about this at his blog. According to him, about 40 engineers are working towards mid 2008 to come out with a production-quality release. The XO laptop works with 1GB Flash memory, when compared with traditional Hard Disk Drive.

OLPC, One Laptop Per Child, organisation is having a great idea towards making this product into a reality. During June 2008, Intel announced a laptop under $220 with a title as “Classmate PC“. This is similar to that of XO laptop, but some of the basic difference is kind of 2GB Flash memory in ClassmatePC, where as 1GB in XO laptop.

These kind of laptops are really good towards educating the next generation kids towards the technology. Isn’t a great work..

Laptop under $100

Posted in Micrsoft Promotions, Tips by Chakravarthy on December 11, 2007

That’s true, you read the title correct. BBC recently wrote about this on 6th Dec 08. Microsoft is working out towards the XP operating system to be a reality on the co called $100 laptop or XO. If things go as scheduled, $100 Laptop or XO will be a reality by the mid 2008.

James Utzschneider, GM for Marketing and Communications from Microsoft, wrote about this at his blog. According to him, about 40 engineers are working towards mid 2008 to come out with a production-quality release. The XO laptop works with 1GB Flash memory, when compared with traditional Hard Disk Drive.

OLPC, One Laptop Per Child, organisation is having a great idea towards making this product into a reality. During June 2008, Intel announced a laptop under $220 with a title as “Classmate PC“. This is similar to that of XO laptop, but some of the basic difference is kind of 2GB Flash memory in ClassmatePC, where as 1GB in XO laptop.

These kind of laptops are really good towards educating the next generation kids towards the technology. Isn’t a great work..

Servers at Home

Posted in Micrsoft Promotions, Tips, Webcasts by Chakravarthy on December 11, 2007

Servers belong to Office. All these days, wife’s worry that their husband not only work wholly with LapTop, on top of this, Micorosoft is coming out with one more product titling as “Stay at Home Servers“. Don’t you believe this .. pay a visit to their product page. Microsoft addresses this as “WindowsHomeServer“. The advantages explained in nice video. This video has all the possible places that every home can have and what every one can do from every location of common home.

Where are we going .. and where is the infrastructure is moving to ?? anyhow, when will India have all such infrastructure inbuilt apartments or homes built with such facilities.

ASP.NET 3.5 Extensions Preview

Posted in ADO.NET, ASP.NET, Micrsoft Promotions, Tips by Chakravarthy on December 10, 2007

The ASP.NET 3.5 Extensions Preview provides a glimpse of new, powerful functionality being added to ASP.NET 3.5 and ADO.NET next year. This release delivers features that enable high-productivity data scenarios and creates the best server for rich clients. The release includes an ASP.NET model-view-controller (MVC) framework, ASP.NET Dynamic Data, Silverlight controls for ASP.NET, ADO.NET Data Services, an Entity Framework runtime, new features for ASP.NET AJAX and a wide variety of API References as hosted at ASP.NET Official site.

You can download the ASP.NET 3.5 Preview, which contain all the Siliverlight controls, ADO.NET Data Services and many more. There is a forum specially dedicated to ASP.NET 3.5 Preview at ASP.NET Forums.

Calling .NET Component from a classic ASP page

Posted in Code, COM, JavaScript, Tips, vb.net by Chakravarthy on December 6, 2007

After a long time, today, got a requirement from ASP page. Our current client has a major application written in classic ASP 2.0, and we have given him an extension functionality written in .NET with VB as programming language.

Now, we have 2 different applications running at the same box with 2 different technologies, ie., an ASP application and an ASP.NET application. For both of the applications, there is a common functionality talking to the database via a webservice written in Java. The current situation demand a common library that will be reused at both ASP.NET pages as well as ASP pages. Apart of the requirement, the one point that led me to post here is “How to call a .NET Assembly in a Classic page”

Creating .NET Assembly

Imports System
Imports System.Runtime.InteropServices
Public Class MyLibClass
    Public Function MyLibFunction() As String
        Return " Invoked the method from COM successfully .."
    End Function
End Class

With the above code, you can generate a .NET DLL after compiling with either Visual Basic Command Line Utility, VBC.EXE or from the Visual Studio Environment. While compiling this code, give extra attention at the assembly attribute to make the DLL Visible to COM as mentioned below.

<Assembly: ComVisible(True)> 

If you are using the Visual Studio Environment, go to the Project Properties, at the Compile section don’t forget to check the “Register COM interop” check box. This check box will be by default unchecked, indicating that the DLL will not be exposed to COM.

Now the assembly is ready to reuse. But before we start the actual implementation, if you want the Assembly should be register with the GAC, you have to take the assistance from StrongNameKey file. You can create a Strongname Key file with the command utility SN.EXE or from the Visual Studio as well. The command to create the Strongname Key file is as mentioned below

> sn -k strongnamekeyfile.snk

Once you are done with the strong name key file generation, you can attach the key file either with the /keyfile:strongnamekeyfile.snk option or with the assembly attribute as <Assembly: AssemblyKeyFile(“strongnamekeyfile.snk”)>

Now it is the final time to compile your code and do the calling stuff from ASP page. Once you compile the code from Visual Studio, you will have 3 files, .PDB / .TLB / .DLL. The .DLL is the actual file. You have to do 2 things to share this DLL.

Register as COM as well as with GAC

Now that the DLL is ready, we will take the assistance of REGASM command line utility to register as public assembly.

> regasm /codebase /tlb:a.tlb OurAssemblyFile.dll

With this command, the DLL will be registering at the registry. Please don’t forget to use the /codebase option. To register the same with GAC use the following command

> gacutil /if OutAssemblyFile.dll

This command will register with the GAC and is available as reference within the .NET Framework. With the first command, the object is ready to invoke from ASP code. You can use the COM component with Server.CreateObject(“OurAssemblyFile.ClassName”) command from ASP page. The actual implementation at any ASP page will look like as mentioned below

 dim objCom 
 set objCom = Server.CreateObject("libraryNameSpace.libraryClass")
 objCom.DoSomeWork() ' this method doesn't return any value

Finally, if this page throw any kind of error as Unindentified Class name, then the only solution is to reset the IIS.

Mix: UK 07 Vedios

Posted in Code, Tips, Webcasts by Chakravarthy on December 5, 2007

For all those who didn’t attend the Mix at UK during Sep 07, here is a good news. The good news is not only for those who didn’t attend the MIX, but for all the technology lovers as well as persons who are passionate about latest technology happenings.

The two day event is now available for offline viewing at their website. Here is the link that give you the download of all the videos of all the sessions that happened. Isn’t nice for all of us, who missed the event and who couldn’t afford to attend the event.

It’s time to download and view them offline. Am going to download all the events, if any of you doesn’t have the i-net connectivity or by any issue, could not download these videos, drop me a mail at DSKCHECK at MSN dot COM

Catch you later..

Live goes deep while searching

Posted in Tips by Chakravarthy on December 4, 2007

Most of the industry say that, Google is the top search engine and will give you lot of results when you search. But the missing point is that, Live Search gives you deeper search when compared to Google.

Surprising !!!! i just did a small search for my name, Chakravarthy, at both the search engines. To make the figures matter, i go upto 100 pages in Live Search results. Where as, Google takes me only upto 84 pages. To my surprise, when i go back to the 83 page, then i see the search pages count is increased from 84 to 87. is isn’t it weird ..

And adding to my surprise, i read a statement at the bottom of the last search page as

In order to show you the most relevant results, we have omitted some entries very similar to the 870 pages already displayed

 

Don’t believe !!!! Try out your self..