Visit Hot Scripts for large collection of Asp.NET tips and tutorials you can download today. Our tips and tutorials are quick and easy to learn so try them today.
Tutorials & Tips
-
ASP .NET – Config Access – Part I
Learn how to : �Access web.config �Displaying appSetting element in a web page �Creating multiple values and keys in appSetting
Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
ASP .NET – Config Access – Part II
Learn how to : �Manipulate web.config �Manipulate appSetting element �Refreshing web.config element
Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
Session State Advantages and Disadvantages
ASP.NET Session State is improved in many ways when compared to sessions in classic ASP. ASP.NET Sessions supports web farms, survive web application's restart and can be stored out of working process. This tutorial explains advantages and
... (show more)Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
How to find if ASP.NET session is expired
ASP.NET doesn't know if visitor is closed web browser or just working on something else while page is still opened. To keep session live we can use meta refresh or JavaScript on client side. That is not always acceptable solution, especially in cases
... (show more)Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
ASP.NET Session State Modes Explained
ASP.NET Session State supports five different modes: Off, InProc, StateServer, SQLServer and Custom. This tutorial explains differences between these modes and recommends which one to use in specific ASP.NET applications.
Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
How to Store Session Data in ASP.NET State Server
If default InProc mode is used, ASP.NET session state is not reliable, scalable and doesn't support websites hosted on web farms. State Server solves all these problems and is good compromise between InProc and SQL Server modes. This tutorial explains
... (show more)Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
InProc Mode in ASP.NET Session State
ASP.NET Session State offers four modes to specify where you can store session data. InProc is default mode. It is fastest and easiest to use, but it has its own drawbacks. This tutorial explains advantages and possible problems when using InProc
... (show more)Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
How to Store ASP.NET Session State on SQL Server
ASP.NET Session State enables you to choose between four modes (InProc, StateServer, SQLServer and Custom) where you want to store website session data. SQL Server is most reliable and scalable of given options. This tutorial explains how to use SQL
... (show more)Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
How To Write, Read and Delete Session State Variables
Session state can be used to identify same visitor between requests. Session variables act as global variables, visible from all .aspx pages on website. This tutorial explains how to write, read and delete ASP.NET session state variables and avoid
... (show more)Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
ASP.NET Session State Alternatives
Session variables are easy to use, but they could cause problems with scalability, reliability and security. Although Session State in ASP.NET is improved a lot, especially when compared to classic ASP sessions, it is not appropriate solution in every
... (show more)Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
Scheduled Tasks in ASP.NET
Very often, there is a need to execute some code on certain date and time, or to repeat execution in regular time intervals. In case of ASP.NET web application, that could be sending of reminder e-mails, analyze traffic data, creating reports,
... (show more)Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
How To Keep ASP.NET Session Alive
If visitor doesn't make any web request in time interval longer than specified as session timeout (20 minutes by default), session will expire. That means all session variables will be deleted. Sometimes, we want to keep session alive and wait while user
... (show more)Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
Restart and Stop of ASP.NET Application
ASP.NET web application could restart or stop for numerous reasons. Most of the time, we would like that ASP.NET website is alive. To save resources, web server could restart or completely stop web application many times per day. Every time when this
... (show more)Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
How To Change ASP.NET Session Timeout
To preserve web server's resources, session expires after certain time of inactivity (20 minutes by default). If there are no new requests from same visitor, all session data related to that visitor are deleted from server's memory. This could be a
... (show more)Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
How To Show Total In GridView Footer
If you build any kind of report, very often requirement is to display result of some aggregate function bellow of numeric column. For example, that could be an average sales per customer, summary of time spent on project or similar that acts as some kind
... (show more)Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
Data Validation With Regular Expressions In ASP.NET
Regular expressions are powerful way to validate data, especially useful for complex data patterns where other methods like classic string manipulation can't help. Programmers often avoid learning of regular expressions because they look difficult on the
... (show more)Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
Using Regex Class in ASP.NET
Regex class represents regular expression in .Net RegEx engine, located in System.Text.RegularExpressions namespace. This tutorial explains how to use Regex class in four common regular expressions scenarios: extract data, search-and-replace, split
... (show more)Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
Working with System.DateTime – Date and Time String Formatting with C#
Software Development with C# needs to work with dates and times. To work efficiently with Date and Time .NET has the System.DateTime (DateTime) namespace to help us. You can use DateTime to get DateTime values, generate new DateTime values and format
... (show more)Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
Conditional Values And Styles In GridView
Raw data from database sometimes are not suitable for showing on web form directly. For example, you could need additional formatting for date values, show some message instead of NULLs, change 0 and 1 to data more intuitive to your visitors, show
... (show more)Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose -
Using PagedDataSource For Paging
GridView, DetailsView or FormView controls are complex controls that have many pre-built features, including data paging or sorting. On opposite, Repeater or DataList offer more control over HTML output and they usually work faster than GridView, but
... (show more)Thanks for your rating. Consider leaving a review and let others know more about your experience. Add ReviewClose