Dot Net Lab
Dot Net Lab
In-charge
OUTCOMES:
Write, compile and debug programs in C# language.
To learn the basics of object oriented programming.
To get knowledge of windows programming.
To get knowledge on server side programming.
To gain knowledge on web services and dynamic link libraries.
CO-PO MAPPING:
CO P P P P P P P P P P P P PS PS PS
/PO O O O O O O O O O O O O O1 O2 O3
1 2 3 4 5 6 7 8 9 10 11 12
CO1
1 1 1 1 2 1 1 1 2
CO2
2 2 1 1 2 1 1 2
CO3 2 2 2 2 2 1 2 2
CO4
2 2 1 1 3 1 1 2
CO5 2 2 2 2 2 1 2 1
LAB-2
1. Write a C# program for addition and multiplication of two matrices.
2. Write a C# program to display the digits of an integer in words.
3. Write a C# program to which reads a set of strings into the rows a two
dimensional array and then prints the string having more number of
vowels.
LAB-3
1. Write a C# programs to demonstrate the concepts of Structures and
Enumerations.
2. Write a C# programs to demonstrate the concepts of Constructors and
Inheritance.
3. Write a C# programs to demonstrate the concepts of Polymorphism.
LAB-4
1. Write a C# programs to demonstrate the concepts of Partial classes
and Extension methods.
2. Write a C# programs to demonstrate the concepts of Delegates.
LAB-5
1. Write a C# programs to demonstrate the concepts of Label, Text Box
and Button controls.
2. Write a C# programs to demonstrate the concepts of Combo Box and
List Box controls.
LAB-7
1. Create a ADO.NET application in C# to verify if the connection is
established with OLEDB and MS-ACCESS.
2. Create a ADO.NET applications in C# to demonstrate the Data Reader,
Data Set, Data Adapter and Data View Objects.
LAB-8
1. Develop the Static Web pages using HTML and some validations along
with Java Script.
2. Design an ASP.NET Webpage to demonstrate the Label, Button and
Textbox controls.
LAB-9
1. Design an ASP.NET Webpage to work with Cross page and Post back
Submissions.
2. Design an ASP.NET Webpage to work with Dropdown list and ListBox
controls.
LAB-10
1. Develop a Registration Form with all Validation Controls.
2. Create a Web Service for all Arithmetic operations.
REFERENCES:
1. Programming in C#, E. Balagurusamy, Tata McGraw-Hill, 2004.
2. Programming C#, J. Liberty, 2nd Edition., O’Reilly, 2002.
3. C# and the .NET Platform, Andrew Trolesen, 2nd Edition, Dreamtech
Press
4. Sams Teach Yourself the C# Language in 21 Days’, Bradley L Jones,
1st edition, 2001.
Properties:
1. Textbox2->passwordchar=*,maxlength=10
2. Textbob3->passwordchar=*
3. Textbox5->multiline=true
using System;
using System.Windows.Forms;
namespace WindowsFormsApplication21
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void textBox1_Validating(object sender, CancelEventArgs e)
{
TextBox tb = sender as TextBox;
if (tb.Name == "textBox1")
{
if (tb.Text.Trim().Length == 0)
{
MessageBox.Show("cannot leave empty");
e.Cancel = true;
return;
}
}
}
dr = cmd2.ExecuteReader();
label1.Text = dr.GetName(0);
label2.Text = dr.GetName(1);
}
<html>
<head>
<script language=”javascript”>
function f1( )
{
D=new Date( );
h=d.getHours( );
m=d.getMinutes ( );
s=d.getSeconds( );
F.t1.Value=h+”:”+m+”:”+s;
Window.SetTimeOut(“F1( )”,1000)
}
</script>
</head>
<body onload=”F1( )”>
<form name=”f”>
Time:<input type=”text” name=”t1”>
</form>
</body>
</html>
Uname:
Pwd :
Submit
ACCNO:
Display
NAME :
textBox2 properties:
visible=false
textBox3 properties:
visible=false
button1_click event logic
{
String[,]={{“60”,”uday”,”5000”},{“50”,”raja1”,”10000”}};
bool b=false;
if(s[I,0]==textBox1.Text)
{
textBox2.Text=s[i,1];
textBox3.Text=s[I,2];
textBox2.Visible=true;
textBox3.Visible=true;
b=true;
break;
}
if(b==false)
Response.Write(“accno not existing”);
}
ctrl+f5
1. Of the 25 marks for internal, 10 marks will be awarded for day-to-day work and 10 marks
to be awarded for the Record work and 5 marks to be awarded by conducting an internal
laboratory test.
2. Concerned Teachers have to do necessary corrections with explanations.
3. Concerned Lab teachers should enter marks in index page.
4. Internal exam will be conducted by two Staff members.
1. For Practical subjects there is a continuous evaluation during the semester for 25 Sessional
marks and 50 end examination marks.
2. The end examination shall be conducted by the teacher concerned (Internal Examiner) and
another External Examiner, recommended by Head of the Department with the approval of
principal.