100%(4)4 out of 4 people found this document helpful
This preview shows page 4 - 10 out of 10 pages.
No Viewstate and Postback •Easily extensible and pluggable components Add attachment when sending emailAttachment newAttach = new Attachment(Server.MapPath("MyFile.txt")); newMsg.Attachments.Add(newAttach);
Server Control Categories Standard– Basic controls such as buttons, links, images, lists etc Validation– Used to validate data input by users. Navigation– navigation features, such as menus, to allow users to navigate around a web site Data – Provide access to data sources such as databases or XML files Login – provide a login mechanism for users to gain access to a site. TextBox→Textbox with single or multiple lines RadioButton → Single radio button, similar to checkbox, except you must handle deselect programmatically CheckBox → Single checkbox LinkButton → Corresponds to the HTML anchor tag for displaying a hyperlink Table→An HTML table TableRow → Row within a table TableCell → Cell within a table onclick - a mouse button is clicked over an <asp:button> controlServer Control Properties AccessKey – setting of a key with which a control can be assessed in the client by pressing the associated letter
week 11Hosting ASP.Net applications Several alternatives to hosting ASP.Net applications • Host on your own servers – Manage IIS server and databases • Host on a managed platform – Using IIS and databases provided by service provider • Host on Cloud platforms such as Azure – Platform exposes services such as webserver and databases