Posts

Showing posts from December, 2014

Html Block Elements

 Html Block Elements All the HTML elements can be categorized into two categories (a) Block Level Elements (b) Inline Elements Block Elements Block elements appear on the screen as if they have a line break before and after them. For example the <p>, <h1>, <h2>, <h3>, <h4>, <h5>, <h6>, <ul>, <ol>, <dl>, <pre>, <hr />, <blockquote>, and <address> elements are all block level elements. They all start on their own new line, and anything that follows them appears on its own new line. Inline Elements Inline elements, on the other hand, can appear within sentences and do not have to appear on a new line of their own. The <b>, <i>, <u>, <em>, <strong>, <sup>, <sub>, <big>, <small>, <li>, <ins>, <del>, <code>, <cite>, <dfn>, <kbd>, and <var> elements are all inline elements. The ...

ASP.NET - File Uploading

Image
ASP.NET - File Uploading ASP.Net has two controls that allow the users to upload files to the web server. Once the server receives the posted file data, the application can save it, check it or ignore it. The following controls allow the file uploading: HtmlInputFile - an HTML server control FileUpload - and ASP.Net web control Both the controls allow file uploading, but the FileUpload control automatically sets the encoding of the form, whereas the HtmlInputFile does not do so. The basic syntax for using the FileUpload is: <asp:FileUpload ID = "Uploader" runat = "server" />     The content file: <body> <form id = "form1" runat = "server" > <div> <h3> File Upload: </h3> <br /> <asp:FileUpload ID = "FileUpload1" runat = "server" /> <br /><br /> <asp:Button ID = "btnsave" runat = "server" ...

Asp.net Difference between Website and Web Application in C#, VB.NET

Asp.net Difference between Website and Web Application in C#, VB.NET Web Application 1. If we create any class files / functions those will be placed anywhere in the applications folder structure and it is precomplied into one single DLL. 2. In web application we have chance of select only one programming language during creation of project either C# or VB.NET. 3. Whenever we create Web Application those will automatically create project files (.csproj or .vbproj). 4. We need to pre-compile the site before deployment. 5. If we want to deploy web application project we need to deploy only .aspx pages there is no need to deploy code behind files because the pre-compiled dll will contains these details. 6. If we make small change in one page we need to re-compile the entire sites. WebSite 1. If we create any class files/functions those will be placed in ASP.NET folder (App_Code folder) and it's compiled into several DLLs (assemblies) at runtime. ...