Best web site - The tags for a control really don t look

The tags for a control really don t look like much, especially if you just keep the default settings for the control. In fact, from looking at the tags in Source view, you d wonder how they accomplish anything at all there s really not much to them. But, as is often the case, first appearances don t tell all. There are actually lots of attributes and settings hidden inside the tags. These attributes are just intentionally hidden so as to avoid cluttering up the Source view of the page. If you switch back to the Design view, and use the control s Common Tasks menu to convert the control to a template, the tags in Source view will change, often dramatically. Even if converting a control to a template has absolutely no visible effect on the control in Design view, chances are the switch has had a big effect on the content of the tags. For example, when you convert a Login control to a template, and switch to Source view, the number of tags between the Login control s opening and closing asp tags increases dramatically. In fact, I can t show all the tags here they d take several pages to display. Included in the expanded template view of the server control are the actual HTML tags used to render the control in the user s Web browser. You can edit any attribute in any tag you like (you can even design your controls that way). In Design view, choosing Reset from the Common Tasks menu collapses the control back to its smaller size in Source view. But remember, the Reset option also cancels out any customization you did while in the template view. I imagine most people would find it tedious to design things by tinkering with individual attributes in a templated server control. But then again, it all depends on your background and experience. There s no rule that says you must work in Source view. But you can if you want to do what works. Relaxing Password Constraints By default, Visual Web Developer requires that passwords be at least seven characters long and contain at least one non-alphanumeric character. This provides for strong security perhaps stronger than your site really needs. If you re not storing personal or financial information about users, you may want to relax the rules a little so users can make up passwords that are easier for them to remember. Chapter 7: Working with ASP.NET Controls 149
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision j2ee hosting services

Leave a Reply