Visual Studio 2005, 2008; ASP.NET 2.0, 3.0, 3.5; ADO.NET; C#; Visual Basic.NET; XML; Web Services; Windows Services; AJAX; Silverlight; LINQ; Visual Studio Team System; REST;
Wednesday, November 05, 2008
Free ASP.NET 3.5 Training Video Downloads
You can download and learn a lot from all of these video tutorials:
ASP.NET AJAX Support in Visual Studio 2008
The ListView Control
The DataPager Control
Visual Studio 2008 and Nested Masterpages
New Designer Support in Visual Studio 2008
JavaScript Intellisense Support in Visual Studio 2008
JavaScript Debugging in Visual Studio 2008
Multi Targeting Support in Visual Studio 2008
Quick Tour of the Visual Studio 2008 Integrated Development Environment
Creating and Modifying a CSS File
Adding AJAX Functionality to an Existing ASP.NET Page
Creating and Using an AJAX-enabled Web Service in a Web Site
How Do I: Create a Master Page in Visual Studio 2008
How Do I: Create Nested Master Page in Visual Studio 2008
How Do I: Cascading Style Sheets in Visual Studio 2008
How Do I: Working with Visual Studio 2008 .NET Framework
How Do I: Adding Elements to a CSS File and Create New CSS on the Fly
How Do I: Advance Cascading Style Sheet Features and Management
How Do I: Converting a .NET 2.0 Windows Forms Application to .NET 3.5
How Do I: Get Started with the Entity Framework
How Do I: Use the New Entity Data Source
ASP.NET AJAX: A demonstration of ASP.NET AJAX
How Do I: Serialize a Graph with the Entity Framework
Watch ASP.NET Development in Action
How Do I: Use MSBuild to Automate the ASP.NET Compiler and Merge Utilities
I hope you'll enjoy these videos.
Friday, February 15, 2008
Find if network is available and connected using C#
In order to find out connected networks in Microsoft.Net using either C# or Visual Basic.Net we can use System.Management namespace. There are two classes available in this namespace that can help us achieve this goal. These two calsses are ObjectQuery and ManagementObjectSearcher. The following code snippet first creates a query object that will be used to get all the networks available to our machine and then the ManagementObjectSearcher class' object will execute this query to return the results.
ObjectQuery objQuery = new ObjectQuery("select * from Win32_NetworkAdapter Where NetConnectionStatus=2");
Here NetConnectionStatus=2 means the network connections that are connected right now. Normally, these are the connections which are connected to the internet i.e. Cable, Wireless internet connection etc.
ManagementObjectSearcher searcher = new ManagementObjectSearcher(objQuery);
int connectednetworks = searcher.Get().Count;
if (connectednetworks <= 0)
return false;
Wednesday, February 13, 2008
How to ping a server programatically in .net using C#
Microsoft.Net framework 2.0 provides Ping class under System.Net.NetworkInformation namespace which can be used to ping an IP. Following is the snippet which let you do this:
Ping objPing = new Ping();
PingReply objPingReply = objPing.Send("IP of the Machine");
if (objPingReply.Status == IPStatus.Success)
{
return true;
}
else
{
return false;
}
Tuesday, February 12, 2008
Register a COM DLL from .Net application using C#
Following code snippet uses Process class of System.Diagnostics namespace. Just create an object of process class and pass few arguments to get the DLL registered in windows.
System.Diagnostics.Process Proc = new System.Diagnostics.Process(); Proc.StartInfo.FileName = "regsvr32.exe";
Proc.StartInfo.Arguments = "filename.dll /s";
Proc.StartInfo.CreateNoWindow = true;
Proc.Start();
Proc.WaitForExit();
Monday, February 11, 2008
Open a webpage on button click in asp.net using C#
Sometimes we need to open a web page using a button click event. This post contains a sample code that can be used in a button click event to show a page using Javascript Window.open method. This code snippet is just a small piece just to give you an idea for the startup stuff. I hope you can improve, and modify it according to your need to achieve your required goal.
Here is the sample code. You can put this code in the click event of a button etc.
string strpage = "Url of the page to be opened";
string url = "";
this.RegisterStartupScript("", url);