Building the User Interface for an ASP.NET AJAX Client-Centric Wiki Application
(Page 1 of 4 )
In the last article, we began to put together a client-centric wiki application based on MS AJAX and ASP.NET. In this article, the second of four parts, we will take a look at the user interface, especially for logging in and registration, and at managing article categories.
A
downloadable .rar file is available for this article.
Asynchronously Logging into the System and User Management
Let's now take a first look at how the login functionality is accomplished.
User Interface
Ideally, we'd better arrange the login support as a part of the homepage and achieve the login operation asynchronously, which makes sense because users are able to log in from anywhere. Although I've put the login part in an individual page, you can very easily move it into the homepage.
Now, after starting up the application and clicking the Login button at the upper left corner of the homepage (default.aspx), a traditional login page will appear before us. The following Figure 7 gives one of the related runtime snapshots.
Figure 7-one of the runtime snapshots of the login page.

Note here, to test the logout functionality, we deliberately have not navigated the valid user to the homepage but left him/her at the "login.aspx" page so as to let him/her select to log out of the system or enter the homepage.
Another point that should be noticed is that in this sample any user opening the homepage has the ability to view the articles and all their related posted comments. However, only the validly logged in users (automatically assigned the role of "contributor" by the system) can write new articles and post comments to the present articles.
Next: Client-side Programming >>
More ASP.NET Articles
More By Xianzhong Zhu