How To Ideas | How To Articles | How To Tutorials


List/Grid ASP.NET Subscribe RSS feed of category ASP.NET

How To Get User’s IP Address In ASP.NET

Some times for security purposes, when any user login to your site, you want to save his IP Address in your database or somewhere else. You might even want to print the IP Address of the user to warn them not to do anything wrong on your website. In this article, I will show you two different ways or two different statements to get user’s IP address. Instructions:  Using UserHostAddress… Read more »

How To Disable Session State Creation In ASP.NET

As ASP.NET Session State is on by default in ASP.NET, and if you are not using Sessions in your website, you should prefer to disable it, because it will save your server load and will also help you in optimizing your website. Instructions: If you are sure, you don’t want to use session on any of your website page, then turn off sessions completely by adding following lines of code… Read more »

How To Store Custom Objects In web.config In ASP.NET

In this Article, I am going to discuss about how can we store custom objects i.e our own variables in web.config. Generally we used to have some data in appSettings section of web.config and read it when required in web forms. But actually we can not only read that data i code behind files for our web forms but we can update the data as well in web.config programmatically. There… Read more »

How To Edit Data In Untyped DataSet In ASP.NET

Dataset is one of those controls which programmers use most of the time for binding data to any of the Data Binding Control. When you fetch data from SQL Server in Dataset, then you can edit the fetched data before binding it to any of the Data Binding control. I have already discussed the same topic for Type Dataset over here. Using this approach your actual data in the Database… Read more »

How To Bind Data From SQL Server To Repeater Using SqlDataAdapter And DataSet

Some days back, I wrote an article on Binding Data To Repeater Using SqlDataReader class which you can read here. In this article I will explain the easiest way for Binding Data To Repeater Using SqlDataAdapter and DataSet classes. But before explaining this I want to differentiate the two methods (using SqlDataReader or using SqlDataAdapter and DataSet). As SqlDataReader is Forward only, this means, you can read data starting from… Read more »

How To Bind Data From SQL Server Table To Repeater Using SqlDataReader

Now continuing my discussion on Binding Data to Repeater Control in ASP.NET, today, I will write about how can we Bind Data to Repeater that has been fetched from a SQL Server Table. The process is almost same to the one which I had discussed last time, where I bound a Collection(List) of custom class to Repeater (click here to view last article), the only difference is the way of… Read more »

How To Use Typed Dataset In ASP.NET

In my previous article, I discussed about creating Typed Dataset in Visual Studio. In this article, I will show you how can we use that Dataset to fetch data. In this article, I will show, you how to edit a particular record in that Dataset, binding that Dataset to any Data Binding Control, fetching any column value of any row. To create Typed Dataset, first see my article on How… Read more »

How To Create Typed Dataset In Visual Studio

In .NET we have two kinds of Datasets, one is Typed Dataset and second is Untyped Dataset. Untyped Dataset are create at run time using code but Typed Dataset are created during design time and these exists as a file in your Website. You can add Tables, Views, etc. to Typed Dataset as many as you like. Once you are done, you can create new instance of this Typed Dataset… Read more »

How To Bind Data To Repeater In ASP.NET

Here is my first article on Binding Data to Repeater control in ASP.NET. Before starting, I would like to discuss about some of the properties of Repeater control, which makes it different from other Data Binding Controls like DataList, GridView, FormView, etc.. Repeater control doesn’t have any User Interface to define layout of the control. Like in GridView, DataList, etc., you can open task list and then can choose default… Read more »

How To Clear Session Variables In ASP.NET

Session in ASP.NET is a way to store user specific information on Server side which will not be visible to User in any form and its all up to you how you want to use Session to store User Information. As these Session variables consume some disk space on your Server, so you should Clear all those Session variables which are of no use. Instructions: If you want to Clear… Read more »



© 9796 How To Ideas. All rights reserved.
Proudly designed by Theme Junkie.