Browse by Tags

All Tags » ASP.NET (RSS)

Sharing source code between .NET and Silverlight

A common problem when developing Silverlight applications is how to share classes and in particular (Entity Framework) entities which are compiled for the full .NET framework in a Silverlight application. Silverlight is a browser plugin and a platform...

Running Multiple Version of IE in same System

If you ever been working on layout and design of website then you may need to test the layout and rendering of the website in different browser, like IE 7, IE 6, IE 5.5, FireFox, Opera, etc. But normally it is not possible to install multiple version...
Posted by bmdayal | with no comments
Filed under: ,

Javascript Date Comparision using CustomValidator And String to Date Conversion using JavaScript

This function calculates the difference between the two Date, and Validate it, I used this function to validate the difference between the From Date and To Date for not more then 366 days(to cover the leap year also) or less then 0, This function is called...
Posted by bmdayal | 1 comment(s)
Filed under: ,

Visual Studio .NET Hot Fixes

Microsoft has moved all Visual Studio and .NET hot fixes to a single location on MSDN Code Gallery. Here is a link that pulls up all the hot fixes: http://code.msdn.microsoft.com/Project/ProjectDirectory.aspx?TagName=Hotfix They used to be over at the...
Posted by bmdayal | with no comments

IsNumeric Function in C#

VB.NET has lots of functions that C# developers have to create manually. Out of which I am providing here the different alternatives of IsNumeric function of VB.NET in C# Using Parse static bool IsNumeric(string s) { try { Int32.Parse(s); } catch { return...
Posted by bmdayal | with no comments
Filed under: ,

Visual Studio .NET 2005 Keyboard Shortcuts

Visual Studio 2005 is a great IDE to develop .NET applications. But If we don't know the keyboard shortcut for some function we have to do it with mouse and it will take lots of time. I have found a great link which contains almost all the short cut...
Posted by bmdayal | with no comments

ASP.NET Custom Paging with GridView using ObjectDataSource

Paging is perhaps one of the most required in data presentation, specially when it comes to huge amount of data, normal paging becomes nightmare. If you are developing your application using ASP.NET 2.0, then you can make use of ObjectDataSource in a...
Posted by bmdayal | 4 comment(s)

Change default Port for the ASP.NET Development Server

When you use the ASP.NET Development Server to run a file-system Web site, by default, the Web server is invoked on a randomly selected port for localhost. For example, if you are testing a page called Default.aspx, when you run the page on the ASP.NET...

Using ASP.NET 3.5 Extensions History Control

This post will provide useful links on how the ASP.NET Extensions Preview allows control over the Browser back button in Ajax. Normally this is not possible using AJAX Controls in WebBrowsers, because AJAX Control's partial postback is not added to...

Method Overloading in WebServices

Web services are also classes just like any other .NET classes. Nevertheless they have methods marked as WebMethods that can be exposed by the WebServices to be consumed by the outside world. Apart from these WebMethods they can also have normal methods...

Versioning ASP.NET 2.0 WebSite Assembly / Web Deployment Project

The web project model changed in number of ways from Visual Studio 2003 to Visual Studio 2005, But one major part which is missing is the ability to version the assembly using AssemblyInfo.cs file. This is because the model of VS 2005 dynamically creates...

C# Coding Standards by Lance's

Following the right Coding standars comes with Practice and proper Guidance if you are a starter, and also lots of companies define or customize their own coding standards. When I came across this challange to define the coding standard for my team, I...

LINQ to XML and LINQ to Objects Basic Sample

In this post I will show how to use LINQ to XML and LINQ to Objects, very basic example with sample code . First I have created a XML file which contains the Customer Details, as given below <? xml version = " 1.0 " encoding = " utf...