We can view the controls that are available by opening up the Toolbox task pane and maximizing the ASP.NET Controls option. Within this option, there are six categories of controls. Of these, we can ignore the WebParts option because that is simply a link to the Web Parts task pane.
It should be noted that it is not possible to use ASP.NET WebParts in SharePoint 2007 sites. It is, however, possible for developers to create their new user controls as SmartParts (see http://www.codeplex.com/smartpart) to allow them to be included within WSS and MOSS sites.
The five remaining categories are:
This contains a large number of controls. Most of these are simple, for example:
In addition, we have standard controls that are somewhat more exciting:
The data controls allow us to connect to various different data sources, display the results on our page, and update the data in the source.
Because SharePoint already provides us with access to data sources in the Data Source Library task pane, we can safely ignore these controls.
The validation controls allow us to validate information input by the user. We will see this in practice towards the end of the article, when we add validation to a form.
The navigation controls provide us with three different methods of helping users navigate our site. The Menu and TreeView controls would allow users to browse to a particular page, while the SiteMapPath control displays breadcrumbs that show their position within the page hierarchy. We will see an example of the Menu control later in this article.
The login controls allow us to take advantage of ASP.NET’s extensive membership provider system. The benefit of this is that we no longer need to manually create all the elements required by a login system (i.e. registration, login, password reminder, etc.). We will also look at this in detail in this article.
Further information about virtually all of the ASP.NET server controls, including examples and code snippets, is available in the ASP.NET Control Reference in the .NET Framework SDK, which is available at.
In this article, we will be using various server controls in our pages.
We will start by adding one of the simplest controls to our homepage:
The following image shows the Properties shortcut menu that we see as we work through this process:
Now, when we open http://olmec/share/ in our browser, we see that the default page links to the Order Graphs.
I remember deciding to pursue my first IT certification, the CompTIA A+. I had signed…
Key takeaways The transformer architecture has proved to be revolutionary in outperforming the classical RNN…
Once we learn how to deploy an Ubuntu server, how to manage users, and how…
Key-takeaways: Clean code isn’t just a nice thing to have or a luxury in software projects; it's a necessity. If we…
While developing a web application, or setting dynamic pages and meta tags we need to deal with…
Software architecture is one of the most discussed topics in the software industry today, and…