├── .gitattributes ├── Lab Manual 1.2 JavaScript,CSS.docx ├── Lab Manual 1.1 Intro to ASP.net,HTML.docx ├── Solution ├── Q2 │ ├── StyleSheet1.css │ ├── task2.js │ └── Task2.aspx ├── Task1(a).aspx └── Task1(b).aspx └── README.md /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /Lab Manual 1.2 JavaScript,CSS.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fazeelkhalid/Creating-basic-Page-on-ASP.Net-frame-work-with-CSS/HEAD/Lab Manual 1.2 JavaScript,CSS.docx -------------------------------------------------------------------------------- /Lab Manual 1.1 Intro to ASP.net,HTML.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fazeelkhalid/Creating-basic-Page-on-ASP.Net-frame-work-with-CSS/HEAD/Lab Manual 1.1 Intro to ASP.net,HTML.docx -------------------------------------------------------------------------------- /Solution/Q2/StyleSheet1.css: -------------------------------------------------------------------------------- 1 | h1 { 2 | color: blue; 3 | font-size: 200% 4 | } 5 | .global { 6 | margin-left: initial; 7 | color: palevioletred; 8 | font-size: 110%; 9 | } 10 | .space { 11 | width: 30px; 12 | display: inline-block; 13 | } 14 | .Button { 15 | display: block; 16 | width: 330px; 17 | border: none; 18 | background-color: #333; 19 | color: white; 20 | padding: 10px 8px; 21 | font-size: 16px; 22 | cursor: pointer; 23 | text-align: center; 24 | margin-right: auto; 25 | font-family: cursive; 26 | border-radius: 5px; 27 | text-decoration: none; 28 | } 29 | .ResetButton{ 30 | 31 | display: block; 32 | width: 150px; 33 | border: none; 34 | background-color: #333; 35 | color: white; 36 | padding: 10px 8px; 37 | font-size: 16px; 38 | cursor: pointer; 39 | text-align: center; 40 | margin-right: auto; 41 | font-family: cursive; 42 | border-radius: 5px; 43 | text-decoration: none; 44 | } 45 | a:hover { 46 | background-color: oldlace; 47 | color: #B0B8B4FF; 48 | } 49 | .textField { 50 | border-radius: 8px; 51 | background-color: #CCCCCC; 52 | border-color: #333333; 53 | border-width: 4px; 54 | border-radius ="8px" 55 | } 56 | #DropDownList1 { 57 | width: 90px; 58 | border: none; 59 | background-color: #333; 60 | color: white; 61 | padding: 8px 5px; 62 | font-size: 10px; 63 | text-align: center; 64 | font-family: cursive; 65 | text-transform: uppercase; 66 | } 67 | 68 | #TextBox1 { 69 | border-radius: 8px; 70 | } -------------------------------------------------------------------------------- /Solution/Q2/task2.js: -------------------------------------------------------------------------------- 1 | var countrySelect = 0; 2 | 3 | function selectedCountry() { 4 | if (countrySelect == 0) { 5 | document.getElementById("TextBox5").value = "Pakistan"; 6 | } 7 | else if (countrySelect == 1) { 8 | document.getElementById("TextBox5").value = "USA"; 9 | } 10 | else { 11 | document.getElementById("TextBox5").value = "UAE"; 12 | } 13 | if (document.getElementById("DropDownList1").value == 0) { 14 | countrySelect = parseInt(0); 15 | } 16 | 17 | else if (document.getElementById("DropDownList1").value == 1) { 18 | countrySelect = parseInt(1); 19 | } 20 | 21 | else { 22 | countrySelect = parseInt(2); 23 | } 24 | } 25 | 26 | 27 | function conversitionInOtherCurrency() { 28 | if (countrySelect == 0) { 29 | var out = parseInt(document.getElementById("TextBox1").value); 30 | document.getElementById("TextBox2").value = out 31 | } 32 | else if (countrySelect == 1) { 33 | var out = parseFloat((document.getElementById("TextBox1").value) / 156.05); 34 | document.getElementById("TextBox2").value = out 35 | } 36 | else { 37 | var out = parseFloat((document.getElementById("TextBox1").value) / 42.49); 38 | document.getElementById("TextBox2").value = out 39 | } 40 | } 41 | 42 | function converstionIntoRupees() { 43 | if (countrySelect == 0) { 44 | var out = parseInt(document.getElementById("TextBox3").value); 45 | document.getElementById("TextBox4").value = out 46 | } 47 | else if (countrySelect == 1) { 48 | var out = parseFloat((document.getElementById("TextBox3").value) * 156.05); 49 | document.getElementById("TextBox4").value = out 50 | } 51 | else { 52 | var out = parseFloat((document.getElementById("TextBox3").value) * 42.49); 53 | document.getElementById("TextBox4").value = out 54 | } 55 | } 56 | 57 | function resetFields() { 58 | 59 | document.getElementById("TextBox1").value = ""; 60 | document.getElementById("TextBox2").value = ""; 61 | document.getElementById("TextBox3").value = ""; 62 | document.getElementById("TextBox4").value = ""; 63 | document.getElementById("TextBox5").value = ""; 64 | } -------------------------------------------------------------------------------- /Solution/Q2/Task2.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Lab_1.WebForm1" %> 2 | 3 | 4 | 5 | 6 |
7 | 8 | 9 | 10 |