SlideShare una empresa de Scribd logo
1 de 6
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>

Más contenido relacionado

La actualidad más candente

Fast and Easy Website Tuneups
Fast and Easy Website TuneupsFast and Easy Website Tuneups
Fast and Easy Website Tuneups
Jeff Wisniewski
 
Banners
BannersBanners
Banners
amogom
 
Ajax basics
Ajax basicsAjax basics
Ajax basics
Vel004
 

La actualidad más candente (20)

HTML5 workshop, part 1
HTML5 workshop, part 1HTML5 workshop, part 1
HTML5 workshop, part 1
 
ACTIVE SERVER PAGES BY SAIKIRAN PANJALA
ACTIVE SERVER PAGES BY SAIKIRAN PANJALAACTIVE SERVER PAGES BY SAIKIRAN PANJALA
ACTIVE SERVER PAGES BY SAIKIRAN PANJALA
 
Modelling Web Performance Optimization - FFSUx
Modelling  Web Performance Optimization - FFSUxModelling  Web Performance Optimization - FFSUx
Modelling Web Performance Optimization - FFSUx
 
Upstate CSCI 450 WebDev Chapter 4
Upstate CSCI 450 WebDev Chapter 4Upstate CSCI 450 WebDev Chapter 4
Upstate CSCI 450 WebDev Chapter 4
 
Introduction Django
Introduction DjangoIntroduction Django
Introduction Django
 
Introduction about-ajax-framework
Introduction about-ajax-frameworkIntroduction about-ajax-framework
Introduction about-ajax-framework
 
Responsive Web Design & APEX Theme 25
Responsive Web Design & APEX Theme 25Responsive Web Design & APEX Theme 25
Responsive Web Design & APEX Theme 25
 
programming
programmingprogramming
programming
 
Fast and Easy Website Tuneups
Fast and Easy Website TuneupsFast and Easy Website Tuneups
Fast and Easy Website Tuneups
 
Challenges going mobile
Challenges going mobileChallenges going mobile
Challenges going mobile
 
Ajax
AjaxAjax
Ajax
 
Html 5 pres
Html 5 presHtml 5 pres
Html 5 pres
 
Banners
BannersBanners
Banners
 
Introduction of javascript
Introduction of javascriptIntroduction of javascript
Introduction of javascript
 
Pracitcal AJAX
Pracitcal AJAXPracitcal AJAX
Pracitcal AJAX
 
Ajax technology
Ajax technologyAjax technology
Ajax technology
 
Ajax basics
Ajax basicsAjax basics
Ajax basics
 
True Dreams Furniture
True Dreams FurnitureTrue Dreams Furniture
True Dreams Furniture
 
Camel as a_glue
Camel as a_glueCamel as a_glue
Camel as a_glue
 
Introduction to ajax
Introduction to ajaxIntroduction to ajax
Introduction to ajax
 

Similar a HTML SERVER CONTROL - ASP.NET WITH C#

TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
Coulawrence
 
QuickConnect
QuickConnectQuickConnect
QuickConnect
Annu G
 
Form using html and java script validation
Form using html and java script validationForm using html and java script validation
Form using html and java script validation
Maitree Patel
 
ASP.NET Overview - Alvin Lau
ASP.NET Overview - Alvin LauASP.NET Overview - Alvin Lau
ASP.NET Overview - Alvin Lau
Spiffy
 
Ôn tập KTTMDT
Ôn tập KTTMDTÔn tập KTTMDT
Ôn tập KTTMDT
mrcoffee282
 
Gordian Knot Presentation (Help Network)
Gordian Knot Presentation (Help Network)Gordian Knot Presentation (Help Network)
Gordian Knot Presentation (Help Network)
Jim Osowski
 
My project working well, but there no relationship between the t.docx
My project working well, but there no relationship between the t.docxMy project working well, but there no relationship between the t.docx
My project working well, but there no relationship between the t.docx
rosemarybdodson23141
 

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

Html server control - ASP. NET with c#
Html server control - ASP. NET with c#Html server control - ASP. NET with c#
Html server control - ASP. NET with c#
 
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
TURN YOUR CELL PHONE FROM A LIABILITY INTO AN ASSET!
 
Introduction to Html5
Introduction to Html5Introduction to Html5
Introduction to Html5
 
QuickConnect
QuickConnectQuickConnect
QuickConnect
 
1cst
1cst1cst
1cst
 
Web technology lab manual
Web technology lab manualWeb technology lab manual
Web technology lab manual
 
HTML5 New and Improved
HTML5   New and ImprovedHTML5   New and Improved
HTML5 New and Improved
 
Practical PHP by example Jan Leth-Kjaer
Practical PHP by example   Jan Leth-KjaerPractical PHP by example   Jan Leth-Kjaer
Practical PHP by example Jan Leth-Kjaer
 
Sessionex1
Sessionex1Sessionex1
Sessionex1
 
jQuery Mobile - Desenvolvimento para dispositivos móveis
jQuery Mobile - Desenvolvimento para dispositivos móveisjQuery Mobile - Desenvolvimento para dispositivos móveis
jQuery Mobile - Desenvolvimento para dispositivos móveis
 
Form using html and java script validation
Form using html and java script validationForm using html and java script validation
Form using html and java script validation
 
Fcr 2
Fcr 2Fcr 2
Fcr 2
 
ASP.NET Overview - Alvin Lau
ASP.NET Overview - Alvin LauASP.NET Overview - Alvin Lau
ASP.NET Overview - Alvin Lau
 
Ôn tập KTTMDT
Ôn tập KTTMDTÔn tập KTTMDT
Ôn tập KTTMDT
 
Vaadin Components @ Angular U
Vaadin Components @ Angular UVaadin Components @ Angular U
Vaadin Components @ Angular U
 
JSP Web Technology Application on Road Transport Services
JSP Web Technology Application on Road Transport ServicesJSP Web Technology Application on Road Transport Services
JSP Web Technology Application on Road Transport Services
 
Gordian Knot Presentation (Help Network)
Gordian Knot Presentation (Help Network)Gordian Knot Presentation (Help Network)
Gordian Knot Presentation (Help Network)
 
QCon 2015 - Thinking in components: A new paradigm for Web UI
QCon 2015 - Thinking in components: A new paradigm for Web UIQCon 2015 - Thinking in components: A new paradigm for Web UI
QCon 2015 - Thinking in components: A new paradigm for Web UI
 
My project working well, but there no relationship between the t.docx
My project working well, but there no relationship between the t.docxMy project working well, but there no relationship between the t.docx
My project working well, but there no relationship between the t.docx
 
Implementation of GUI Framework part3
Implementation of GUI Framework part3Implementation of GUI Framework part3
Implementation of GUI Framework part3
 

Más de priya Nithya

Más de priya Nithya (17)

Android Architecture.pptx
Android Architecture.pptxAndroid Architecture.pptx
Android Architecture.pptx
 
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
 
Asynchronous data transfer
Asynchronous data transferAsynchronous data transfer
Asynchronous data transfer
 
Asp.net state management
Asp.net state managementAsp.net state management
Asp.net state management
 
Android LAb - Creating an android app with Radio button
Android LAb - Creating an android app with Radio buttonAndroid LAb - Creating an android app with Radio button
Android LAb - Creating an android app with Radio button
 
ASP.NET - Life cycle of asp
ASP.NET - Life cycle of aspASP.NET - Life cycle of asp
ASP.NET - Life cycle of asp
 
Web application using c# Lab - Web Configuration file
Web application using c# Lab - Web Configuration fileWeb application using c# Lab - Web Configuration file
Web application using c# Lab - Web Configuration file
 
Creation of simple application using - step by step
Creation of simple application using - step by stepCreation of simple application using - step by step
Creation of simple application using - step by step
 
Adaptation of tcp window
Adaptation of tcp windowAdaptation of tcp window
Adaptation of tcp window
 
Asp.net Overview
Asp.net OverviewAsp.net Overview
Asp.net Overview
 
Key mechanism of mobile ip
Key mechanism of mobile ip Key mechanism of mobile ip
Key mechanism of mobile ip
 
Mobile ip overview
Mobile ip overviewMobile ip overview
Mobile ip overview
 
Features of mobile ip
Features of mobile ipFeatures of mobile ip
Features of mobile ip
 
Creating a Name seperator Custom Control using C#
Creating a Name seperator Custom Control using C#Creating a Name seperator Custom Control using C#
Creating a Name seperator Custom Control using C#
 
How to Create Database component -Enterprise Application Using C# Lab
How to Create Database component -Enterprise Application Using C# Lab  How to Create Database component -Enterprise Application Using C# Lab
How to Create Database component -Enterprise Application Using C# Lab
 
Creating simple component
Creating simple componentCreating simple component
Creating simple component
 
Internet (i mcom)
Internet (i mcom)Internet (i mcom)
Internet (i mcom)
 

Último

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Último (20)

REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 

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>