SlideShare uma empresa Scribd logo
1 de 4
Baixar para ler offline
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>

Mais conteúdo relacionado

Mais procurados

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...Geoff Varosky
 
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 queryprav068
 
ملخص تقنية تصميم صفحات الويب - الوحدة الرابعة
ملخص تقنية تصميم صفحات الويب - الوحدة الرابعةملخص تقنية تصميم صفحات الويب - الوحدة الرابعة
ملخص تقنية تصميم صفحات الويب - الوحدة الرابعةجامعة القدس المفتوحة
 
`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 IvasivLemberg Solutions
 
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 ZakasKubide
 
1 ppt-ajax with-j_query
1 ppt-ajax with-j_query1 ppt-ajax with-j_query
1 ppt-ajax with-j_queryFajar Baskoro
 
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)Bruno Delb
 
Designing CakePHP plugins for consuming APIs
Designing CakePHP plugins for consuming APIsDesigning CakePHP plugins for consuming APIs
Designing CakePHP plugins for consuming APIsNeil Crookes
 
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 AhmedabadNicheTech Com. Solutions Pvt. Ltd.
 
Controller in AngularJS
Controller in AngularJSController in AngularJS
Controller in AngularJSBrajesh Yadav
 
Controllers & actions
Controllers & actionsControllers & actions
Controllers & actionsEyal Vardi
 

Mais procurados (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
 

Semelhante a 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#
HTML SERVER CONTROL - ASP.NET WITH C#priya Nithya
 
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
QuickConnectAnnu G
 
Ôn tập KTTMDT
Ôn tập KTTMDTÔn tập KTTMDT
Ôn tập KTTMDTmrcoffee282
 
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-KjaerCOMMON Europe
 
HTML5 New and Improved
HTML5   New and ImprovedHTML5   New and Improved
HTML5 New and ImprovedTimothy Fisher
 
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óveisPablo Garrido
 
HTML presentation for beginners
HTML presentation for beginnersHTML presentation for beginners
HTML presentation for beginnersjeroenvdmeer
 
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 2Dipendra Shekhawat
 

Semelhante 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!
 
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
 

Mais de priya Nithya

Android Architecture.pptx
Android Architecture.pptxAndroid Architecture.pptx
Android Architecture.pptxpriya Nithya
 
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...priya Nithya
 
Asynchronous data transfer
Asynchronous data transferAsynchronous data transfer
Asynchronous data transferpriya Nithya
 
Asp.net state management
Asp.net state managementAsp.net state management
Asp.net state managementpriya Nithya
 
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 buttonpriya Nithya
 
ASP.NET - Life cycle of asp
ASP.NET - Life cycle of aspASP.NET - Life cycle of asp
ASP.NET - Life cycle of asppriya Nithya
 
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 filepriya Nithya
 
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 steppriya Nithya
 
Adaptation of tcp window
Adaptation of tcp windowAdaptation of tcp window
Adaptation of tcp windowpriya Nithya
 
Key mechanism of mobile ip
Key mechanism of mobile ip Key mechanism of mobile ip
Key mechanism of mobile ip priya Nithya
 
Mobile ip overview
Mobile ip overviewMobile ip overview
Mobile ip overviewpriya Nithya
 
Features of mobile ip
Features of mobile ipFeatures of mobile ip
Features of mobile ippriya Nithya
 
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#priya Nithya
 
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 priya Nithya
 
Creating simple component
Creating simple componentCreating simple component
Creating simple componentpriya Nithya
 

Mais 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

How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
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...pradhanghanshyam7136
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
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Ă...Nguyen Thanh Tu Collection
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
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.pptxDr. Ravikiran H M Gowda
 
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 ClassroomPooky Knightsmith
 
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.pptxheathfieldcps1
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
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)Jisc
 
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Ữ Â...Nguyen Thanh Tu Collection
 
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.pdfPoh-Sun Goh
 
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.pptxMaritesTamaniVerdade
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
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.pptxDenish Jangid
 

Último (20)

How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
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...
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).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
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
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
 
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
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
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)
 
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Ữ Â...
 
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
 
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
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.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
 
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
 

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>