Click here to Skip to main content
14,879,577 members
Everything / Web Development / ASP.NET

ASP.NET

ASP.NET

Great Reads

by John Atten
OWIN, Katana and Middleware Pipeline in ASP.NET
by Wonde Tadesse
The other option will be to use Update Panel ASP.NET control as much as possible. It helps to retain the current position on the page whenever a postback happens to the page.
by Steve Krile
Fully AJAX-enabled user control used to select names from a database in a drop-down format.
by Altaf Ansari
SignalR Real-Time ChatApp with Emoji / Smiley and sending file attachment

Latest Articles

by George Swan
How to allow private network (LAN) clients to connect to the https port of a locally hosted ASP.NET web application
by Shaun C Curtis
How to structure and build a Blazor Database Application
by Shaun C Curtis
How to build the CRUD Data Layers in a Blazor Database Application
by Shaun C Curtis
How to build the CRUD Viewer and Editor Presentation/UI Layer in a Blazor Database Application

All Articles

Sort by Score

ASP.NET 

Please Sign up or sign in to vote.
16 Jun 2011
Wonde Tadesse
The other option will be to use Update Panel ASP.NET control as much as possible. It helps to retain the current position on the page whenever a postback happens to the page.
Please Sign up or sign in to vote.
23 Aug 2012
Vitaly Tomilov
Simplest and quickest way to automatically bind array of image bytes to asp:Image object.
Please Sign up or sign in to vote.
21 Jul 2014
Cristian Moldovan
1 alternative  
jQuery unobtrusive validation plugin with Twitter Bootstrap 3 showing error messages as tooltips
Please Sign up or sign in to vote.
3 Nov 2013
Hovhannes Bantikyan
This is a simple infinite scroll with Ajax post and JSON. Have fun :)
Please Sign up or sign in to vote.
15 Jul 2017
dsuryd
SignalR is great for building real-time web functionality. MVVM is great for developing your front-end. What if they can be used together? This tip will show how to do just that, using as example a simple project to do live chart on a web browser.
Please Sign up or sign in to vote.
1 Oct 2013
Erika Chinchio
In this article I will explain how to automate the process of downloading files with the open/save dialog box, protected by authentication.
Please Sign up or sign in to vote.
6 Aug 2011
Sunasara Imdadhusen
MVC Logging series
Please Sign up or sign in to vote.
4 Apr 2015
Jean Carlo S. Passos
CRUD over Association Entity that maps to association tables
Please Sign up or sign in to vote.
22 Oct 2014
Mathew Soji
This tip guides through implementing a basic REST based Web API service with multiple GET methods and its consumption using JQuery client
Please Sign up or sign in to vote.
3 Dec 2013
bbirajdar
How to embed an image in email body
Please Sign up or sign in to vote.
10 Jun 2016
TheForceIsSharp
ASP.NET Core Web API, Multiple Get or Post methods with single controller
Please Sign up or sign in to vote.
29 Nov 2017
Danny Chu
Learn how to detect if client has JavaScript enabled or disabled at your backend webserver
Please Sign up or sign in to vote.
2 Jan 2013
Sergey Alexandrovich Kryukov
How to abate the CodeProject spam crisis.
Please Sign up or sign in to vote.
11 Jan 2019
akshay_zz
This article will provide you the alternative way to navigate page in a crystal report viewer, as default paging looks broken
Please Sign up or sign in to vote.
29 Mar 2011
Sunasara Imdadhusen
4 alternatives  
Load all the Country Names of the World in DropDown
Please Sign up or sign in to vote.
8 Dec 2011
thatraja
Error Message:Crystal Report - Load Report FailedThis error occurs in the following scenarios.Permission issueThe application must have access to the Temp folder. You have two choices to solve this (Choose any one).How to Assign Permissions for the Windows Temporary Folder on the Web...
Please Sign up or sign in to vote.
18 Jul 2013
Mannava Siva Aditya
Uploading a file and creating a Zip file in ASP.NET with C#.
Please Sign up or sign in to vote.
10 Feb 2014
harleydk
Image Orientation of Images Uploaded via ASP.NET fileupload Control
Please Sign up or sign in to vote.
14 Sep 2014
Afzaal Ahmad Zeeshan
How to use the keyboard events of the user and use them to dynamically change the User Interface or to perform some actions
Please Sign up or sign in to vote.
11 Jan 2015
Muhammad Hassan Tariq
Glimpse Extension for server side debugging and diagnostic information of ASP.NET applications
Please Sign up or sign in to vote.
8 Feb 2011
OriginalGriff
When I add a log reader, the size of the log can be huge, and get very slow to view. This makes the GridView do all the work of paging the data for you.
Please Sign up or sign in to vote.
15 Dec 2013
Amey K Bhatkar
How to create TreeView in MVC
Please Sign up or sign in to vote.
16 Jan 2014
Tom Glick Philadelphia, US
POC to demonstrate passing of collections of complex objects to ASP.NET Web API Controllers.
Please Sign up or sign in to vote.
9 Apr 2015
Royston Malcomber
Setting up Google reCaptcha version 2 with MVC5
Please Sign up or sign in to vote.
14 Jun 2011
PSK_
1 alternative  
How to maintain scroll position of a long page with vertical scrollbar in browser other than IE.
Please Sign up or sign in to vote.
22 Oct 2014
Kalvin Lawrence Ernst
Generate a web app instantly, directly from a database(SQL Server)
Please Sign up or sign in to vote.
7 Jun 2017
Gunaprasad Shetty
1 alternative  
The tip provides you the code for implementing Search in your gridview using Jquery.
Please Sign up or sign in to vote.
26 Feb 2015
Shridhar Gowda
This tip will explain how to sort a table / GridView on an ASP.NET or MVC(AngularJs) application. I am demonstrating both client side and server side sorting. I am sure you will have a great knowledge on this topic after reading it.
Please Sign up or sign in to vote.
3 Oct 2016
Shamim Uddin
In this tip, we will learn how to return list of custom type (JSON) data using ASP.NET Web API.
Please Sign up or sign in to vote.
17 Nov 2016
winsonet
Create and download the file with Ajax call in ASP.NET MVC
Please Sign up or sign in to vote.
29 Jul 2011
Monjurul Habib
Specific directories rather than entire application: For individual uploader:int maxSize = 2097151;if (FileUpload1.HasFile &&...
Please Sign up or sign in to vote.
27 Dec 2011
Nigam Patel
Here is a really simple code for a numeric text box and it will work in all browsers. Only works for web applications. function CheckNumeric(e) { if (window.event) //...
Please Sign up or sign in to vote.
3 Jan 2012
thatraja
Check this jQuery alternativejqlog - A logging framework plugin for jQuery[^]
Please Sign up or sign in to vote.
2 Aug 2013
Zhuyun Dai
Introduce how to recover IIS when it is broken by bad editing to applicationHost.config
Please Sign up or sign in to vote.
15 Nov 2014
Member 3531622
Create a Rules Engine in less than 50 lines of code which is extremely powerful, extensible and adaptable
Please Sign up or sign in to vote.
30 Nov 2015
Mohammad Dayyan, VahidJafari
A library for creating .Net Serializable Expressions to send via WCF services
Please Sign up or sign in to vote.
16 Aug 2011
Damian Flynn
Here's a couple of gems...From IList to DataTable.From DataTable to array of T.// DataTable: from IListpublic static DataTable ToDataTable(this IList iList){ DataTable dataTable = new DataTable(); PropertyDescriptorCollection propertyDescriptorCollection = ...
Please Sign up or sign in to vote.
18 Sep 2011
Monjurul Habib
How to add namespaces for Razor pages
Please Sign up or sign in to vote.
13 Jul 2012
Manas Bhardwaj
How to access the variables/properties from C# in JavaScript?
Please Sign up or sign in to vote.
17 Aug 2013
Prince Tegaton
Building a Custom User Control for Messagebox
Please Sign up or sign in to vote.
25 Mar 2014
Saineshwar Bageri
I am going to resolve Issue of Font Displaying Box or Junk While Exporting Crystal report.
Please Sign up or sign in to vote.
2 Jul 2014
Chakravarthi Elchuri
Display data in Multi nested gridview using C# in ASP.NET
Please Sign up or sign in to vote.
24 Dec 2014
Prince Tegaton
This entails how to easily add mobile website feature to your ASP.NET website/app
Please Sign up or sign in to vote.
15 Jul 2017
dsuryd
Application of "MVVM over SignalR" library described in a previous CodeProject tip, combined with Dynamic LINQ library to do incremental web search by typing the query
Please Sign up or sign in to vote.
10 Mar 2017
Sujeet Bhujbal
 In this article, I will tell you how to create a cross-browser session expiration popup box using jQuery easily
Please Sign up or sign in to vote.
2 Nov 2017
Silvia Campo
How to configure Swagger for web services using token authentication
Please Sign up or sign in to vote.
4 Apr 2021
Rijwan Ansari
Learn about SQL Server Database Project (Template) available in VS
Please Sign up or sign in to vote.
12 Oct 2010
Ahsan Murshed
Single Sign on (SSO) Using Cookie in asp.netThere are various ways to use Single Sign on(SSO) in asp.net web application. We can use cookies, session (state server), SAML and web services etc. Now we would like to give a brief overview of how to use cookie to implement Single Sign on(SSO) in...
Please Sign up or sign in to vote.
14 May 2010
Magnus_
public static void RemoveSelected(this ListControl source){ foreach (var item in source.Items.Cast().Where(li => li.Selected).ToList()) source.Items.Remove(item);}protected void btnRemove_Click(object sender, EventArgs e){ lstCity.RemoveSelected();}
Please Sign up or sign in to vote.
5 Aug 2010
Vinayaka Krishna Shenoy
1 alternative  
Probable leak while using SqlDataReader in ADO.NET
Please Sign up or sign in to vote.
19 Oct 2010
Ziv Nitzan
There is also a Visual Studio extention called CodeMaid that has a lot of cleaning options http://bit.ly/diMTaR
Please Sign up or sign in to vote.
2 Apr 2011
thatraja
DescriptionT...
Please Sign up or sign in to vote.
22 Jul 2011
Muthu Nadar
You can set the default button on your form tag as below code.ORyou can set the default button on a panel as below.And you can place your...
Please Sign up or sign in to vote.
6 Nov 2011
M I developer
Try catch block around "A potentially dangerous Request.Form"
Please Sign up or sign in to vote.
16 Mar 2012
UberGeoff
This tip explains how to display a jQuery modal pop-up message using server side events.
Please Sign up or sign in to vote.
18 May 2012
deeptibansal
Adding event to Microsoft Outlook through Web Application
Please Sign up or sign in to vote.
1 May 2013
Nasser Malik
Split comma separated IDs to get batch of records through Stored Procedure.
Please Sign up or sign in to vote.
18 Jul 2013
Mannava Siva Aditya
Uploading multiple files and creating a Zip file in ASP.NET with C#.
Please Sign up or sign in to vote.
16 Aug 2013
Moudud Hassan
Fix to COM component retrieving error:80040154 in web application running in IIS
Please Sign up or sign in to vote.
8 Nov 2018
Nikfazan
This article shows how you can easily make hyperlinks for exploring a folder on server and its sub-directories and downloading the files, using ASP.NET Core MVC.
Please Sign up or sign in to vote.
5 Nov 2013
VICK
This simple Tip/Trick is focused on providing a simple and cross browser compatible solutio.
Please Sign up or sign in to vote.
14 Nov 2013
Ahmed Alaa El-Din
Useful and simple tutorial to add Amazon SES service inside your ASP.NET web application in order to send bulk-emails better and faster.
Please Sign up or sign in to vote.
24 Dec 2013
Sitang Ruan
How to display a spinner with disabled background when doing postback or Ajax call
Please Sign up or sign in to vote.
25 Mar 2014
Karthik Chintala
The tip just gives a brief on what iterators are in C#
Please Sign up or sign in to vote.
14 Apr 2014
Maninder Singh Puhi
Appropriate query to fetch required no of results from DB instead of getting all at on time for binding controls like Gridview, listview etc
Please Sign up or sign in to vote.
28 May 2014
Debabrata_Das
In this tip, we are going to create a project to see how many-to-many relationship can be implemented in ASP.NET.
Please Sign up or sign in to vote.
13 Jun 2014
Terrence Sheflin
Optimizing ASP.NET MVC HTTP responses to remove unnecessary and possibly dangerous information when using IIS
Please Sign up or sign in to vote.
21 Nov 2014
ManojKumar19
Learn how to configure dynamic compression in IIS 7.5 to improve performance
Please Sign up or sign in to vote.
19 Mar 2015
Hrvoje Batrnek
Easy and seamless caching implementation of any virtual method in any class
Please Sign up or sign in to vote.
21 Mar 2015
Amit Singh Baghel
A useful tip to export a Div to PDF (with Unicode support) with the help of NReco-PDF Generator for .NET (C#), JQuery and Handler in ASP.NET
Please Sign up or sign in to vote.
28 Apr 2015
Hassan Alrehamy
JSON Deserialization in depth concept and Dictionary mapping. Special Thanks to Dr. Coral Walker
Please Sign up or sign in to vote.
19 Dec 2015
ryanba29
This is a multi day project using ASP.NET Web API for the server and WPF MVVM for the client.
Please Sign up or sign in to vote.
29 Dec 2015
ryanba29
First Draft. This is day three of a multi day project using ASP.NET Web API for the server and WPF MVVM for the client.
Please Sign up or sign in to vote.
28 Dec 2015
Dhruti90
MVC functionalities with web service with simple integration
Please Sign up or sign in to vote.
21 Jun 2017
M.M.Mohseni
In this sample code, we are going to upload a file via a web method asynchronously.
Please Sign up or sign in to vote.
14 Feb 2018
Apurba pan
Creating dynamic object from XML using ExpandoObject and put Intellisense using C#
Please Sign up or sign in to vote.
27 Dec 2018
Alessio Aronica
Generate forms from MVC models in one simple line of code
Please Sign up or sign in to vote.
11 Dec 2019
Akmishra0719
Daily reminder using SQL Agent and SignalR
Please Sign up or sign in to vote.
5 Aug 2010
Vinayaka Krishna Shenoy
Setting the best value for Application pool Queue length limit
Please Sign up or sign in to vote.
26 Dec 2010
#realJSOP
Can't you just call Enum.GetNames(), and then bind to the collection returned by that method?
Please Sign up or sign in to vote.
7 Jan 2011
OriginalGriff
2 alternatives  
Supporting Development and Release web.config in ASP.NET
Please Sign up or sign in to vote.
20 Mar 2011
Adel Refaat
DotNetNuke Resources keys
Please Sign up or sign in to vote.
30 Mar 2011
thatraja
DescriptionW...
Please Sign up or sign in to vote.
12 Jul 2011
RaisKazi
Walkthrough of Asp.Net Core Ajax
Please Sign up or sign in to vote.
27 Jun 2012
Technoses
The above code will slow down the browser and the browser can hang when Rows in Grid will be 10000 or above.Please view the below suggestion:CS Codeprotected void grvGroups_RowDataBound(object sender, GridViewRowEventArgs e){ if (e.Row.RowType == DataControlRowType.DataRow) { ...
Please Sign up or sign in to vote.
17 Apr 2012
abhinavshastri
How to Call WebService Dynamically and Read WebService Definition
Please Sign up or sign in to vote.
16 Jul 2012
StianSandberg
Make sure your website with and without www redirects to the same page.
Please Sign up or sign in to vote.
13 Sep 2012
mparvez
An open-source free Flash charting component that can be used to render data-driven animated charts.
Please Sign up or sign in to vote.
1 Feb 2013
S. M. Ahasan Habib
.NET TransactionScope and its default Transaction Isolation level issue.
Please Sign up or sign in to vote.
2 Jul 2013
Abhimanyu vij
How to send an email with app setting in the web config file.
Please Sign up or sign in to vote.
4 Jul 2013
sumit_kapadia
Create and Bind gridview at client side with Jquery Template and ajax in asp.net
Please Sign up or sign in to vote.
17 Dec 2013
Adittya Gupta
Table Value Parameters in SQL Server 2008 with ASP.NET.
Please Sign up or sign in to vote.
2 Apr 2014
Mishra Sourabh
This tip explains how to submit your form with HTML content in MVC.
Please Sign up or sign in to vote.
29 May 2014
Thang Believe
Deep dive into cookies generation to support Remember Me at login
Please Sign up or sign in to vote.
29 Jun 2014
PSK_
Unit testing the MVC controller actions which are using Global or Local resources. As this is not straight forward to Mock the static properties of the resource files.
Please Sign up or sign in to vote.
10 Oct 2014
Gerardo Recinto
Virtualization of RAM & Disk for high-speed, low-footprint & scalable data caching
Please Sign up or sign in to vote.
9 Jan 2015
Er. Puneet Goel
This tip implements the TreeView like DropDownList with Search Functionality using Telerik Kendo.
Please Sign up or sign in to vote.
4 Feb 2015
Md. Shariful Islam (Adil)
Alignment and sorting icon in WebGrid header
Please Sign up or sign in to vote.
5 Feb 2015
Miller Nguyen
This article will show you how to implement a complete solution of electronic signature by using HTML5 canvas in ASP.NET (VB).
Please Sign up or sign in to vote.
13 Apr 2015
JIANGWilliam
This article discusses some potential pitfalls with Telerik based automation test development.
Please Sign up or sign in to vote.
22 Nov 2015
Anil Sharma1983
Postback event not working colorbox in ASP.NET
Please Sign up or sign in to vote.
26 Jan 2016
yehia2amer
This method will use jQuery Ajax to POST and GET Handsontable JSON data from/to Controller in ASP.NET MVC.
Please Sign up or sign in to vote.
28 Oct 2016
Deepraj Thuraka
Tweaking of the Bouncy Castle library to make it work with SecP128r1 curve1251
Please Sign up or sign in to vote.
5 Jul 2017
Atlapure Ambrish
Solution to disable request validation for single control - clean approach and without much effort
Please Sign up or sign in to vote.
18 Dec 2018
Brady Kelly
How to deserialize objects from a web application"s config file
Please Sign up or sign in to vote.
26 Feb 2010
Sandeep Mewara
This is an easy way to clear all input fields in the form.
Please Sign up or sign in to vote.
8 Jun 2010
Abhijit Jana
Get list of all active HttpMoudles in ASP.NET
Please Sign up or sign in to vote.
5 Aug 2010
Vinayaka Krishna Shenoy
.Net memory tuning
Please Sign up or sign in to vote.
6 Aug 2010
Vinayaka Krishna Shenoy
Scaling options for ASP.NET Sessions
Please Sign up or sign in to vote.
20 Aug 2010
Steve Maier
Microsoft has posted some posters that can be printed out with this information in table form for each language. The newest ones are for VS2010, but they have others as well.VS2010 Keyboard Shortcuts for C# VB C++ F#[^]
Please Sign up or sign in to vote.
14 Oct 2010
Bryian Tan
1 alternative  
Invoking method in a WebUserControl that is loaded programmatically
Please Sign up or sign in to vote.
26 Oct 2010
Ludmal de silva
This is a Gmail style user message control I have written and its part of the XWT Toolkit.
Please Sign up or sign in to vote.
19 Dec 2010
PIEBALDconsult
How about loading it into an XmlDocument and getting the InnerText? (Provided the HTML is well-formed XML, of course.)
Please Sign up or sign in to vote.
20 Dec 2010
JHoye
Consider using the open source HTML Agility Pack library (htmlagilitypack.codeplex.com).It lets you use XPATH queries to access very specific parts of an HMTL document, and the HTML does not have to be valid, well-formed XML. In addition to accessing the raw inner text of an element you can...
Please Sign up or sign in to vote.
3 Feb 2011
_impostor_
Initializing is great... unless you have no control over the contents.Consider this:String strTmp = String.Empty;strTmp = SomeRandomMethod();//Suppose SomeRandomMethod returns null under some circumstances...Now anything you try to do with strTmp (other than compare to null) will...
Please Sign up or sign in to vote.
16 Jul 2011
tsdragon
Application[“P...
Please Sign up or sign in to vote.
11 Sep 2011
brunofer2007
Easy way to sort nodes in a TreeView using a recursive function.
Please Sign up or sign in to vote.
17 Dec 2012
AshishChaudha
This article discusses a simple way of rearranging the ASP.NET ListView Items using JavaScript.
Please Sign up or sign in to vote.
17 Jul 2013
Mehul M Thakkar
Compare Validator is not working with latest jQuery lib while using with ViewModel in MVC
Please Sign up or sign in to vote.
1 Jan 2013
Hasham Ahmad
How to submit a new blog post in WordPress using ASP.NET
Please Sign up or sign in to vote.
18 Apr 2013
Amogh Natu
This tip discusses the method to allow the uploading of large size files in ASP.NET
Please Sign up or sign in to vote.
18 Jul 2013
ketan italiya
A quick overview of some of the most frequently used features of the GridView control.
Please Sign up or sign in to vote.
26 Jul 2013
Mannava Siva Aditya
Reading XML data into a DataTable.
Please Sign up or sign in to vote.
26 Nov 2013
Dusara Maulik
Error notification service which helps make application more error free
Please Sign up or sign in to vote.
30 Dec 2013
Afazal MD 3104209
VC 4 Display Mode. Different view selected based on Desktop or Mobile browser request
Please Sign up or sign in to vote.
17 Jun 2014
Mahdi Ataollahi
Implementing Microsoft.AspNet.SignalR 2 and Microsoft.AspNet.SignalR.Client 2 in Silverlight
Please Sign up or sign in to vote.
24 Nov 2014
Dushmantha Baranige
HTTP respond data content length compression in MVC web application by an ActionFilter attribute to improve performance in web requests.
Please Sign up or sign in to vote.
26 Nov 2014
Faisal Jawaid
This tip will address the issue of expiring the page when browser buttons are used for navigation of application.
Please Sign up or sign in to vote.
4 Feb 2015
Richard Roe
Example to show how to update an ASP.NET GridView control using Ajax JQuery client side script
Please Sign up or sign in to vote.
13 Mar 2015
Aman Thakur
The tip explains how to make recurring payments using the Stored Credit Cards in the Paypal Vault.
Please Sign up or sign in to vote.
27 Mar 2015
Muhammad Rashed Otahbashi
How to implement Drag and drop files and Images feature in ASP.NET MVC App
Please Sign up or sign in to vote.
9 Oct 2016
Jatinath
This tip will help developers to generate DrillDown chart using HighChart and ASP.NET
Please Sign up or sign in to vote.
7 Nov 2015
mnguyen88
This is an alternative for "Using the jQuery unobtrusive validator with Twitter Bootstrap tooltips"
Please Sign up or sign in to vote.
22 Nov 2015
Anil Sharma1983
Internet Explorer 8/9 jsonresult method treats response as downloadable json result
Please Sign up or sign in to vote.
26 Dec 2015
MarcusCole6833
A basic way to make a grid of Pictures
Please Sign up or sign in to vote.
15 Mar 2021
Pablo A Martinez
How to use Google map and Spatial search to do freehand drawing
Please Sign up or sign in to vote.
14 Apr 2010
marc9889
2 alternatives  
This is an example of one way to parse an HTML document by using a recursive function. In this example, an html document is loaded from a text file, but the code also demonstrates (in remarks) using a web page as a source file.When the recursive function is called, a conditional statement...
Please Sign up or sign in to vote.
13 Apr 2010
Martin Jarvis
Whilst uploading a large (70MB) file to an IIS 7 website I got a 404 error….which was odd, uploading a file in a postback shouldn’t give me that. I know that file exists!On further investigation it turns out it was actually a 404.13 error from the Request Filtering feature of the Integrated...
Please Sign up or sign in to vote.
23 Aug 2010
Vinayaka Krishna Shenoy
Best Strategy for deploying ASP.NET application and application Pool
Please Sign up or sign in to vote.
18 Apr 2011
nit_singh
2 alternatives  
This is an example to make a "Select All" check box using JQuey
Please Sign up or sign in to vote.
20 Apr 2011
thatraja
DescriptionS...
Please Sign up or sign in to vote.
31 Jul 2011
Keith Barrow
3 alternatives  
When running an ASP.NET application under 64-bit Win7/2008 you get jet 4.0 not registered error
Please Sign up or sign in to vote.
13 Aug 2011
Vano Maisuradze
Very nice!I've modified ToCollection(this DataTable dt) extension function, so if DataTable column names and class property names are different, then you can use this alternative:public static List ToCollection(this DataTable table, Dictionary dic){ List lst = new...
Please Sign up or sign in to vote.
10 Oct 2011
Gregory Gadow
Configure your IIS site to serve custom error pages for all your file types: .html, .aspx, .pdf, whatever.
Please Sign up or sign in to vote.
24 Oct 2011
AlexCode
1 alternative  
Adding support for IHttpHandler on ASP.NET Routing
Please Sign up or sign in to vote.
10 Nov 2011
#realJSOP
How about this?public static class ExtendDateTime{ public int CountWeekDays(this DateTime thisdate, DateTime thatDate) { int days = Math.Abs((thisDate - thatDate).Days) + 1; return = ((days/7) * 5) + (days % 7); }}Usage would be like this:DateTime...
Please Sign up or sign in to vote.
9 Mar 2012
Rahul Rajat Singh
How to prevent Leeching of resources like images and documents from our website.
Please Sign up or sign in to vote.
11 Mar 2012
SERokon
Increase debugging idle time in visual studio configuring IIS
Please Sign up or sign in to vote.
17 Apr 2012
RobertDinaro
GridView paging takes two clicks (solved).
Please Sign up or sign in to vote.
7 Jun 2012
AmitGajjar
An efficient extended search API to search from a text file.
Please Sign up or sign in to vote.
28 Feb 2013
David Zenou
Simple and easy to use jQuery matrix 2D.
Please Sign up or sign in to vote.
25 Sep 2012
Pablo Oropin
This article aims to explains how to implement functions to deliver data via HTTP POST or HTTP GET in ASP.NET to an specified link.
Please Sign up or sign in to vote.
3 Oct 2012
Nilesh Patil Kolhapur
How to solve web service call failed error
Please Sign up or sign in to vote.
17 Dec 2012
AshishChaudha
This tip describes the working of DetailsView for inserting a new record, updating and deleting the existing details of the user.
Please Sign up or sign in to vote.
18 Feb 2013
S. M. Ahasan Habib
.NET exe file run inside asp.net and catch exception from .exe.
Please Sign up or sign in to vote.
21 Feb 2013
mimtiyaz
Insert and bind records from a dropdownlist using AJAX UpdatePanel
Please Sign up or sign in to vote.
21 Jun 2013
Chirag B
ASP.NET page events not firing.
Please Sign up or sign in to vote.
25 Mar 2013
AlbertoLeon CSharpMan
The build of Web.Debug.Config throws the error as value 'MySql.Data.MySqlClient' is already present.
Please Sign up or sign in to vote.
29 Apr 2013
ChienVH
This article will show you how to implement Asp.Net membership into a new database
Please Sign up or sign in to vote.
1 May 2013
Abhishek Kumar Goswami
This helps to make a visible date field in Chrome native datepicker while it will bind from the Model in ASP.NET MVC 4.
Please Sign up or sign in to vote.
9 May 2013
Bibhu Dutta
The tip describes about the IController interface and the ControllerBase class.
Please Sign up or sign in to vote.
16 May 2013
ortund
Allow purchases via PayPal on your website
Please Sign up or sign in to vote.
15 May 2013
Manikandan Sekar
Loading Data from Excel
Please Sign up or sign in to vote.
17 Jul 2013
Mehul M Thakkar
Dynamic version number in query string of file reference in link tag for CSS
Please Sign up or sign in to vote.
4 Aug 2013
S.Sathik Ali
This tip contains the basic introduction to the JSONP, Same-Origin and Cross-Origin Resource Sharing concepts and quick get started with JSONP in ASP.NET Web API.
Please Sign up or sign in to vote.
9 Sep 2013
Praveen Maniyath
A SOAP WebService communication sample.
Please Sign up or sign in to vote.
10 Sep 2013
josh-jw
This tip will give you a better idea of how to setup a KoGrid in Knockout.js.
Please Sign up or sign in to vote.
17 Nov 2013
Hazem Torab
Generate reasonable sample data for you GridView without using databases.
Please Sign up or sign in to vote.
6 Mar 2014
Adel Refaat
A SharePoint WebPart that hosts Razor files (.cshtml, .vbhtml)
Please Sign up or sign in to vote.
8 Mar 2014
SanSkun
How to bind holiday list and information about those holidays from database
Please Sign up or sign in to vote.
20 Mar 2014
Super Lloyd
Some ideas to bring LINQ goodness to JavaScript array
Please Sign up or sign in to vote.
13 Apr 2014
Edson_Ferreira
This tip will demonstrate how to create a SPA using an MVC Application, AJAX and History.js
Please Sign up or sign in to vote.
14 Apr 2014
Arjun Singh Faguda
How to call cross domain Webserver(asmx) service from jquery and bind the Json result with Jqgrid
Please Sign up or sign in to vote.
25 Apr 2014
Frankxcid
Class that allows you to programmatically create an Open XML Excel spreadsheet
Please Sign up or sign in to vote.
3 Jul 2014
Narotam Gediya
How to create an internet shortcut
Please Sign up or sign in to vote.
19 Jan 2015
Thinira
In this tip, we discuss how to pass report parameters from web page to Telerik report programmatically.
Please Sign up or sign in to vote.
20 Jan 2015
bitzblitz
A way to manage Website settings in a web farm environment
Please Sign up or sign in to vote.
16 Feb 2015
Bajirao_
Are you facing Issues on mobile device debugging? Try this and debug site on mobile.
Please Sign up or sign in to vote.
8 Sep 2015
Rojalin Sahoo
Register Itemtemplate control of Gridview inside UpdatePanel to trigger collection for whole page postback
Please Sign up or sign in to vote.
10 Sep 2015
Rohit Nanda
The easiest way to send form data to Google Docs/Spreadsheet from your web page, using your own form and AJAX. Nowadays, Google Docs/Drive is a widely used service for data storage and documents sharing.
Please Sign up or sign in to vote.
26 Oct 2015
Hamid Mosalla
In the next two posts, I’m going to show you how to build a load more button for your page using ASP.NET MVC, you can use it for any various kind of things, but in the case of this tutorial, I’ll use it for my fictitious product list.
Please Sign up or sign in to vote.
25 Nov 2015
Firnas
An easy way to implement jQuery Datatables server-side pagination in ASP.NET MVC with Entity Framework
Please Sign up or sign in to vote.
20 Dec 2015
JoaoSousa23
This article walks you through the steps for create a report in Excel using EPPlus (ExcelPackage)
Please Sign up or sign in to vote.
1 Mar 2016
Yogesh Jamkhindikar
This tip will help you achieve a graceful termination of your spawned threads in your ASP.NET application.
Please Sign up or sign in to vote.
1 Jul 2016
Vincent Maverick Durano
A quick example on how to implement GridView row highlighting and retain selected row on postbacks.
Please Sign up or sign in to vote.
4 Jul 2016
senthill
This article describes how to create deployment package for sharepoint 2013 project using using visual studio
Please Sign up or sign in to vote.
29 Jul 2016
Akshay Meghraj
Validate ASP.NET Fileupload control file type and size by using jQuery validation
Please Sign up or sign in to vote.
3 Dec 2016
Adi_Mag
Integrate Serilog with ASP.NET Core application
Please Sign up or sign in to vote.
10 Dec 2016
OmarIsaid
Solution for passing data from View to controller, contains useful concepts for beginner developers
Please Sign up or sign in to vote.
13 Feb 2017
Mike Hankey
Highlighting the current menu item in MVC using the MvcSiteMapProvider turned out to be somewhat of a challenge but with a little head scratching and several cups of coffee, this is what emerged.
Please Sign up or sign in to vote.
16 Mar 2017
Robert Bettinelli
Easy JSON Recursion in VB.NET with nested levels
Please Sign up or sign in to vote.
29 Sep 2017
Kannan Ar
Implement an online HTML to Word converter using CKEditor and MariGold.OpenXHTML
Please Sign up or sign in to vote.
8 Feb 2018
Ivan Yakimov
In this short article, I'll describe how to configure JSON serializer error handling differently for each request.
Please Sign up or sign in to vote.
29 Jan 2010
CARPETBURNER
Are you too lazy to do a proper tip or a proper article?
Please Sign up or sign in to vote.
20 Apr 2010
e.bonavero-miller
1 alternative  
Not much on this one that was helpful so I thought I'd put what worked for me.Cntrl + Alt + Del > Processes > end all iexplore.exe and WebDev.WebServer.exe processes.Since devs generally debug with the dev webserver end those processes first and retest. Although iexplore handles stay...
Please Sign up or sign in to vote.
18 Sep 2010
Member 4532519
Stopping the multiple postbacks of ASP.NET linkbutton using simple JavaScript
Please Sign up or sign in to vote.
18 Sep 2010
Ahmed R El Bohoty
Please Sign up or sign in to vote.
13 Nov 2010
jarvisa
public void ControlStatus(Control control, bool isDisable){ foreach (Control c in control.Controls) if (c.HasControls()) ControlStatus(c, isDisable); else { WebControl wc = c as WebControl; if (wc != null) ...
Please Sign up or sign in to vote.
13 Nov 2010
daniel_nilsson
1 alternative  
This article gets you started with JsonHTTPHandler for nicer code.
Please Sign up or sign in to vote.
5 Jan 2011
MarcoBot
NOTE: If you're really wanting plain text, then you should also be sure to decode the HTML entities (System.Web.HttpUtility.HtmlDecode()) on the resulting text, or you'll wind up with HTML/XML character entity text in your output, such as & and [ If you're going to immediately output the...
Please Sign up or sign in to vote.
22 Feb 2011
imsauravroy
A basic introduction on how to use data annotations for validating MVC models, which solves basic validation issues
Please Sign up or sign in to vote.
27 Mar 2011
Albin Abel
Instances of pages not accessible like other classes. This demonstrates how to instantiate a page and pass parameters through a custom HttpHandler.
Please Sign up or sign in to vote.
3 Apr 2013
Cyrus Neah
'DropDownList' has a SelectedValue which is invalid because it does not exist in the list of items.
Please Sign up or sign in to vote.
19 Apr 2011
nit_singh
Above aproach will work fine if there are less check box on the form. But if you have 1000 or 2000 check box on your page then it will consume some time.There is an alternate, unique and very fast way of doing the same thing.below code will create more than 2000 checkboxes on your...
Please Sign up or sign in to vote.
21 Apr 2011
gladtobegrey
Why not simply:markup = [];markup.push('');markup.push('');markup.push('');markup.push('');markup.push('Sample \'StringBuilder\' HTML');markup.push('');markup.push('');alert(markup.join('\n\r'));markup.toString() could...
Please Sign up or sign in to vote.
7 May 2011
ambarishtv
Step1.Downlo...
Please Sign up or sign in to vote.
7 Feb 2012
Eidryana
Or the jQuery alternative: $("form").submit(function() { $("#").val("Processing..."); $("#").attr("disabled", "disabled"); });
Please Sign up or sign in to vote.
5 Jul 2011
#realJSOP
I do it this way:0) Create a base page class, and store the current page's url (you can do this any number of ways, so I'll leave it to your imagination):public class MyBasepage : System.Web.UI.Page{ public string CurrentUrl { get; set; } }1) Store the page's Url to a...
Please Sign up or sign in to vote.
5 Jul 2011
AspDotNetDev
There is a fourth function.RegisterClientScriptResource(): Adds a reference to a JavaScript file that has been embedded into an assembly (DLL). Read more about that here: Managing Your JavaScript Library in ASP.NET.
Please Sign up or sign in to vote.
2 Aug 2011
abdealinc
Download access driver from http://www.microsoft.com/downloads/en/details.aspx?FamilyID=c06b8369-60dd-4b64-a44b-84b371ede16d&displaylang=en.In the connection string, replace "Microsoft.Jet.OLEDB.4.0" with "Microsoft.ACE.OLEDB.12.0".
Please Sign up or sign in to vote.
2 Oct 2011
Mohammed Derbashi
A simple way to track the sequence ASP.NET page events.
Please Sign up or sign in to vote.
7 Oct 2011
genious Developer
FileStream stream = File.Open(filePath, FileMode.Open, FileAccess.Read);//1. Reading from a binary Excel file ('97-2003 format; *.xls)IExcelDataReader excelReader = ExcelReaderFactory.CreateBinaryReader(stream);//...//2. Reading from a OpenXml Excel file (2007 format;...
Please Sign up or sign in to vote.
12 Oct 2011
Rupesh Kumar Tiwari
I have below suggestions:1) Why are you making call to webmethod are you fetching data from server and showing it in tool tip ? But in your example it seems that you are just returning the same data that you get from UI. If you are making some DB call and returning data to UI then its ok to...
Please Sign up or sign in to vote.
13 Oct 2011
bbirajdar
How to sor a GridView bound to a DataTable.
Please Sign up or sign in to vote.
24 Oct 2011
rj45
1 alternative  
Export whole page to Excel with infragistics
Please Sign up or sign in to vote.
30 Oct 2011
Marvin Bland
The other option to review when you receive this error is to view your Application_Pools setting for the app_pool you are using for your application.Check the "Enable 32-Bit Applications". If this is "False", change it to "True". This may resolve your issue.
Please Sign up or sign in to vote.
10 Nov 2011
Bangla Gopal Surya Prakash
Read RSS FEED data (blogspot.com)
Please Sign up or sign in to vote.
8 Feb 2012
Rajesh Anuhya
Achieve the same using AJAX AnimationExtender control. Use the below code: ...
Please Sign up or sign in to vote.
4 Feb 2012
chetan virkar
Uploading Zip File in ASP.NET
Please Sign up or sign in to vote.
15 Feb 2012
Andreas Gieriet
I think the following Regex and HtmlDecode would do:string html = ...;string textonly = HttpUtility.HtmlDecode( Regex.Replace(html, @"|", ""));Any HTML construct that would not be stripped off properly by this?
Please Sign up or sign in to vote.
6 Mar 2012
Gianmaria Gregori
Using an upload plugin with progress bar in Razor pages
Please Sign up or sign in to vote.
11 Mar 2012
Gianmaria Gregori
Additions to the implementations of the Uploadify plugin in Webmatrix
Please Sign up or sign in to vote.
6 Apr 2012
Chamara Janaka
Article Describes how to Generate a Simple Chart using ASP.NET chart control
Please Sign up or sign in to vote.
11 Jun 2012
taha bahraminezhad Jooneghani
A custom validation control for FileUpload controls that validate like required validator, and have two more methods for extensions and file size!
Please Sign up or sign in to vote.
18 Jun 2012
DaveAuld
Quick way to modify the logon view depending on if the user has been redirected.
Please Sign up or sign in to vote.
11 Jul 2012
Dhyanga
showing the checked data from one gridview to another gridview on button click
Please Sign up or sign in to vote.
12 Jul 2012
Dhyanga
Emailing the list of checked rows emails list from the gridview rows on a single button click
Please Sign up or sign in to vote.
18 Sep 2012
mparvez
How to create some good looking Line, Bar, Pie charts for your ASP.NET application.
Please Sign up or sign in to vote.
19 Sep 2012
sohaib patel
How to create a dynamic label editor web control on ASP.NET (textbox and label).
Please Sign up or sign in to vote.
6 Nov 2012
SoumenBanerjee
Get page HTML using System.Net.WebClient class of .NET as well as striping HTML using Regex and export a list into Excel or XML.
Please Sign up or sign in to vote.
23 Nov 2012
dpalash
It's a simple but helpful tip and it's easy to implement
Please Sign up or sign in to vote.
4 Dec 2012
Emad Al Hawary
Try this block of HTML 5 code
Please Sign up or sign in to vote.
14 Jan 2013
Mehul_Harry
How to create iPad Web Apps using DevExpress ASP.NET
Please Sign up or sign in to vote.
23 Jan 2013
Rajamohan Dhanushkodi
Custom DataGrid than can group data, display row details, and filter data.
Please Sign up or sign in to vote.
11 Mar 2013
Manikandan Sekar
Here we can view the events of a day by moving the mouse over the date.
Please Sign up or sign in to vote.
31 Mar 2013
vinodkumarnie
Show or hide controls through code behind or through JQuery
Please Sign up or sign in to vote.
14 Apr 2013
Praveen Kumar Chauhan (PRK)
This a trick to generate random gradient color in your ASP.NET project, which will change randomly on every post-back.
Please Sign up or sign in to vote.
30 Apr 2013
BenScharbach
Trick of using @Helpers in @Helpers in ASP.NET Razor
Please Sign up or sign in to vote.
13 May 2013
ChienVH
In this article will show you how to work with ASP.Net and Paypal with Dynamic Ordering Values
Please Sign up or sign in to vote.
23 May 2013
RelicV
Alternative for AutoComplete control without Ajax and Webservices
Please Sign up or sign in to vote.
22 Aug 2013
SupperSlonic
Easily create vertical tabs on a web page with no JavaScript and minimum CSS.
Please Sign up or sign in to vote.
17 Sep 2013
Yachana_
While working with Microsoft.Office.Interop.Excel.Application after publish
Please Sign up or sign in to vote.
2 Jan 2014
Srinivas Kumar Pasumarthi
This tip gives information about tools and consumption of WCF Services.
Please Sign up or sign in to vote.
30 Jan 2014
@donis2014
How to configure IIS Express "applicationhost.config" for handler mappings
Please Sign up or sign in to vote.
14 May 2014
echokilo
A simple tip to avoid the pain caused by PayPal providing code snippets for buttons each in its own form tag
Please Sign up or sign in to vote.
14 May 2014
atlaste
How to fix hiding controls in the Visual Studio user control designer
Please Sign up or sign in to vote.
14 May 2014
Peter BCKR
In legacy applications you can get a MissingMemberException bei acessing a SqlParameterCollection if you work with object-variables there are reference a SqlCommand-Instance.
Please Sign up or sign in to vote.
5 Jun 2014
Chamila Nishantha
Communicating with Zendesk API
Please Sign up or sign in to vote.
15 Jun 2014
Jamal Seyedi
How to create print button for non-IE browsers in RDLC Viewers
Please Sign up or sign in to vote.
11 Aug 2014
Sourav Kayal
In this tip, we will learn to implement OData endpoint in Web API application.
Please Sign up or sign in to vote.
19 Aug 2014
Jinan Kordab
This article and tip describes how to create or delete an Active Directory Services Email using ASP.NET web page, remotely.