Click here to Skip to main content
15,886,199 members
Everything / Web Development / ASP.NET

ASP.NET

ASP.NET

Great Reads

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 John Atten
OWIN, Katana and Middleware Pipeline in ASP.NET
by Altaf Ansari
SignalR Real-Time ChatApp with Emoji / Smiley and sending file attachment
by Steve Krile
Fully AJAX-enabled user control used to select names from a database in a drop-down format.

Latest Articles

by Rudi Breedenraedt
In this series, we will see how to build interactive web applications in ASP.NET Core with the help of Sircl.
by Mohammad Elsheimy
Configuring OpenSSL minimum version and legacy renogetiation
by Mark Pelf
A practical guide to building a multi-language ASP.NET 8 MVC application
by Mark Pelf
A practical guide to build a multi-language ASP.NET 8 MVC application

All Articles

Sort by Updated

ASP.NET 

23 Jun 2010 by #realJSOP
A low-impact method for getting the appropriate path on a web page.
26 Dec 2010 by #realJSOP
Can't you just call Enum.GetNames(), and then bind to the collection returned by that method?
17 Jun 2011 by #realJSOP
Back-tracking to make sure code is processed before the current page executes
21 Jun 2011 by #realJSOP
How to execute code in the current page AFTER navigating to a new page.
23 Jun 2011 by #realJSOP
One way to guarantee uniqueness and avoid misspelling your session variable names
5 Jul 2011 by #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...
10 Nov 2011 by #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...
22 Feb 2019 by #realJSOP
Mitigate the browser flash between page navigation on your site
6 May 2019 by #realJSOP
This is an alternative for "No More Session Variable Misspellings"
30 Jan 2014 by @donis2014
How to configure IIS Express "applicationhost.config" for handler mappings
22 Apr 2019 by _Asif_
Access rights issue over MSMQ could lead to hours and hours of investigation
19 Jan 2011 by _impostor_
I agree with Chris...string.IsNullOrEmpty: 312 msLength: 140 ms [fastest]This is not a fair comparison.Need to compare:(string != null && string.Length !=0)with: String.IsNullOrEmpty(string)Even if the first construct is faster, there is a readability...
3 Feb 2011 by _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...
13 Nov 2010 by a_pess
Alternative For VB.NET Windows Forms Private Sub ControlEnabled(ByVal ctrl As Control, ByVal isDisable As Boolean) Me.ControlEnabled(ctrl, isDisable, True) End Sub Private Sub ControlEnabled(ByVal ctrl As Control, ByVal isDisable As Boolean, ByVal allowRecurse As...
27 May 2012 by aamir sajjad
How to implement the custom authorization and exception handling attribute in the ASP.NET Web API.
28 Aug 2014 by Aaron L. Hall
Here is a tip for making sure that debugging your MVC website does not cause Visual Studio to crash when using IIS7 to host the site in your development environment: Don't use more than one worker. process in your Application pool.
2 Aug 2011 by 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".
1 Oct 2016 by Abdullah Ibn Mannan
A common problem working with Bower (Client-Side Package Manager of ASP.NET Core), missing dist folder with js file
23 Apr 2012 by AbdulMuheet
Connect to Facebook and get user Facebook details.
26 Jun 2014 by abdussalam143
This post explains how you can regenerate the designer.cs and designer.vb files when they are corrupted, missing or giving compile errors.
17 Aug 2012 by Abey Thomas
This is an issue which can happen for a variety of reasons - but how do you find the right one?
2 Sep 2009 by Abhijit Jana
Some times we need to detect the Browser Close to perform some operation before quiting from application. Here is a simple way.function CheckBrowser(){ // Check Browser Close [X] , Alt+F4 , File -> Close if(window.event.clientX
13 Sep 2009 by Abhijit Jana
This is very common problem in Web development that we need tofreeze the GridView header at the time of scrolling, Here is one simpletips:Step 1 : Create a CSS class as following .HeaderFreez  {  position:relative ;   top:expression(this.offsetParent.scrollTop);  z-index: 10;  }   .HeaderFr
8 Jun 2010 by Abhijit Jana
Get list of all active HttpMoudles in ASP.NET
2 Jul 2013 by Abhimanyu vij
How to send an email with app setting in the web config file.
17 Apr 2012 by abhinavshastri
How to Call WebService Dynamically and Read WebService Definition
25 Feb 2010 by Abhishek Banerjee (A Web Developer)
Hello All,Today I am showing an interesting block of code which will help you in applying user search on a tree view control of asp.net applications.PrerequisitesFor this you have to create an asp.net demo project using language C#Action:Step 1: Now Create a web page with name...
1 May 2013 by 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.
24 Aug 2015 by Abhishek Kumar Goswami
Here you will learn about localDB.js library which maps the structure of databases in objects using localStorage API provided by HTML5.
22 Dec 2017 by Abhishek Shrotriya
Develop the text comparator utility using jQuery plug-in, which internally uses Google's diff_match_patch.js library
10 Sep 2009 by Abhishek Sur
It is to be noted, .NET has lately introducedResponse.RedirectParmanent() after a long await. The main motive of this is tohave permanent response redirection to the Search Engines.Response.RedirectParmanent() is an extension function introduced in .NET 4.0.Themain motive of it is to indicate
13 Sep 2009 by Abhishek Sur
It is a very common issue to handle automatic postbacks to controls. Here I am going to explain how we can handle autopostback of a button click using Javascript Event. Suppose you have a button : Now you want to occationally c
22 Sep 2009 by Abhishek Sur
Sometimes we have requirement to disable Right Click context menu and Text selection of a web page from the user, so that the user cannot use the right click default context menu and also to disable text selection so that sensitive data could not be copied from the website. To Disable Context Menudo
13 Dec 2009 by Abhishek Sur
Hi Guys,It is common behavior of ASP.NET that if a control is set to Visible = "false", the response stream doesn't contain the definition of it. Therefore, if you want to make the control visible during runtime from Javascript always put display = none in styles attribute.Say you have a...
28 Sep 2011 by ac-2008
Maybe this would have saved you some efforts: http://developer.mindtouch.com/SgmlReader[^]. I have already developed a project (Delivery Predictor) with this reader: http://achristov.info/Projects.aspx[^]
8 Sep 2015 by Adam A Black
MVC HtmlHelper for HTML5 datalist Tag
22 Feb 2011 by Adel Refaat
Localization support in DotNetNuke
20 Mar 2011 by Adel Refaat
DotNetNuke Resources keys
6 Mar 2014 by Adel Refaat
A SharePoint WebPart that hosts Razor files (.cshtml, .vbhtml)
19 Aug 2016 by Adi_Mag
Step by step guide to configure gulp in ASP.NET MVC core 1.0
3 Dec 2016 by Adi_Mag
Integrate Serilog with ASP.NET Core application
17 Dec 2013 by Adittya Gupta
Table Value Parameters in SQL Server 2008 with ASP.NET.
9 Jan 2014 by adriancs, Vishal Pand3y, Wombaticus
Sample JavaScript for filtering file extension and file size
14 Jan 2014 by adriancs
Easily get Country, Region and Citry of web visitors from their IP address.
1 Feb 2023 by adriancs
A tool to prevent spam bot
30 Dec 2013 by Afazal MD 3104209
VC 4 Display Mode. Different view selected based on Desktop or Mobile browser request
16 Mar 2013 by AfnanMof
This WebPart is developed to display all site collections and subsites based on logged in authentication
23 Mar 2013 by AfnanMof
Steps How to Develop Sharepoint Windows Forms
13 Sep 2014 by Afzaal Ahmad Zeeshan
A slight comparison of ASP.NET upon other (web) programming languages in the market and a discussion of me and some other (web) programming language developers.
14 Sep 2014 by 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
28 Feb 2015 by Afzaal Ahmad Zeeshan
This tip is to provide an overview of writing strings in ASP.NET web applications to avoid concatenations.
3 Jan 2013 by Agrawal Ashok
Checkboxes working like radio buttons.
17 Dec 2012 by Ahmad Dekmak
Asp.net implementation for the resumable.js
16 May 2014 by Ahmad F Hassan
An easy way to view hierarchical data in a simple ASP .NET Repeater
5 Nov 2013 by Ahmed Alaa El-Din
Useful and simple tutorial to create multi-language ASP.NET website. Following these steps, you will be able to create a good user interface multi-language website with 4 main steps.
14 Nov 2013 by 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.
8 Feb 2014 by Ahmed Bensaid
Run Web Application in Multiple Browsers (Visual Studio)
1 Jan 2014 by Ahmed Jubayer
This tip describes how to send auto email using Windows service
18 Sep 2010 by Ahmed R El Bohoty
12 Oct 2010 by 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...
30 May 2012 by Ahsan Murshed
This article gives ideas to developers to increase development time productivity using the free Visual Studio 2010 extensions.
24 Jan 2011 by ahsan sarfraz
Convert a Dataset to bytes array and then compress that array.
3 Dec 2012 by ahsanriaz1K
I will give a solution to the following problem "Response.TransmitFile(sFullHtmFilePath)" gives unformatted display of htm file on browser on client side.
23 Feb 2013 by ajaynarewade
This tip explains how to keep application settings classified by sections in another config file.
25 Feb 2013 by ajaynarewade
This is helper class to post serialized objects (Data) to other page in asp.net.
11 Dec 2019 by Akmishra0719
Daily reminder using SQL Agent and SignalR
2 Mar 2010 by Aksh Sharma
This article describes how to use Visual C# .NET code to trap and respond to errors when they occur in ASP.NET.
29 Jul 2016 by Akshay Meghraj
Validate ASP.NET Fileupload control file type and size by using jQuery validation
11 Jan 2019 by akshay_zz
This article will provide you the alternative way to navigate page in a crystal report viewer, as default paging looks broken
25 Mar 2013 by AlbertoLeon CSharpMan
The build of Web.Debug.Config throws the error as value 'MySql.Data.MySqlClient' is already present.
27 Mar 2013 by AlbertoLeon CSharpMan
When building a View with a ViewBag containing a property that references a class.
9 Mar 2011 by Albin Abel
It is not a trick, but a tip/ call for consider to use alternative to Databinder.Eval method with larger data sets
27 Mar 2011 by Albin Abel
Instances of pages not accessible like other classes. This demonstrates how to instantiate a page and pass parameters through a custom HttpHandler.
29 Mar 2011 by Albin Abel
Though update panel keeps the page responsive while paritially post back, it will not avoid a round trip of complete page and control events. So care needs for a better performance
18 Apr 2011 by Albin Abel
Just a simple note with sys.StringBuilder which is just beginner level
29 Apr 2011 by Albin Abel
When to call master functions through a contract (abstract class, Interface etc.,)
5 Aug 2010 by Alejandro Barrada
How to pass custom args to the OnSuccess callback function of javascript ajax
27 Mar 2013 by Alejandro Garcia
Databinding enumerators to DataBound controls.
11 Sep 2017 by Alen Toma
Entity Framework Dynamic include hierarchy
3 Oct 2018 by Alen Toma
EntityWorker.Core - an alternative to entity Framework
27 Dec 2018 by Alessio Aronica
Generate forms from MVC models in one simple line of code
16 Mar 2015 by Alex_1
Cool menu, MVC bootstrap menu HTML helper
5 Jun 2017 by Alexander Kozlovskiy
Used for binding custom types (including files) when sending and receiving multipart encoded form data
12 Sep 2012 by Alexandr Mihalciuc
This tip shows how to inject WCF proxies into controllers using Castle Windsor Interceptors.
24 Oct 2011 by AlexCode
Adding support for IHttpHandler on ASP.NET Routing
7 Nov 2011 by AlexCode
Hi guys, I have a new version of this.Although it works as expected for the majority of cases, I found a problem on the previous version of this code, that is, it reuses the HttpHandler for different requests and that can be a problem on more complex implementations where inner properties are...
20 Feb 2024 by Alexnader Selishchev
Nocode open source CI+CD for ASP.NET apps
9 May 2012 by Ali Al Omairi(Abu AlHassan)
Overwriting the __doPostBack() function to target the post-back form according to eventTarget
20 Apr 2013 by Aliaa Ezzat
15 Oct 2013 by Alireza C
This code helps you to grab ConnectionString from App.config.
18 Sep 2010 by alrosan
One method to generate random text
5 Jan 2013 by Alvin George
A whiteboard you can instantly share with others and all can start drawing and watching together in real-time
12 Jan 2011 by Aman Bhullar
1) Set debug=false under compilation as follows:2) Use Server.Transfer instead of Response.Redirect.3) Always check Page.IsValid when using Validator Controls4) Use Foreach loop instead of For loop for String Iteration.5) Use Client-Side Validation. (but not all the time you have...
2 Jan 2010 by Aman Bhullar
Here I am posting code, which will read through a Excel Document. This code will traverse through all sheets of Excel spread sheet, No matter what name they will have.This uses OLEDB connection to read through excel sheets.using System.Data.OleDb;protected void Page_Load(object...
17 Jan 2010 by Aman Bhullar
:confused::con...