SlideShare ist ein Scribd-Unternehmen logo
1 von 4
Downloaden Sie, um offline zu lesen
Nithiyapriya Pasavaraj Page 1
HTML SERVER CONTROL
HOME.ASPX
<%@ Page Language=”C#” AutoEventWireup=”true” CodeFile=”home.aspx.cs” Inherits=”home” %>
<!DOCTYPE html>
<html xmlns=”http://www.w3.org/1999/xhtml”&gt;
<head runat=”server”>
<title></title>
</head>
<body>
<form id=”form1″ runat=”server” style=”background-color: #99CC00; height: 510px;”>
HTML SERVER CONTROLS – EXAMPLE – JOB APPLICATION REGISTRATION FORM
<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
<%@ Page Language=”C#” AutoEventWireup=”true” CodeFile=”jobs.aspx.cs” Inherits=”jobs” %>
<!DOCTYPE html>
<html xmlns=”http://www.w3.org/1999/xhtml”&gt;
<head runat=”server”>
<title></title>
</head>
<body style=”text-align: center”>
<form id=”form1″ runat=”server” enctype=”multipart/form-data”>
REGISTRATION FORM
<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>
Nithiyapriya Pasavaraj Page 2
</tr>
<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 />
<asp:Label ID = “lblMessage” Text=”File uploaded successfully.” runat=”server” ForeColor=”Green”
Visible=”false” />
</td>
</tr>
Nithiyapriya Pasavaraj Page 3
<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;
Nithiyapriya Pasavaraj Page 4
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.
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”&gt;
<head runat=”server”>
<title></title>
</head>
<body style=”text-align: center”>
<form id=”form1″ runat=”server”>
Thanks for Registering on our Portal!!!
</form>
<p>
&nbsp;</p>
</body>
</html>

Weitere ähnliche Inhalte

Was ist angesagt?

Controllers & actions
Controllers & actionsControllers & actions
Controllers & actions
Eyal Vardi
 

Was ist angesagt? (20)

SharePoint Saturday Baltimore 7/25/09 - Introduction To Developing Custom Act...
SharePoint Saturday Baltimore 7/25/09 - Introduction To Developing Custom Act...SharePoint Saturday Baltimore 7/25/09 - Introduction To Developing Custom Act...
SharePoint Saturday Baltimore 7/25/09 - Introduction To Developing Custom Act...
 
Training in Asp.net mvc3 platform-apextgi,noidaAspnetmvc3 j query
Training in Asp.net mvc3 platform-apextgi,noidaAspnetmvc3 j queryTraining in Asp.net mvc3 platform-apextgi,noidaAspnetmvc3 j query
Training in Asp.net mvc3 platform-apextgi,noidaAspnetmvc3 j query
 
ملخص تقنية تصميم صفحات الويب - الوحدة الرابعة
ملخص تقنية تصميم صفحات الويب - الوحدة الرابعةملخص تقنية تصميم صفحات الويب - الوحدة الرابعة
ملخص تقنية تصميم صفحات الويب - الوحدة الرابعة
 
Why Django for Web Development
Why Django for Web DevelopmentWhy Django for Web Development
Why Django for Web Development
 
`From Prototype to Drupal` by Andrew Ivasiv
`From Prototype to Drupal` by Andrew Ivasiv`From Prototype to Drupal` by Andrew Ivasiv
`From Prototype to Drupal` by Andrew Ivasiv
 
Enough with the javas cript already! de Nicholas Zakas
Enough with the javas cript already! de Nicholas ZakasEnough with the javas cript already! de Nicholas Zakas
Enough with the javas cript already! de Nicholas Zakas
 
Ajax
AjaxAjax
Ajax
 
Spring Mvc Rest
Spring Mvc RestSpring Mvc Rest
Spring Mvc Rest
 
1 ppt-ajax with-j_query
1 ppt-ajax with-j_query1 ppt-ajax with-j_query
1 ppt-ajax with-j_query
 
Opensocial Codelab
Opensocial CodelabOpensocial Codelab
Opensocial Codelab
 
Android Lab Test : Using the network with HTTP (english)
Android Lab Test : Using the network with HTTP (english)Android Lab Test : Using the network with HTTP (english)
Android Lab Test : Using the network with HTTP (english)
 
Inner core of Ajax
Inner core of Ajax Inner core of Ajax
Inner core of Ajax
 
Managing states
Managing statesManaging states
Managing states
 
Designing CakePHP plugins for consuming APIs
Designing CakePHP plugins for consuming APIsDesigning CakePHP plugins for consuming APIs
Designing CakePHP plugins for consuming APIs
 
Java Training Ahmedabad , how to Insert Data in Servlet, iOS Classes Ahmedabad
Java Training Ahmedabad , how to Insert Data in Servlet, iOS Classes AhmedabadJava Training Ahmedabad , how to Insert Data in Servlet, iOS Classes Ahmedabad
Java Training Ahmedabad , how to Insert Data in Servlet, iOS Classes Ahmedabad
 
Jquery Ajax
Jquery AjaxJquery Ajax
Jquery Ajax
 
Controller in AngularJS
Controller in AngularJSController in AngularJS
Controller in AngularJS
 
State management
State managementState management
State management
 
Controllers & actions
Controllers & actionsControllers & actions
Controllers & actions
 
Asp.net
Asp.netAsp.net
Asp.net
 

Ähnlich wie 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
 
Ôn tập KTTMDT
Ôn tập KTTMDTÔn tập KTTMDT
Ôn tập KTTMDT
mrcoffee282
 

Ähnlich wie 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!
 
QuickConnect
QuickConnectQuickConnect
QuickConnect
 
Web technology lab manual
Web technology lab manualWeb technology lab manual
Web technology lab manual
 
Ôn tập KTTMDT
Ôn tập KTTMDTÔn tập KTTMDT
Ôn tập KTTMDT
 
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
 
Introduction to Html5
Introduction to Html5Introduction to Html5
Introduction to Html5
 
Fcr 2
Fcr 2Fcr 2
Fcr 2
 
1cst
1cst1cst
1cst
 
HTML5 New and Improved
HTML5   New and ImprovedHTML5   New and Improved
HTML5 New and Improved
 
Intro to JavaScript
Intro to JavaScriptIntro to JavaScript
Intro to JavaScript
 
Sessionex1
Sessionex1Sessionex1
Sessionex1
 
Web technology
Web technologyWeb technology
Web technology
 
Lab final
Lab finalLab final
Lab final
 
JavaScript Training
JavaScript TrainingJavaScript Training
JavaScript Training
 
Web technology
Web technologyWeb technology
Web technology
 
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
 
Tutorial asp.net
Tutorial  asp.netTutorial  asp.net
Tutorial asp.net
 
HTML presentation for beginners
HTML presentation for beginnersHTML presentation for beginners
HTML presentation for beginners
 
Creating web api and consuming part 2
Creating web api and consuming part 2Creating web api and consuming part 2
Creating web api and consuming part 2
 

Mehr von priya Nithya

Mehr von 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)
 

Kürzlich hochgeladen

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 

Kürzlich hochgeladen (20)

Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
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
 
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...
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 

Html server control - ASP. NET with c#

  • 1. Nithiyapriya Pasavaraj Page 1 HTML SERVER CONTROL HOME.ASPX <%@ Page Language=”C#” AutoEventWireup=”true” CodeFile=”home.aspx.cs” Inherits=”home” %> <!DOCTYPE html> <html xmlns=”http://www.w3.org/1999/xhtml”&gt; <head runat=”server”> <title></title> </head> <body> <form id=”form1″ runat=”server” style=”background-color: #99CC00; height: 510px;”> HTML SERVER CONTROLS – EXAMPLE – JOB APPLICATION REGISTRATION FORM <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 <%@ Page Language=”C#” AutoEventWireup=”true” CodeFile=”jobs.aspx.cs” Inherits=”jobs” %> <!DOCTYPE html> <html xmlns=”http://www.w3.org/1999/xhtml”&gt; <head runat=”server”> <title></title> </head> <body style=”text-align: center”> <form id=”form1″ runat=”server” enctype=”multipart/form-data”> REGISTRATION FORM <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>
  • 2. Nithiyapriya Pasavaraj Page 2 </tr> <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 /> <asp:Label ID = “lblMessage” Text=”File uploaded successfully.” runat=”server” ForeColor=”Green” Visible=”false” /> </td> </tr>
  • 3. Nithiyapriya Pasavaraj Page 3 <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;
  • 4. Nithiyapriya Pasavaraj Page 4 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. 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”&gt; <head runat=”server”> <title></title> </head> <body style=”text-align: center”> <form id=”form1″ runat=”server”> Thanks for Registering on our Portal!!! </form> <p> &nbsp;</p> </body> </html>