How to use session state in ASP.NET using VB.NET

This ASP.NET tutorial explains how to use session state in ASP.NET using VB.NET.

Software developer can interact with session state using the  System.Web.SessionState.HttpSessionState class, which is provided in an ASP.NET web page as the built-in Session object. Items can be added to the collection and retrieved after in the same manner as items [...]

How to transfer information between pages in ASP.NET using a query string in VB.NET.

This APS.NET tutorial explains how to transfer information between pages in ASP.NET using a query string in VB.NET.

Software developer can use this approach for information that don’t need to be hidden or made tamper-prof. Unlike view state information passed through the query string is clearly visible and unencrypted. The query string is the portion [...]

How to transfer information between pages in ASP.NET using cross-page posting in VB.NET

This APS.NET tutorial explains how to transfer information between pages in ASP.NET using cross-page posting in VB.NET.

Software developer can transfer information between pages with technique named cross-page posting. If he wants to do use it he has to define specific, limited methods that extract just the information he need it.   Let’s for example he have a [...]

How to store custom objects in a View state using VB.NET

This ASP.NET tutorial explains how to store custom objects in a view state using VB.NET

Software developer can store custom objects in a view state just as easily as regular types. However, to store an item in a view state, ASP.NET must be able to convert it into a stream of bytes. This process is called [...]

How to set focus on control in VB.NET

This ASP.NET tutorial explains how to set focus on control in VB.NET.

You can put the focus on the following types of ASP.NET controls: Button, LinkButton, and ImageButton controls, CheckBox control, DropDownList control, FileUpload control, HyperLink control, ListBox control, RadioButton control, TextBox control.

The following VB.NET code example shows how to set the focus on the control with [...]

How to preserve member variables for an ASP.NET page in VB.NET

This ASP.NET tutorial explains how to preserve member variables for an ASP.NET page in VB.NET.

Software developers can follow the next basic principle. They can save all member variables to view state when the Page.PreRender event occurs and retrieve them when the Page.Load event occurs. The Page.Load event happens every time the page is created. In [...]

How to use ViewState in VB.NET

This ASP.NET tutorial explains how to use ViewState in VB.NET.

You as software developer can use code to add information directly to the view state collection of the containing page and recover it later after the page is posted back. The type of information you can store includes not only the simple data types, but your custom [...]

How to get the current date in VB.NET

This VB.NET tutorial explains how to get the current date in VB.NET.

To get the current date in VB.NET you should use DateTime.Now Property:

‘ Get the current date and time in VB.NET

Dim currentDate As DateTime [...]