Asp.Net Multiview Control

The Multiview control of ASP.Net is an amazing control: it is versatile, user-frienldy and easy to use. If you want to see its use, look no further than this website itself. In fact, the tutorial set of the whole site is developed by using the Multiview control.

Inside the Multiview control, there are Views. You can use as many views as possible, with at least one navigation button at the bottom of each view so that the user can easily navigate from one view to another.

A typical Multiview control, say, with three views, looks as follows:



Asp.Net Multiview control

At the bottom of each view panel, navigation buttons must be placed so that the user can toggle between the views. They take the form of Next and Previous. Then, the Button_Click() event of the buttons and PPage_load() must be programmed so that this amazing control shows its amazing potential.

Page_Load() Event
public partial class aspnetmail : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
// The first view loads up, by default - ActiveViewIndex = 0
MultiView1.ActiveViewIndex = 0;
}
}

btnNext_Click() Event
protected void btnNext_Click(object sender, EventArgs e)
{
// Just increase the ActiveViewIndex by 1,
MultiView1.ActiveViewIndex += 1;
}
btnPrevious_Click() Event
protected void btnPrevious_Click(object sender, EventArgs e)
{
// Just just the ActiveViewIndex by 1,
MultiView1.ActiveViewIndex -= 1;
}

In the next two views, I am going to display the tune of a nursery rhyme and a video of the same, simply played by an acoustic guitar, respectively.

 

 

 

 

 

Resources at Fingertips

There is a significant selection of tutorials here, covering ASP.Net, HTML5, CSS3 and JavaScript. They are categorized clearly for you to access them easily on any device - desktops/laptops, smartphones and laptops.
There are quite a few of them on HTML5 Canvas and CSS3. In addition, there are tutorials on JavaScript and ASP.Net too.

Email: 

Stand Out - from the crowd

students

"There's no such thing as a free lunch."

The best things in nature are free with no strings attached - fresh air, breathtakingly warm sunshine, scene of meadow on the horizon...

Vivax Solutions, while mimicking nature, offers a huge set of tutorials along with interactive tools for free.

Please use them and excel in the sphere of science education.

Everything is free; not even registration is required.

 

 

Recommended Reading

 

The best book to master HTML5 canvas animations. The author tells you how to manipulate the canvas element with JavaScript in a progressive way - starting from the easier to harder worked examples. It is ideal for anyone who wants to be a game developer in HTML5.

Advertisements

Advertisement