All-In-One ASP.NET Code Samples

 

Introduction

The All-In-One ASP.NET code samples demonstrate the typical programming topics about ASP.NET. These topics are either frequently asked in MSDN forums and Microsoft Support, or are requested by many developers via our code sample request function. We want to alleviate the frustration felt by developers when they are developing ASP.NET projects.

 

Visual Studio 2008 Code Samples

Sample Description Download ReadMe
CSASPNETAjaxExtender ASP.NET AJAX Extender (C#) Download ReadMe.txt
CSASPNETAjaxScriptControl ASP.Net Ajax ScriptControl (C#) Download ReadMe.txt
CSASPNETCacheAPI ASP.NET Cache API (C#) Download ReadMe.txt
CSASPNETCascadingDropDownList Cascading Drop Down List in ASP.NET (C#) Download ReadMe.txt
CSASPNETCustomDataSourceForRDLC ASP.NET custom data source for rdlc (C#) Download ReadMe.txt
CSASPNETCustomHttpHandlerandModule ASP.NET custom HTTP handler and module (C#) Download ReadMe.txt
CSASPNETDataPager ASP.NET DataPager control (C#) Download ReadMe.txt
CSASPNETExcelImportExport Import and export Excel worksheet in ASP.NET (C#) Download ReadMe.txt
CSASPNETFormViewUpload ASP.NET FormView control (C#) Download ReadMe.txt
CSASPNETGridView ASP.NET GridView control (C#) Download ReadMe.txt
CSASPNETImageMap ASP.NET ImageMap control (C#) Download ReadMe.txt
CSASPNETMenu Menu in ASP.NET (C#) Download ReadMe.txt
CSASPNETMVCCustomActionFilter Custom ActionFilters for ASP.NET MVC (C#) Download ReadMe.txt
CSASPNETMVCDataView Use DataViews in ASP.NET MVC to handle the data processing (C#) Download ReadMe.txt
CSASPNETMVCFileDownload ASP.NET MVC File Download sample Download ReadMe.txt
CSASPNETMVCPager ASP.NET MVC Pager (C#) Download ReadMe.txt
CSASPNETOutputCache Output cache in ASP.NET (C#) Download ReadMe.txt
CSASPNETPageValidation ASP.NET Validator Controls (C#) Download ReadMe.txt
CSASPNETRDLCMainSubReport   Download ReadMe.txt
CSASPNETReportViewerExport Export report viewer data (C#) Download ReadMe.txt
CSASPNETRssFeeds Create a RSS feed using ASP.NET (C#) Download ReadMe.txt
CSASPNETSendMail Send email in ASP.NET (C#) Download ReadMe.txt
CSASPNETUserControlEventExpose   Download ReadMe.txt
VBASPNETAjaxExtender ASP.NET AJAX Extender (VB) Download ReadMe.txt
VBASPNETFileUpload File upload in ASP.NET (VB) Download ReadMe.txt
VBASPNETFormViewUpload ASP.NET FormView control (VB) Download ReadMe.txt
VBASPNETImageMap ASP.NET ImageMap control (VB) Download ReadMe.txt
VBASPNETLocalization Globalization and localization in ASP.NET (VB) Download ReadMe.txt
VBASPNETMasterPage ASP.NET Master Page (VB) Download ReadMe.txt
VBASPNETMenu Menu in ASP.NET (VB) Download ReadMe.txt
VBASPNETRadioButtonTreeView Radio button in ASP.NET TreeView (VB) Download ReadMe.txt
VBASPNETRssFeeds Create a RSS feed using ASP.NET (VB) Download ReadMe.txt
VBASPNETUserControlEventExpose   Download ReadMe.txt

 

Visual Studio 2010 Code Samples

Sample Description Download ReadMe
CSASPNETAddControlDynamically Add controls dynamically in ASP.NET (C#) Download ReadMe.txt
CSASPNETAJAXAutoComplete Use AJAX AutoCompleteExtender (C#) Download ReadMe.txt
CSASPNETAJAXConsumeExternalWebService Consume an external Web Service from a different domain (C#) Download ReadMe.txt
CSASPNETAJAXHTMLEditorExtender Extend HTMLEditor in AJAX Control Toolkit (C#) Download ReadMe.txt
CSASPNETAJAXImagePreviewExtender An AJAX control extender for previewing image (C#) Download ReadMe.txt
CSASPNETAJAXWebChat Ajax web chat application (C#) Download ReadMe.txt
CSASPNETBackgroundWorker Use background worker thread in ASP.NET (C#) Download ReadMe.txt
CSASPNETBingMaps Embed Bing Maps in ASP.NET pages (C#) Download ReadMe.txt
CSASPNETChart Use ASP.NET Chart control (C#) Download ReadMe.txt
CSASPNETCMD Run batch/cmd from ASP.NET (C#) Download ReadMe.txt
CSASPNETCurrentOnlineUserList Get current online user list in ASP.NET (C#) Download ReadMe.txt
CSASPNETEmailAddressValidator Validate email address in ASP.NET (C#) Download ReadMe.txt
CSASPNETImageEditUpload Upload, read, update and delete images in ASP.NET (C#) Download ReadMe.txt
CSASPNETInheritingFromTreeNode Extend ASP.NET TreeView to support tags (C#) Download ReadMe.txt
CSASPNETIPtoLocation Get the geographical location from an IP address in ASP.NET (C#) Download ReadMe.txt
CSASPNETRemoteUploadAndDownload Upload files to and download files from remote http or ftp server in ASP.NET (C#) Download ReadMe.txt
CSASPNETSerializeJsonString Use serializable json data in an auto-complete example (C#) Download ReadMe.txt
CSASPNETShareSessionBetweenSubDomains Share ASP.NET sessions between domains (C#) Download ReadMe.txt
CSASPNETTheme Apply theme in ASP.NET (C#) Download ReadMe.txt
VBASPNETAddControlDynamically Add controls dynamically in ASP.NET (VB) Download ReadMe.txt
VBASPNETAJAXConsumeExternalWebService Consume an external Web Service from a different domain (VB) Download ReadMe.txt
VBASPNETAJAXImagePreviewExtender An AJAX control extender for previewing image (VB) Download ReadMe.txt
VBASPNETAJAXWebChat Ajax web chat application (VB) Download ReadMe.txt
VBASPNETBingMaps Embed Bing Maps in ASP.NET pages (C#) Download ReadMe.txt
VBASPNETChart Use ASP.NET Chart control (VB) Download ReadMe.txt
VBASPNETCMD Run batch/cmd from ASP.NET (VB) Download ReadMe.txt
VBASPNETCurrentOnlineUserList Get current online user list in ASP.NET (VB) Download ReadMe.txt
VBASPNETEmailAddressValidator Validate email address in ASP.NET (VB) Download ReadMe.txt
VBASPNETImageEditUpload Upload, read, update and delete images in ASP.NET (VB.NET) Download ReadMe.txt
VBASPNETRemoteUploadAndDownload Upload files to and download files from remote http or ftp server in ASP.NET (VB) Download ReadMe.txt
VBASPNETSerializeJsonString Use serializable json data in an auto-complete example (VB) Download ReadMe.txt
VBASPNETShareSessionBetweenSubDomains Share ASP.NET sessions between domains (VB) Download ReadMe.txt

 

 

 

Download all code samples: http://1code.codeplex.com/releases

 

Submit your request of ASP.NET code samples (Guidance)

Last edited Mar 9, 2011 at 8:46 AM by Jialiang, version 8

Comments

FawadAli Jan 2, 2011 at 7:30 PM 
I need to know, how can I authenticate user using client script a.k.a. Sys.Services.AuthenticationService.login/Ajax authentication service...I know it will require custom membership(done that,) it will also require using Microsoft client(JS) file(done that too,) So, basically I have done everything,and the program/code(s) are working fine. I just need to know is that the right way to accomplish the functionality?
Thank you,
Fawad