Posts

Showing posts from November, 2014

ASP.NET - File Uploading

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: Example: 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" onclick = " btnsave_Click " Text = "Save"...

HTML Marquees

HTML Marquees An HTML marquee is a scrolling piece of text displayed either horizontally across or vertically down your webpage depending on the settings. This is created by using HTML <marquees> tag. Syntax <marquee attribute_name = "attribute_value" .... more attributes > One or more lines or text message or image </marquee>   The <marquee> Tag Attributes Attribute Description width This specifies the width of the marquee. This can be a value like 10 or 20% etc. height This specifies the height of the marquee. This can be a value like 10 or 20% etc. direction This specifies the direction in which marquee should scroll. This can be a value like up , down , left or right . behavior This specifies the type of scrolling of the marquee. This can have a value like scroll , slide and alternate . scrolldelay This specifies how long to delay between each jump. This will have a value like 10 etc. scrollamount This specifies the spe...

ASP.NET - ADO.net

Image
ASP.NET - ADO.net ADO.Net provides a bridge between the front end controls and the back end database. The ADO.Net objects encapsulate all the data access operations and the controls interact with these objects to display data, thus hiding the details of movement of data   .

A Simple HTML Login page using JavaScript

A Simple HTML Login page using JavaScript Try it.... < html > < head > < title > Login page < /title> </ head > < body > < h1 style = "font-family:Comic Sans Ms;text-align=" center "; font - size : 20pt ; color :# 00FF00 ;> Simple Login Page < /h1> <form name="login"> Username<input type="text" name="userid"/ > Password < input type = "password" name = "pswrd" /> < input type = "button" onclick = "check(this.form)" value = "Login" /> < input type = "reset" value = "Cancel" /> < /form> <script language="javascript"> function check(form)/ * function to check userid & password * / { / * the following code checkes whether the entered userid and password are matching * / if(form.userid.value == "myuserid" && form.pswrd...

What are Cookies?

What are Cookies? Web Browser and Server use HTTP protocol to communicate and HTTP is a stateless protocol. But for a commercial website, it is required to maintain session information among different pages. For example, one user registration ends after completing many pages. But how to maintain user's session information across all the web pages. Example: Following is the example to set a customer name in input cookie. <html> <head> <script type = "text/vbscript" > Function WriteCookie If document . myform . customer . value = "" Then msgbox "Enter some value!" Else cookievalue =( document . myform . customer . value ) document . cookie = "name=" + cookievalue msgbox "Setting Cookies : " & "name=" & cookievalue End If End Function </script> </head> <body> <form name = "myform" action = ...

HTML5 Events

HTML5 Events There are following attributes which can be used to trigger any java script or vb script code given as value, when there is any event occurs for any HTM5 element. Attribute Value Description offline script Triggers when the document goes offline onabort script Triggers on an abort event onafterprint script Triggers after the document is printed onbeforeonload script Triggers before the document loads onbeforeprint script Triggers before the document is printed onblur script Triggers when the window loses focus oncanplay script Triggers when media can start play, but might has to stop for buffering oncanplaythrough script Triggers when media can be played to the end, without stopping for buffering onchange script Triggers when an element changes onclick script Triggers on a mouse click oncontextmenu script Triggers when a context menu is triggered ondblclick script Triggers on a mouse double-click ondrag script Triggers when an element is dragged ondr...

Web languages

Web languages Used for creating and editing pages on the web. Can do anything from putting plain text on a webpage, to accessing and retrieving data from a database. Vary greatly in terms of power and complexity. HTML Hyper Text Markup Language. The core language of the world wide web that is used to define the structure and layout of web pages by using various tags and attributes. Although a fundamental language of the web, HTML is static - content created with it does not change. HTML is used to specify the content a webpage will contain, not how the page functions. XML Extensible Markup Language. A language developed by the W3C which works like HTML, but unlike HTML, allows for custom tags that are defined by programmers. XML allows for the transmission of data between applications and organizations through the use of its custom tags. Javascript A language developed by Netscape used to provide dynamic and interactive content on webpages. With Javascript...