To align text in a table cell, right-click (Web hosting service)
To align text in a table cell, right-click the cell and choose Style. Click Text in the Style Builder, set the Horizontal and Vertical Alignment, and click OK. To widen a column beyond what you can do by dragging, right-click some empty space in a cell in the column and choose Resize . Resize Column. Then, increase the current width, choose All Cells, and click OK. Like all ASP.NET controls, the Login control has a Common Tasks menu, as you saw earlier in this chapter. However, everything there is optional. All you really have to do is close and save the page on which you placed the control. To test the login page, right-click its name Login.aspx in Solution Explorer and choose View in Browser. To verify that the control works, type in a valid user name and password. An invalid user name and password is rejected. A valid entry takes you to the default page for the site. But that s fine for now; there s no way to verify right now if you re logged in or not anyway. This brings me to some other Login controls. (Don t forget to close the Web browser.) Providing a Login Link There s no telling which page in your site a user might first encounter. A link from a search engine could take a user to any page. To make your site easy to use, you need a login link on every page. An easy way to provide this is to put a link to the Login.aspx page into the Master Page for your site. But a regular link that always showed Login would be confusing for people who have already logged in. The link should show Logout or something else for people who are already logged in. That s where the LoginStatus control comes in. Figure 7-10: Login control added to a page. 136 Part II: Building Your Web Site
Note: In case you are looking for affordable webhost to host and run your servlet application check Vision servlet hosting services