SlideShare a Scribd company logo
Web Application Using c# - Nithiyapriya Pasavaraj Page 1
Web Application Using C# Lab – Creating a Web
Configuration File
Web Application Using c# - Nithiyapriya Pasavaraj Page 2
Web.config
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<compilation debug="false" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
</system.web>
<appSettings>
<add key="csFee" value="20000"/>
<add key="CS" value="COMPUTER SCIENCE"/>
<add key="bcaFee" value="25000"/>
<add key="BCA" value="BCA"/>
</appSettings>
</configuration>
Course.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.Configuration;
public partial class course : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
{
if (DropDownList1.SelectedItem.Value == "COMPUTER SCIENCE")
{
Label1.Text = ConfigurationSettings.AppSettings["CS"];
Label2.Text = ConfigurationSettings.AppSettings["csFee"];
}
if (DropDownList1.SelectedItem.Value == "BCA")
{
Label1.Text = ConfigurationSettings.AppSettings["BCA"];
Label2.Text = ConfigurationSettings.AppSettings["bcaFee"];
}
Label1.Visible = true;
Label2.Visible = true;
}
}

More Related Content

What's hot (18)

PPTX
Introduction to web application – restaurant analogy
Anil Kumar Krishnashetty
 
PPT
Heavy Web Optimization: Frontend
Võ Duy Tuấn
 
PDF
HTML & CSS - Le Wagon Bootcamp
Paal Ringstad
 
PPTX
Seo
Anuj Verma
 
PDF
HTML & CSS - Le Wagon Bootcamp
Paal Ringstad
 
PPT
Tour of sh404SEF - SEO and security for Joomla
vdrover
 
KEY
a-blog cms 勉強会 NAGOYA 20110718
Ayumu Sato
 
PPTX
Building High-Performance applications with .NET 5 and Vue JS 3
Alexandre Malavasi
 
PDF
ASP.Net MVC ile Web Uygulamaları - 4(Model)
İbrahim ATAY
 
PDF
Battling Google PageSpeed Insights
Jason Yingling
 
PDF
How To Install Magento 2 (updated for the latest version)
Magestore
 
PPTX
Backbone.js
898RakeshWaghmare
 
PDF
Boost Magento perfomance with Queues
Manuele Menozzi
 
PDF
Jquery Cheatsheet
Daniel Downs
 
PDF
Building WordPress Client Side Applications with WP and WP-API - #wcmia
Roy Sivan
 
PDF
Streamlining Your Applications with Web Frameworks
guestf7bc30
 
PPTX
Progressive web app testing
Kalhan Liyanage
 
PDF
How to build Client Side Applications with WordPress and WP-API | #wcmia
Roy Sivan
 
Introduction to web application – restaurant analogy
Anil Kumar Krishnashetty
 
Heavy Web Optimization: Frontend
Võ Duy Tuấn
 
HTML & CSS - Le Wagon Bootcamp
Paal Ringstad
 
HTML & CSS - Le Wagon Bootcamp
Paal Ringstad
 
Tour of sh404SEF - SEO and security for Joomla
vdrover
 
a-blog cms 勉強会 NAGOYA 20110718
Ayumu Sato
 
Building High-Performance applications with .NET 5 and Vue JS 3
Alexandre Malavasi
 
ASP.Net MVC ile Web Uygulamaları - 4(Model)
İbrahim ATAY
 
Battling Google PageSpeed Insights
Jason Yingling
 
How To Install Magento 2 (updated for the latest version)
Magestore
 
Backbone.js
898RakeshWaghmare
 
Boost Magento perfomance with Queues
Manuele Menozzi
 
Jquery Cheatsheet
Daniel Downs
 
Building WordPress Client Side Applications with WP and WP-API - #wcmia
Roy Sivan
 
Streamlining Your Applications with Web Frameworks
guestf7bc30
 
Progressive web app testing
Kalhan Liyanage
 
How to build Client Side Applications with WordPress and WP-API | #wcmia
Roy Sivan
 

Similar to Web application using c# Lab - Web Configuration file (20)

PDF
Asp.net
Rizwan Ahmed
 
PPT
2310 b 15
Krazy Koder
 
PPT
2310 b 15
Krazy Koder
 
PPS
01 asp.net session01
Mani Chaubey
 
PDF
ASP.NET 2010, WebServices Full Example for BCA Students
Jainul Musani
 
PDF
asp.net course in pune
CNC WEB WORLD
 
PPS
06 asp.net session08
Niit Care
 
PDF
Asp.net Web Development.pdf
SEO expate Bangladesh Ltd
 
PPTX
Asp.net orientation
Yogendra Tamang
 
PPS
06 asp.net session08
Mani Chaubey
 
PPS
03 asp.net session04
Mani Chaubey
 
PPTX
Asp.net Programming Training (Web design, Web development)
Moutasm Tamimi
 
PDF
ASP.NET Overview - Alvin Lau
Spiffy
 
PPSX
01 asp.net session01
Vivek Singh Chandel
 
PPT
ASP.NET 4.0 Demo
Abhishek Sur
 
PPT
Introduction to ASP related to basics of asp
ssuserbf6ebe
 
PPSX
ASP.Net Presentation Part3
Neeraj Mathur
 
PPS
14 asp.net session20
Niit Care
 
PPT
The complete ASP.NET (IIS) Tutorial with code example in power point slide show
Subhas Malik
 
PPSX
13 asp.net session19
Vivek Singh Chandel
 
Asp.net
Rizwan Ahmed
 
2310 b 15
Krazy Koder
 
2310 b 15
Krazy Koder
 
01 asp.net session01
Mani Chaubey
 
ASP.NET 2010, WebServices Full Example for BCA Students
Jainul Musani
 
asp.net course in pune
CNC WEB WORLD
 
06 asp.net session08
Niit Care
 
Asp.net Web Development.pdf
SEO expate Bangladesh Ltd
 
Asp.net orientation
Yogendra Tamang
 
06 asp.net session08
Mani Chaubey
 
03 asp.net session04
Mani Chaubey
 
Asp.net Programming Training (Web design, Web development)
Moutasm Tamimi
 
ASP.NET Overview - Alvin Lau
Spiffy
 
01 asp.net session01
Vivek Singh Chandel
 
ASP.NET 4.0 Demo
Abhishek Sur
 
Introduction to ASP related to basics of asp
ssuserbf6ebe
 
ASP.Net Presentation Part3
Neeraj Mathur
 
14 asp.net session20
Niit Care
 
The complete ASP.NET (IIS) Tutorial with code example in power point slide show
Subhas Malik
 
13 asp.net session19
Vivek Singh Chandel
 
Ad

More from priya Nithya (19)

PPTX
Android Architecture.pptx
priya Nithya
 
PDF
Html server control - ASP. NET with c#
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
HTTP REQUEST RESPONSE OBJECT - WEB APPLICATION USING C# LAB
priya Nithya
 
DOCX
HTML SERVER CONTROL - ASP.NET WITH C#
priya Nithya
 
DOC
Android LAb - Creating an android app with Radio button
priya Nithya
 
PPTX
ASP.NET - Life cycle of asp
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
 
Html server control - ASP. NET with c#
priya Nithya
 
Modes of transfer - Computer Organization & Architecture - Nithiyapriya Pasav...
priya Nithya
 
Asynchronous data transfer
priya Nithya
 
Asp.net state management
priya Nithya
 
HTTP REQUEST RESPONSE OBJECT - WEB APPLICATION USING C# LAB
priya Nithya
 
HTML SERVER CONTROL - ASP.NET WITH C#
priya Nithya
 
Android LAb - Creating an android app with Radio button
priya Nithya
 
ASP.NET - Life cycle of asp
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
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
PPT
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
PDF
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
PDF
People & Earth's Ecosystem -Lesson 2: People & Population
marvinnbustamante1
 
PDF
Dimensions of Societal Planning in Commonism
StefanMz
 
PDF
The Different Types of Non-Experimental Research
Thelma Villaflores
 
PPTX
How to Set Maximum Difference Odoo 18 POS
Celine George
 
PPTX
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
PDF
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
PDF
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
PPSX
HEALTH ASSESSMENT (Community Health Nursing) - GNM 1st Year
Priyanshu Anand
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PDF
community health nursing question paper 2.pdf
Prince kumar
 
PPTX
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
PPTX
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
PDF
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
Talk on Critical Theory, Part II, Philosophy of Social Sciences
Soraj Hongladarom
 
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
People & Earth's Ecosystem -Lesson 2: People & Population
marvinnbustamante1
 
Dimensions of Societal Planning in Commonism
StefanMz
 
The Different Types of Non-Experimental Research
Thelma Villaflores
 
How to Set Maximum Difference Odoo 18 POS
Celine George
 
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 - GLOBAL SUCCESS - CẢ NĂM - NĂM 2024 (VOCABULARY, ...
Nguyen Thanh Tu Collection
 
HEALTH ASSESSMENT (Community Health Nursing) - GNM 1st Year
Priyanshu Anand
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
community health nursing question paper 2.pdf
Prince kumar
 
A PPT on Alfred Lord Tennyson's Ulysses.
Beena E S
 
MENINGITIS: NURSING MANAGEMENT, BACTERIAL MENINGITIS, VIRAL MENINGITIS.pptx
PRADEEP ABOTHU
 
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 

Web application using c# Lab - Web Configuration file

  • 1. Web Application Using c# - Nithiyapriya Pasavaraj Page 1 Web Application Using C# Lab – Creating a Web Configuration File
  • 2. Web Application Using c# - Nithiyapriya Pasavaraj Page 2 Web.config <?xml version="1.0"?> <!-- For more information on how to configure your ASP.NET application, please visit http://go.microsoft.com/fwlink/?LinkId=169433 --> <configuration> <system.web> <compilation debug="false" targetFramework="4.5" /> <httpRuntime targetFramework="4.5" /> </system.web> <appSettings> <add key="csFee" value="20000"/> <add key="CS" value="COMPUTER SCIENCE"/> <add key="bcaFee" value="25000"/> <add key="BCA" value="BCA"/> </appSettings> </configuration> Course.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.Configuration; public partial class course : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { if (DropDownList1.SelectedItem.Value == "COMPUTER SCIENCE") { Label1.Text = ConfigurationSettings.AppSettings["CS"]; Label2.Text = ConfigurationSettings.AppSettings["csFee"]; } if (DropDownList1.SelectedItem.Value == "BCA") { Label1.Text = ConfigurationSettings.AppSettings["BCA"]; Label2.Text = ConfigurationSettings.AppSettings["bcaFee"]; } Label1.Visible = true; Label2.Visible = true; } }