SlideShare a Scribd company logo
2
Most read
4
Most read
HTML SERVER CONTROLS – NITHIYAPRIYA PASAVARAJ Page 1
Home.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="home.aspx.cs" Inherits="home" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server" style="background-color: #99CC00; height: 510px;">
<div style="text-align: center">
HTML SERVER CONTROLS - EXAMPLE - JOB APPLICATION REGISTRATION
FORM</div>
<p>
&nbsp;</p>
<p style="height: 66px">
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/jobs.aspx" style="text-align:
center; z-index: 1; left: 376px; top: 117px; position: absolute">Click here to Go to Registration
Page</asp:HyperLink>
</p>
</form>
</body>
</html>
Jobs.aspx
HTML SERVER CONTROLS – NITHIYAPRIYA PASAVARAJ Page 2
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="jobs.aspx.cs" Inherits="jobs" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body style="text-align: center">
<form id="form1" runat="server" enctype="multipart/form-data">
<div>
REGISTRATION FORM</div>
<table style="width:100%;" runat="server">
<tr>
<td class="auto-style1" style="text-align: right">FIREST NAME :</td>
<td style="text-align: left">
<input id="Text1" type="text" /></td>
</tr>
<tr>
<td class="auto-style1">LAST NAME</td>
<td style="text-align: left">
<input id="Text2" type="text" /></td>
</tr>
HTML SERVER CONTROLS – NITHIYAPRIYA PASAVARAJ Page 3
<tr>
<td class="auto-style1">USER NAME</td>
<td class="auto-style2">
<input id="Text3" type="text" /></td>
</tr>
<tr>
<td class="auto-style1">PASSWORD</td>
<td class="auto-style2">
<input id="Password1" type="password" /></td>
</tr>
<tr>
<td class="auto-style1">ADDRESS</td>
<td class="auto-style2">
<textarea id="TextArea1" name="S1"></textarea></td>
</tr>
<tr>
<td class="auto-style1">PHONE NO</td>
<td class="auto-style2">
<input id="Text4" type="text" /></td>
</tr>
<tr>
<td class="auto-style1">GENDER</td>
<td class="auto-style2">
<input id="Radio1" checked="true" name="R1" type="radio" value="V1" />&nbsp;&nbsp;
FEMALE&nbsp;&nbsp;&nbsp;
<input id="Radio2" checked="true" name="R1" type="radio" value="V1" />MALE</td>
</tr>
<tr>
<td class="auto-style1">QUALIFICATION</td>
<td class="auto-style2">UG
<input id="Checkbox1" type="checkbox" />&nbsp;&nbsp;&nbsp; PG
<input id="Checkbox2" type="checkbox" />&nbsp;&nbsp;&nbsp;&nbsp; M.Phil
<input id="Checkbox3" type="checkbox" />&nbsp;&nbsp;&nbsp;&nbsp; P.hD
<input id="Checkbox4" type="checkbox" /></td>
</tr>
<tr>
<td class="auto-style1">Select Your Desire Job Location</td>
<td class="auto-style2">
<select id="Select1" name="D1" runat="server">
<option>Select</option>
<option>Chennai</option>
<option>Trichy</option>
<option>Coimbatore </option>
</select></td>
</tr>
<tr>
<td class="auto-style1">Upload&nbsp; Your Resume</td>
<td class="auto-style2">
<input type="file" name="FileUpload" />
<asp:Button ID="Button1" Text="Upload" runat="server" OnClick="Upload" />
<br />
HTML SERVER CONTROLS – NITHIYAPRIYA PASAVARAJ Page 4
<asp:Label ID = "lblMessage" Text="File uploaded successfully." runat="server" ForeColor="Green"
Visible="false" />
</td>
</tr>
<tr>
<td class="auto-style3">&nbsp;</td>
<td class="auto-style2">
<input id="Submit1" type="submit" value="submit" runat="server" onserverclick="submit"
formmethod="get" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input id="Reset1" type="reset" value="reset" runat="server" />&nbsp;&nbsp;
</td>
</tr>
<tr>
<td class="auto-style3">&nbsp;</td>
<td class="auto-style2">
&nbsp;</td>
</tr>
</table>
</form>
</body>
</html>
Jobs.aspx.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.IO;
public partial class jobs : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void Upload(object sender, EventArgs e)
{
//Access the File using the Name of HTML INPUT File.
HttpPostedFile postedFile = Request.Files["FileUpload"];
//Check if File is available.
if (postedFile != null && postedFile.ContentLength > 0)
{
//Save the File.
HTML SERVER CONTROLS – NITHIYAPRIYA PASAVARAJ Page 5
string filePath = Server.MapPath("~/Uploads/") + Path.GetFileName(postedFile.FileName);
postedFile.SaveAs(filePath);
lblMessage.Visible = true;
}
}
protected void submit(object sender, EventArgs e)
{
Response.Redirect("jobs2.aspx");
}
}
Jobs2.aspx
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="jobs2.aspx.cs" Inherits="jobs2" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body style="text-align: center">
<form id="form1" runat="server">
<div>
HTML SERVER CONTROLS – NITHIYAPRIYA PASAVARAJ Page 6
<img alt="" src="uncommon-creative-bird-hd-wallpaper-high-resolution-image-creative-beautiful-
bird-hd-wallpaper-high-resolution-image-wallpapers-for-iphone-desktop-quality-with-quotes-facebook-
mobile-free-download-ideas.jpg" style="height: 194px; width: 252px" /><br />
<span class="auto-style1">Thanks for Registering on our Portal!!!</span></div>
</form>
<p>
&nbsp;</p>
</body>
</html>

More Related Content

What's hot (19)

PPTX
ACTIVE SERVER PAGES BY SAIKIRAN PANJALA
Saikiran Panjala
 
PPTX
Modelling Web Performance Optimization - FFSUx
Haribabu Nandyal Padmanaban
 
PPTX
Upstate CSCI 450 WebDev Chapter 4
DanWooster1
 
KEY
Introduction Django
Wade Austin
 
PPTX
Introduction about-ajax-framework
Sakthi Bro
 
PPTX
Responsive Web Design & APEX Theme 25
Christian Rokitta
 
DOCX
programming
Burson Augustin
 
PPT
Fast and Easy Website Tuneups
Jeff Wisniewski
 
PPTX
Challenges going mobile
Christian Rokitta
 
PDF
Ajax
soumya
 
PPTX
Html 5 pres
Satbir Singh
 
DOCX
Banners
amogom
 
DOCX
Introduction of javascript
syeda zoya mehdi
 
PDF
Pracitcal AJAX
jherr
 
PPTX
Ajax technology
Safal Agrawal
 
PDF
Ajax basics
Vel004
 
PDF
True Dreams Furniture
SimranGaur3
 
PPTX
Camel as a_glue
Andriy Andrunevchyn
 
PDF
Introduction to ajax
Nir Elbaz
 
ACTIVE SERVER PAGES BY SAIKIRAN PANJALA
Saikiran Panjala
 
Modelling Web Performance Optimization - FFSUx
Haribabu Nandyal Padmanaban
 
Upstate CSCI 450 WebDev Chapter 4
DanWooster1
 
Introduction Django
Wade Austin
 
Introduction about-ajax-framework
Sakthi Bro
 
Responsive Web Design & APEX Theme 25
Christian Rokitta
 
programming
Burson Augustin
 
Fast and Easy Website Tuneups
Jeff Wisniewski
 
Challenges going mobile
Christian Rokitta
 
Ajax
soumya
 
Html 5 pres
Satbir Singh
 
Banners
amogom
 
Introduction of javascript
syeda zoya mehdi
 
Pracitcal AJAX
jherr
 
Ajax technology
Safal Agrawal
 
Ajax basics
Vel004
 
True Dreams Furniture
SimranGaur3
 
Camel as a_glue
Andriy Andrunevchyn
 
Introduction to ajax
Nir Elbaz
 

Similar to HTML SERVER CONTROL - ASP.NET WITH C# (20)

PDF
Html server control - ASP. NET with c#
priya Nithya
 
TXT
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
Coulawrence
 
PPSX
Introduction to Html5
www.netgains.org
 
DOC
QuickConnect
Annu G
 
PDF
Web technology lab manual
neela madheswari
 
PDF
HTML5 New and Improved
Timothy Fisher
 
PDF
Practical PHP by example Jan Leth-Kjaer
COMMON Europe
 
PPTX
Sessionex1
myrajendra
 
PPTX
jQuery Mobile - Desenvolvimento para dispositivos móveis
Pablo Garrido
 
PPTX
Form using html and java script validation
Maitree Patel
 
TXT
Fcr 2
Ravi Peter
 
PDF
ASP.NET Overview - Alvin Lau
Spiffy
 
DOC
Ôn tập KTTMDT
mrcoffee282
 
PDF
Vaadin Components @ Angular U
Joonas Lehtinen
 
PDF
JSP Web Technology Application on Road Transport Services
Mujeeb Rehman
 
TXT
Gordian Knot Presentation (Help Network)
Jim Osowski
 
PDF
QCon 2015 - Thinking in components: A new paradigm for Web UI
Oliver Häger
 
DOCX
My project working well, but there no relationship between the t.docx
rosemarybdodson23141
 
PPTX
Implementation of GUI Framework part3
masahiroookubo
 
Html server control - ASP. NET with c#
priya Nithya
 
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
Coulawrence
 
Introduction to Html5
www.netgains.org
 
QuickConnect
Annu G
 
Web technology lab manual
neela madheswari
 
HTML5 New and Improved
Timothy Fisher
 
Practical PHP by example Jan Leth-Kjaer
COMMON Europe
 
Sessionex1
myrajendra
 
jQuery Mobile - Desenvolvimento para dispositivos móveis
Pablo Garrido
 
Form using html and java script validation
Maitree Patel
 
Fcr 2
Ravi Peter
 
ASP.NET Overview - Alvin Lau
Spiffy
 
Ôn tập KTTMDT
mrcoffee282
 
Vaadin Components @ Angular U
Joonas Lehtinen
 
JSP Web Technology Application on Road Transport Services
Mujeeb Rehman
 
Gordian Knot Presentation (Help Network)
Jim Osowski
 
QCon 2015 - Thinking in components: A new paradigm for Web UI
Oliver Häger
 
My project working well, but there no relationship between the t.docx
rosemarybdodson23141
 
Implementation of GUI Framework part3
masahiroookubo
 
Ad

More from priya Nithya (17)

PPTX
Android Architecture.pptx
priya Nithya
 
PPTX
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
priya Nithya
 
PPTX
Asynchronous data transfer
priya Nithya
 
PDF
Asp.net state management
priya Nithya
 
DOC
Android LAb - Creating an android app with Radio button
priya Nithya
 
PPTX
ASP.NET - Life cycle of asp
priya Nithya
 
DOC
Web application using c# Lab - Web Configuration file
priya Nithya
 
DOCX
Creation of simple application using - step by step
priya Nithya
 
PPSX
Adaptation of tcp window
priya Nithya
 
PPSX
Asp.net Overview
priya Nithya
 
PPSX
Key mechanism of mobile ip
priya Nithya
 
PPSX
Mobile ip overview
priya Nithya
 
PPSX
Features of mobile ip
priya Nithya
 
PDF
Creating a Name seperator Custom Control using C#
priya Nithya
 
PDF
How to Create Database component -Enterprise Application Using C# Lab
priya Nithya
 
PDF
Creating simple component
priya Nithya
 
PPT
Internet (i mcom)
priya Nithya
 
Android Architecture.pptx
priya Nithya
 
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
priya Nithya
 
Asynchronous data transfer
priya Nithya
 
Asp.net state management
priya Nithya
 
Android LAb - Creating an android app with Radio button
priya Nithya
 
ASP.NET - Life cycle of asp
priya Nithya
 
Web application using c# Lab - Web Configuration file
priya Nithya
 
Creation of simple application using - step by step
priya Nithya
 
Adaptation of tcp window
priya Nithya
 
Asp.net Overview
priya Nithya
 
Key mechanism of mobile ip
priya Nithya
 
Mobile ip overview
priya Nithya
 
Features of mobile ip
priya Nithya
 
Creating a Name seperator Custom Control using C#
priya Nithya
 
How to Create Database component -Enterprise Application Using C# Lab
priya Nithya
 
Creating simple component
priya Nithya
 
Internet (i mcom)
priya Nithya
 
Ad

Recently uploaded (20)

PDF
WATERSHED MANAGEMENT CASE STUDIES - ULUGURU MOUNTAINS AND ARVARI RIVERpdf
Ar.Asna
 
PPTX
Difference between write and update in odoo 18
Celine George
 
PPTX
Introduction to Biochemistry & Cellular Foundations.pptx
marvinnbustamante1
 
PDF
epi editorial commitee meeting presentation
MIPLM
 
PDF
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
PPTX
infertility, types,causes, impact, and management
Ritu480198
 
PDF
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PDF
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
PDF
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 
PDF
IMPORTANT GUIDELINES FOR M.Sc.ZOOLOGY DISSERTATION
raviralanaresh2
 
PPTX
How to Configure Re-Ordering From Portal in Odoo 18 Website
Celine George
 
PDF
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PPTX
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PPTX
ENG8_Q1_WEEK2_LESSON1. Presentation pptx
marawehsvinetshe
 
PDF
Council of Chalcedon Re-Examined
Smiling Lungs
 
PPTX
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
PDF
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 
WATERSHED MANAGEMENT CASE STUDIES - ULUGURU MOUNTAINS AND ARVARI RIVERpdf
Ar.Asna
 
Difference between write and update in odoo 18
Celine George
 
Introduction to Biochemistry & Cellular Foundations.pptx
marvinnbustamante1
 
epi editorial commitee meeting presentation
MIPLM
 
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
infertility, types,causes, impact, and management
Ritu480198
 
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
Biological Bilingual Glossary Hindi and English Medium
World of Wisdom
 
Mahidol_Change_Agent_Note_2025-06-27-29_MUSEF
Tassanee Lerksuthirat
 
IMPORTANT GUIDELINES FOR M.Sc.ZOOLOGY DISSERTATION
raviralanaresh2
 
How to Configure Re-Ordering From Portal in Odoo 18 Website
Celine George
 
STATEMENT-BY-THE-HON.-MINISTER-FOR-HEALTH-ON-THE-COVID-19-OUTBREAK-AT-UG_revi...
nservice241
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
Nitrogen rule, ring rule, mc lafferty.pptx
nbisen2001
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
ENG8_Q1_WEEK2_LESSON1. Presentation pptx
marawehsvinetshe
 
Council of Chalcedon Re-Examined
Smiling Lungs
 
Post Dated Cheque(PDC) Management in Odoo 18
Celine George
 
Aprendendo Arquitetura Framework Salesforce - Dia 03
Mauricio Alexandre Silva
 

HTML SERVER CONTROL - ASP.NET WITH C#

  • 1. HTML SERVER CONTROLS – NITHIYAPRIYA PASAVARAJ Page 1 Home.aspx <%@ Page Language="C#" AutoEventWireup="true" CodeFile="home.aspx.cs" Inherits="home" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server" style="background-color: #99CC00; height: 510px;"> <div style="text-align: center"> HTML SERVER CONTROLS - EXAMPLE - JOB APPLICATION REGISTRATION FORM</div> <p> &nbsp;</p> <p style="height: 66px"> <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/jobs.aspx" style="text-align: center; z-index: 1; left: 376px; top: 117px; position: absolute">Click here to Go to Registration Page</asp:HyperLink> </p> </form> </body> </html> Jobs.aspx
  • 2. HTML SERVER CONTROLS – NITHIYAPRIYA PASAVARAJ Page 2 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="jobs.aspx.cs" Inherits="jobs" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body style="text-align: center"> <form id="form1" runat="server" enctype="multipart/form-data"> <div> REGISTRATION FORM</div> <table style="width:100%;" runat="server"> <tr> <td class="auto-style1" style="text-align: right">FIREST NAME :</td> <td style="text-align: left"> <input id="Text1" type="text" /></td> </tr> <tr> <td class="auto-style1">LAST NAME</td> <td style="text-align: left"> <input id="Text2" type="text" /></td> </tr>
  • 3. HTML SERVER CONTROLS – NITHIYAPRIYA PASAVARAJ Page 3 <tr> <td class="auto-style1">USER NAME</td> <td class="auto-style2"> <input id="Text3" type="text" /></td> </tr> <tr> <td class="auto-style1">PASSWORD</td> <td class="auto-style2"> <input id="Password1" type="password" /></td> </tr> <tr> <td class="auto-style1">ADDRESS</td> <td class="auto-style2"> <textarea id="TextArea1" name="S1"></textarea></td> </tr> <tr> <td class="auto-style1">PHONE NO</td> <td class="auto-style2"> <input id="Text4" type="text" /></td> </tr> <tr> <td class="auto-style1">GENDER</td> <td class="auto-style2"> <input id="Radio1" checked="true" name="R1" type="radio" value="V1" />&nbsp;&nbsp; FEMALE&nbsp;&nbsp;&nbsp; <input id="Radio2" checked="true" name="R1" type="radio" value="V1" />MALE</td> </tr> <tr> <td class="auto-style1">QUALIFICATION</td> <td class="auto-style2">UG <input id="Checkbox1" type="checkbox" />&nbsp;&nbsp;&nbsp; PG <input id="Checkbox2" type="checkbox" />&nbsp;&nbsp;&nbsp;&nbsp; M.Phil <input id="Checkbox3" type="checkbox" />&nbsp;&nbsp;&nbsp;&nbsp; P.hD <input id="Checkbox4" type="checkbox" /></td> </tr> <tr> <td class="auto-style1">Select Your Desire Job Location</td> <td class="auto-style2"> <select id="Select1" name="D1" runat="server"> <option>Select</option> <option>Chennai</option> <option>Trichy</option> <option>Coimbatore </option> </select></td> </tr> <tr> <td class="auto-style1">Upload&nbsp; Your Resume</td> <td class="auto-style2"> <input type="file" name="FileUpload" /> <asp:Button ID="Button1" Text="Upload" runat="server" OnClick="Upload" /> <br />
  • 4. HTML SERVER CONTROLS – NITHIYAPRIYA PASAVARAJ Page 4 <asp:Label ID = "lblMessage" Text="File uploaded successfully." runat="server" ForeColor="Green" Visible="false" /> </td> </tr> <tr> <td class="auto-style3">&nbsp;</td> <td class="auto-style2"> <input id="Submit1" type="submit" value="submit" runat="server" onserverclick="submit" formmethod="get" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input id="Reset1" type="reset" value="reset" runat="server" />&nbsp;&nbsp; </td> </tr> <tr> <td class="auto-style3">&nbsp;</td> <td class="auto-style2"> &nbsp;</td> </tr> </table> </form> </body> </html> Jobs.aspx.cs using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using System.IO; public partial class jobs : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void Upload(object sender, EventArgs e) { //Access the File using the Name of HTML INPUT File. HttpPostedFile postedFile = Request.Files["FileUpload"]; //Check if File is available. if (postedFile != null && postedFile.ContentLength > 0) { //Save the File.
  • 5. HTML SERVER CONTROLS – NITHIYAPRIYA PASAVARAJ Page 5 string filePath = Server.MapPath("~/Uploads/") + Path.GetFileName(postedFile.FileName); postedFile.SaveAs(filePath); lblMessage.Visible = true; } } protected void submit(object sender, EventArgs e) { Response.Redirect("jobs2.aspx"); } } Jobs2.aspx <%@ Page Language="C#" AutoEventWireup="true" CodeFile="jobs2.aspx.cs" Inherits="jobs2" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body style="text-align: center"> <form id="form1" runat="server"> <div>
  • 6. HTML SERVER CONTROLS – NITHIYAPRIYA PASAVARAJ Page 6 <img alt="" src="uncommon-creative-bird-hd-wallpaper-high-resolution-image-creative-beautiful- bird-hd-wallpaper-high-resolution-image-wallpapers-for-iphone-desktop-quality-with-quotes-facebook- mobile-free-download-ideas.jpg" style="height: 194px; width: 252px" /><br /> <span class="auto-style1">Thanks for Registering on our Portal!!!</span></div> </form> <p> &nbsp;</p> </body> </html>