web viewto print fibonacci series upto 100. using . console program. 10-11. 5. to check given no is...

58
Swami Ramanand Teerth Marathwada University, Sub – Centre, Latur School of Technology CERTIFICATE This is to certify that this practical report / assignments for the subject .Net Programming and paper code CS4-2 submitted for the fulfilment of the partial requirement of M.Sc. Computer Science Semester - IV University examination of SRTMU, Nanded is a record of study / work carried out by Mr. Biradar Balvant Venkatrao for the academic year 2014-15.

Upload: dodang

Post on 06-Mar-2018

216 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

Swami Ramanand Teerth Marathwada University,

Sub – Centre, Latur

School of Technology

CERTIFICATE

This is to certify that this practical report / assignments for the subject .Net

Programming and paper code CS4-2 submitted for the fulfilment of the partial

requirement of M.Sc. Computer Science Semester - IV University examination of

SRTMU, Nanded is a record of study / work carried out by Mr. Biradar Balvant

Venkatrao for the academic year 2014-15.

Subject In charge Head of the Department School of Technology School of Technology

Page 2: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

INDEXSR.N

O PRACTICALS PAGE NO. REMARKS SIGN

1 to perform basic arithmetic operations using Console program

3-4

2 to Calculate Grade using Console Program 5-7

3 to Check Given Number is a Prime number or not using Console Program

8-9

4 to print fibonacci series upto 100 using Console Program

10-11

5 to check given no is palindrome or not using Console Program

12-13

6 to find factorial using recursive function using Console Program

14-15

7 to perform array operations using Windows form

16-19

8 to Display message using messagebox,label,button control using windows form

20-21

9 to create registration form using windows forms 22-23

10 to demonstrate use of methods and properties of combo box using windows forms

24-25

11 to design MDI Application having 2 menus File and Format with options

26-27

12 to design application to change fore and back color of textbox

28-29

13 to show the use of radio button and check box using windows forms

30-32

14 to design Simple Website blog 33-37

15 to design Login view using asp.net 38-39

Page 3: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

Swami Ramanand Teerth Marathwada University,Sub – Centre, LaturSchool of Technology

-----------------------------------------------------------------------------------------------------------------------------------

Subject In chargeSchool of Technology

Page | 3

Assignment no: ___01____

Aim: The Console program to Perform all Basic Arithmetic Operations / to design Arithmatic

Calculator

Page 4: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

/* * C# Program to Perform all Basic Arithmetic Operations / Arithmatic Calculator */using System;using System.Collections.Generic;using System.Text;namespace Program{ class Program { static void Main(string[] args) { int Num1, Num2, result; char option; Console.Write("Enter the First Number : "); Num1 = Convert.ToInt32(Console.ReadLine()); Console.Write("Enter the Second Number : "); Num2 = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Main Menu"); Console.WriteLine("1. Addition"); Console.WriteLine("2. Subtraction"); Console.WriteLine("3. Multiplication"); Console.WriteLine("4. Division"); Console.Write("Enter the Operation you want to perform : "); option = Convert.ToChar(Console.ReadLine()); switch (option) { case '1': result = Num1 + Num2; Console.WriteLine("The result of Addition is : {0}", result); break; case '2': result = Num1 - Num2; Console.WriteLine("The result of Subtraction is : {0}", result); break; case '3': result = Num1 * Num2; Console.WriteLine("The result of Multiplication is : {0}", result); break; case '4': result = Num1 / Num2; Console.WriteLine("The result of Division is : {0}", result); break; default: Console.WriteLine("Invalid Option"); break; } Console.ReadLine(); }

}}

OUTPUT:

Page | 4

Page 5: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

Swami Ramanand Teerth Marathwada University,Sub – Centre, LaturSchool of Technology

-----------------------------------------------------------------------------------------------------------------------------------

Subject In chargeSchool of Technology

Page | 5

Assignment no: ___02____

Aim: Console Program to Calculate Grade depending on inpuut marks.

Page 6: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

/* * Console Program to Calculate Grade depending on marks */using System;using System.Collections.Generic;using System.Text;namespace Program{ class Program { static void Main(string[] args) { int Num1, Num2,Num3,Num4,Num5,Num6,total; float percentage; char option; Console.WriteLine("Enter the Marks of all subjects: "); Console.Write("Enter the Subject1 Marks : "); Num1 = Convert.ToInt32(Console.ReadLine()); Console.Write("Enter the Subject2 Marks : "); Num2 = Convert.ToInt32(Console.ReadLine()); Console.Write("Enter the Subject3 Marks : "); Num3 = Convert.ToInt32(Console.ReadLine()); Console.Write("Enter the Subject4 Marks : "); Num4 = Convert.ToInt32(Console.ReadLine()); Console.Write("Enter the Subject5 Marks : "); Num5 = Convert.ToInt32(Console.ReadLine()); Console.Write("Enter the Subject6 Marks : "); Num6 = Convert.ToInt32(Console.ReadLine()); total = Num1 + Num2 + Num3 + Num4 + Num5 + Num6; percentage = total / 6; if (percentage > 75) { option = '1'; } else if (percentage > 60) { option = '2'; } else if (percentage > 50) { option = '3'; } else if (percentage >= 35) { option = '4'; } else { option = '5'; } Console.WriteLine("The RESULT of Student with GRADE :"); Console.WriteLine("Subject1 Marks : {0}", Num1); Console.WriteLine("Subject2 Marks : {0}", Num2); Console.WriteLine("Subject3 Marks : {0}", Num3); Console.WriteLine("Subject4 Marks : {0}", Num4); Console.WriteLine("Subject5 Marks : {0}", Num5); Console.WriteLine("Subject6 Marks : {0}", Num6); Console.WriteLine("TOTAL Marks : {0}", total); Console.WriteLine("PERCENTAGE : {0}", percentage); switch (option) { case '1': Console.WriteLine("Grade: First Class with Distinction"); break; case '2':

Page | 6

Page 7: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

Console.WriteLine("Grade: First Class"); break; case '3': Console.WriteLine("Grade: Second Class"); break; case '4': Console.WriteLine("Grade: Third Class"); break; case '5': Console.WriteLine("F A I L"); break; default: Console.WriteLine("Invalid GRADE"); break; } Console.ReadLine(); }

}}

OUTPUT :

Page | 7

Page 8: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

Swami Ramanand Teerth Marathwada University,Sub – Centre, LaturSchool of Technology

-----------------------------------------------------------------------------------------------------------------------------------

Subject In chargeSchool of Technology

Page | 8

Assignment no: ___03____

Aim: To Check Whether the Given Number is a Prime number or not using Console Program.

Page 9: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

/* * C# Console Program to Check Whether the Given Number is a Prime number or not */using System;namespace prime{ class prime { public static void Main() { Console.Write("Enter a Number : "); int num; num = Convert.ToInt32(Console.ReadLine()); int k; k = 0; for (int i = 1; i <= num; i++) { if (num % i == 0) { k++; } } if (k == 2) { Console.WriteLine("Entered Number is a Prime Number"); } else { Console.WriteLine("Not a Prime Number"); } Console.ReadLine(); } }}

OUTPUT :

Page | 9

Page 10: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

Swami Ramanand Teerth Marathwada University,Sub – Centre, LaturSchool of Technology

-----------------------------------------------------------------------------------------------------------------------------------

Subject In chargeSchool of Technology

Page | 10

Assignment no: ___04____

Aim: To print fibonacci series upto 100 using Console Program.

Page 11: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

/* * C# Console Program to print fibonacci series upto 100 */using System;

namespace myclass{ class myclass { static void Main() { int fn = 0; int sn = 1; int tn = 1;

Console.WriteLine(" " + fn); Console.WriteLine(" " + sn); while (true) {

tn = fn + sn; if (tn >= 100) { break; } Console.WriteLine(" " +tn); fn = sn; sn = tn;

} Console.Read();

} }}

OUTPUT :

Page | 11

Page 12: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

Swami Ramanand Teerth Marathwada University,Sub – Centre, LaturSchool of Technology

-----------------------------------------------------------------------------------------------------------------------------------

Subject In chargeSchool of Technology

Page | 12

Assignment no: ___05____

Aim: To check given no is palindrome or not using Console Program.

Page 13: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

/* * C# Console Program to check given no is palindrome or not */using System;using System.Collections.Generic;using System.Linq;using System.Text;

namespace PalindromeNumberOrNot{ class PalindromeNumberOrNot { public static void Main() { Console.WriteLine("***** Palindrome Number Check Example ****"); Console.WriteLine("Enter Number to Want to check"); int numberToCheck = int.Parse(Console.ReadLine()); int lenthOfNumber = numberToCheck.ToString().Length; double reminder = 0; double sum = 0; int tempNo = numberToCheck; while (tempNo > 0) { reminder = tempNo % 10; sum = sum * 10 + reminder; tempNo = tempNo / 10; } if (sum == numberToCheck) { Console.WriteLine("The given Number {0} is a Palindrome", numberToCheck); } else { Console.WriteLine("The given Number {0} is NOT a Palindrome", numberToCheck); } Console.ReadLine(); } }}

OUTPUT :

Page | 13

Page 14: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

Swami Ramanand Teerth Marathwada University,Sub – Centre, LaturSchool of Technology

-----------------------------------------------------------------------------------------------------------------------------------

Subject In chargeSchool of Technology

Page | 14

Assignment no: ___06____

Aim: To find factorial using recursive function using Console Program.

Page 15: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

/* * C# Console Program to find factorial using recursive function */using System;using System.Collections.Generic;using System.Text;

namespace Program{ class Program {

static int Fact(int n) { if (n <= 1) return 1; return n * Fact(n - 1); }

static int Factorial(int n) { if (n <= 1) return 1; int result = 1; for (int i = 2; i <= n; i++) { result = result * i; } return result; }

static void Main(string[] args) { Console.Write("Enter a Number to find factorial: "); int n = Convert.ToInt32(Console.ReadLine()); int r = Fact(n); Console.WriteLine(n.ToString() + "! = " + r.ToString()); Console.ReadLine(); } }}

OUTPUT :

Page | 15

Page 16: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

Swami Ramanand Teerth Marathwada University,Sub – Centre, LaturSchool of Technology

-----------------------------------------------------------------------------------------------------------------------------------

Subject In chargeSchool of Technology

Page | 16

Assignment no: ___07____

Aim: To perform array operations like add, edit, delete etc using List Box in windows

application.

Page 17: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

/* * Program to perform array operations */Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load Try ' Adding items to Listbox1 ListBox1.Items.Add("Amit") ListBox1.Items.Add("Sumit") ListBox1.Items.Add("Ramit") ListBox1.Items.Add("Kapil") ListBox1.Items.Add("Sahil") Catch ex As Exception End Try End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click

Me.Close() End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Try If ListBox1.Text = "" Then MsgBox("ListBox1: Please select an item first..") Else

Dim a As Integer ' variable 'a' will contain the index of the selected item a = ListBox1.Items.IndexOf(ListBox1.Text) ' code to add item to listbox2 ListBox2.Items.Add(ListBox1.Items.Item(a)) ' code to remove item from listbox1 ListBox1.Items.Remove(ListBox1.Items.Item(a)) End If Catch ex As Exception End Try End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

Dim a As Integer Try If ListBox2.Text = "" Then MsgBox("ListBox2: Please select an item first..") Else a = ListBox2.Items.IndexOf(ListBox2.Text) 'code to add item to listbox1 ListBox1.Items.Add(ListBox2.Items.Item(a)) 'code to remove item from listbox2 ListBox2.Items.RemoveAt(a) End If Catch ex As Exception End Try End Sub

Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged

Dim a As Integer a = ListBox1.Items.IndexOf(ListBox1.Text) TextBox1.Text = ListBox1.Items(a) Button6.Enabled = True End Sub

Page | 17

Page 18: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click

Try If TextBox1.Text = "" Then MsgBox("Please enter the item in Text Box to add") TextBox1.Focus() Else ListBox1.Items.Add(TextBox1.Text) End If Catch ex As Exception End Try End Sub

Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click

Dim a As Integer Try If ListBox1.Text = "" Then MsgBox("ListBox2: Please select an item first..") Else a = ListBox1.Items.IndexOf(ListBox1.Text) 'code to delete item to listbox1 ListBox1.Items.RemoveAt(a) End If Catch ex As Exception End Try End Sub

Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click

Dim a As Integer Try If TextBox1.Text = "" Then MsgBox("Please select the item to edit") TextBox1.Focus() Else ListBox1.Items.Add(TextBox1.Text) a = ListBox1.Items.IndexOf(ListBox1.Text) ListBox1.Items.RemoveAt(a) End If Button6.Enabled = False Catch ex As Exception End Try End SubEnd Class

OUTPUT :

Page | 18

Page 19: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

Page | 19

Page 20: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

Swami Ramanand Teerth Marathwada University,Sub – Centre, LaturSchool of Technology

-----------------------------------------------------------------------------------------------------------------------------------

Subject In chargeSchool of Technology

Page | 20

Assignment no: ___08____

Aim: To Display message using messagebox,label,button control using windows forms.

Page 21: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

/* * Program to Display message using messagebox,label,button control */

Public Class Form1

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Label2.Text = TextBox1.Text MsgBox(TextBox1.Text) End SubEnd Class

OUTPUT :

Page | 21

Page 22: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

Swami Ramanand Teerth Marathwada University,Sub – Centre, LaturSchool of Technology

-----------------------------------------------------------------------------------------------------------------------------------

Subject In chargeSchool of Technology

Page | 22

Assignment no: ___09____

Aim: To create registration form using windows forms and controls.

Page 23: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

/* * Program to create registration form */

Public Class Form2

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.ClickIf TextBox1.Text = "" Or TextBox2.Text = "" Or TextBox3.Text = "" Or

TextBox4.Text = "" Then MsgBox("Please fill all details and try again") TextBox1.Focus() Label6.Text = "Please fill all details and try again" Else MsgBox("Record Saved Successfully...") Label6.Text = "Record Saved Successfully..." End If End SubEnd Class

OUTPUT :

Page | 23

Page 24: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

Swami Ramanand Teerth Marathwada University,Sub – Centre, LaturSchool of Technology

-----------------------------------------------------------------------------------------------------------------------------------

Subject In chargeSchool of Technology

Page | 24

Assignment no: ___10____

Aim: To demonstrate use of methods and properties of combo box using windows forms.

Page 25: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

/* * Program to demonstrate use of methods and properties of combo box */Public Class Form3

Private Sub ComboBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ComboBox1.SelectedIndexChanged

Dim a As Integer If ComboBox1.Text = "DA@20%" Then a = TextBox2.Text * 20 / 100 Label2.Text = "DA=" Label5.Text = a End If If ComboBox1.Text = "HRA@50%" Then a = TextBox2.Text * 50 / 100 Label2.Text = "HRA=" Label5.Text = a End If If ComboBox1.Text = "TA@15%" Then a = TextBox2.Text * 15 / 100 Label2.Text = "TA=" Label5.Text = a End If If ComboBox1.Text = "IT@20%" Then a = TextBox2.Text * 20 / 100 Label2.Text = "IT=" Label5.Text = a End If End Sub

Private Sub Form3_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

TextBox1.Focus() End SubEnd Class

OUTPUT :

Page | 25

Page 26: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

Swami Ramanand Teerth Marathwada University,Sub – Centre, LaturSchool of Technology

-----------------------------------------------------------------------------------------------------------------------------------

Subject In chargeSchool of Technology

Page | 26

Assignment no: ___11____

Aim: MDI Application having 2 menus File and Format with options.

Page 27: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

/* * MDI Application having 2 menus File and Format with options */

Page | 27

Page 28: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

Swami Ramanand Teerth Marathwada University,Sub – Centre, LaturSchool of Technology

-----------------------------------------------------------------------------------------------------------------------------------

Subject In chargeSchool of Technology

Page | 28

Assignment no: ___12____

Aim: Developing an Application to change fore and back color of textbox.

Page 29: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

/* * Application to change fore and back color of textbox */Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click TextBox1.ForeColor = Color.Red End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click TextBox1.ForeColor = Color.Green End Sub

Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click TextBox1.ForeColor = Color.Blue End Sub

Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click TextBox1.BackColor = Color.Red End Sub

Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click TextBox1.BackColor = Color.Green End Sub

Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click TextBox1.BackColor = Color.Blue End Sub

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load TextBox1.Text = "This applicatin allows you to change the fore and back color....This application is Created by Balvant Biradar" End SubEnd Class

OTUPUT:

Page | 29

Page 30: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

Swami Ramanand Teerth Marathwada University,Sub – Centre, LaturSchool of Technology

-----------------------------------------------------------------------------------------------------------------------------------

Subject In chargeSchool of Technology

Page | 30

Assignment no: ___13____

Aim: To show the use of radio button and check box using windows forms.

Page 31: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

/* * Application to show the use of radio button and check box */Public Class Form2

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Label3.Text = "" Label5.Text = "" If CheckBox1.Checked = True Then Label3.Text = Label3.Text + CheckBox1.Text + ", " End If If CheckBox2.Checked = True Then Label3.Text = Label3.Text + CheckBox2.Text + ", " End If If CheckBox3.Checked = True Then Label3.Text = Label3.Text + CheckBox3.Text + ", " End If If CheckBox4.Checked = True Then Label3.Text = Label3.Text + CheckBox4.Text + ", " End If If CheckBox5.Checked = True Then Label3.Text = Label3.Text + CheckBox5.Text + ", " End If If RadioButton1.Checked = True Then Label5.Text = RadioButton1.Text End If If RadioButton2.Checked = True Then Label5.Text = RadioButton2.Text End If If RadioButton3.Checked = True Then Label5.Text = RadioButton3.Text End If If RadioButton4.Checked = True Then Label5.Text = RadioButton4.Text End If End Sub

Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

Me.Close() End Sub

Private Sub Form2_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

RadioButton1.Checked = True End SubEnd Class

OUTPUT :

Page | 31

Page 32: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

Page | 32

Page 33: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

Swami Ramanand Teerth Marathwada University,Sub – Centre, LaturSchool of Technology

-----------------------------------------------------------------------------------------------------------------------------------

Subject In chargeSchool of Technology

Page | 33

Assignment no: ___14____

Aim: to design a website blog to update the events and stories with picture and text and

categorize it as per the need using ASP.NET web-site application.

Page 34: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Paint Blog Template - free CSS template</title><meta name="keywords" content="paint blog, free templates, website templates, CSS, HTML" /><meta name="description" content="Paint Blog - free blog website template provided by templatemo.com" /><link href="templatemo_style.css" rel="stylesheet" type="text/css" /><!-- Free CSS Template is designed by templatemo.com --><!--[if lt IE 7]><style type="text/css"> .date_section, .comment{ behavior: url(iepngfix.htc); }</style><![endif]--></head><body><div id="templatemo_top_panel">

<div id="templatemo_header_section"> <div id="search_box"> <form method="get" action="#"> <input type="text" name="searchfield" id="search_field" title="searchfield" /> <input type="submit" name="search" value="Search"

alt="Search"id="search_button"title="Search" /> </form> </div> </div> <!-- end of header --></div> <div id="templatemo_menu_panel"> <div id="templatemo_menu_section"> <ul> <li><a href="index.html" class="current">Home</a></li> <li><a href="subpage.html">Features</a></li> <li><a href="http://www.templatemo.com" target="_parent">Gallery</a></li> <li><a href="#">Forum</a></li> <li><a href="#">Company</a></li> <li><a href="#" class="lastmenu">Contact Us</a></li> </ul> </div></div> <!-- end of menu -->

<div id="templatemo_content_panel"><div id="templatemo_content">

<div id="templatemo_content_left"> <div class="templatemo_content_left_section"> <div class="left_section_title">Categories</div> <div class="left_section_content"> <ul> <li><a href="subpage.html">Friends</a></li> <li><a href="#">Emotions</a></li> <li><a href="#">Impressive Quotes</a></li> </ul> </div> </div> <div class="templatemo_content_left_section"> <div class="left_section_title">Archives</div> <div class="left_section_content"> <ul>

<li><a href="http://www.templatemo.com/page/1" target="_parent">January 2015</a></li>

<li><a href="#">December 2014</a></li> </ul> </div> </div> <div class="templatemo_content_left_section"> <div class="left_section_title">Popular Posts</div>

Page | 34

Page 35: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

<div class="left_section_content"> <ul> <li>Lorem Ipsum on <a href="#">Donec mollis aliquet</a></li> <li>Consectetuer on <a href="#">Suspendisse a nibh</a></li> <li>Sed on <a href="#">Pellentesque vitae magna</a></li> <li>Vitae Neque on <a href="#">Nunc blandit orci sit amet risus</a></li> <li>Donec Mollis on <a href="#">Maecenas adipiscing elementum</a></li> </ul> </div> </div> <div class="templatemo_content_left_section"> <div class="left_section_title">Gallery</div> <div class="left_section_content"> <ul class="gallery"> <li><a href="#"><img src="images/templatemo_thumb_01.jpg" alt="image name" /></a></li> <li><a href="#"><img src="images/templatemo_thumb_02.jpg" alt="image name" /></a></li> <li><a href="#"><img src="images/templatemo_thumb_03.jpg" alt="image name" /></a></li> <li><a href="http://www.templatemo.com" target="_blank"><img src="images/templatemo_thumb_04.jpg" alt="Free Template" /></a></li> <li><a href="http://www.flashmo.com" target="_blank"><img src="images/templatemo_thumb_05.jpg" alt="Flash Resources" /></a></li> <li><a href="http://www.webdesignmo.com" target="_blank"><img src="images/templatemo_thumb_06.jpg" alt="Web Design" /></a></li> </ul> <div class="cleaner">&nbsp;</div> <br /> <a href="#">View All</a> </div> </div> </div> <!-- end of content left --> <div id="templatemo_content_right"> <div class="templatemo_post_section"> <div class="date_section"> 19<span>Dec</span> </div> <div class="post_content"> <div class="post_title"> <h1>Our Nagpur Journey for Avishkaar </h1> <div class="post_info">

Posted by <a href="http://www.templatemo.com" target="_parent">BALVANT</a> | <a href="#">JOURNEY</a> | <a href="#">FRIENDS</a></div>

</div> <div class="post_body"> <img src="images/templatemo_image_01.jpg" alt="image" width="499" height="271" /> <p>We are the friends while travelling to nagpur </p> </div> </div> </div> <!-- end of 1 post --> <div class="cleaner_with_height">&nbsp;</div> <div class="templatemo_post_section"> <div class="date_section"> 14<span>OCT</span> </div> <div class="post_content"> <div class="post_title"> <h1>Impressive Quotes </h1> <div class="post_info"> Posted by <a href="http://www.templatemo.com" target="_parent">Balvant</a> | <a href="#">Photo Gallery</a> | <a href="#"><span class="comment">128 comments</span></a></div> </div> <div class="post_body">

Page | 35

Page 36: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

<p><img src="images/templatemo_image_02.jpg" alt="image" width="419" height="351" /></p> <p>You need power, only when you want to do something harmful, otherwise love is enough to get everything done - Charlie chaplin </p> </div> </div> </div> <!-- end of 1 post --> </div> <!-- end of content right -->

</div></div> <!-- end of content panel -->

<div id="templatemo_bottom_panel"> <div id="templatemo_bottom_section"> <div id="templatemo_bottom_section_left"> <div class="bottom_section_title">Latest Posts</div> <ul class="popular_post"> Journey to Nagpur<br />Author name - Oct 26, 2048 <span

class="comment">12</span><li></li> <li><a href="#">Suspendisse potent</a><br />Author name - Oct 19, 2048 <span `

class="comment">10</span></li> </ul> </div> <div id="templatemo_bottom_section_right"> <div class="bottom_section_title">Friends</div> <ul class="list_section"> <li><a href="#">Lorem ipsum</a></li> <li><a href="#">Duis mollis</a></li> <li><a href="#">Maecenas adipiscing</a></li> <li><a href="#">Nunc blandit orci</a></li> <li><a href="#">Cum sociis natoque</a></li> </ul> <p>Creative Designs.</p> <a href="http://validator.w3.org/check?uri=referer"></a><a href="http://jigsaw.w3.org/css-validator/check/referer"></a> </div> </div></div> <!-- end of bottom panel --><div id="templatemo_footer_panel"> <div id="templatemo_footer_section"> Copyright © 2048 SRTMUN, Sub Center Latur <a href="#"></a> | Created by balvant <a href="http://www.balvant.com" target="_parent"></a> </div></div><!-- Free CSS Template is designed by templatemo.com --><div align=center></div></body></html>

OUTPUT:

Page | 36

Page 37: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

Page | 37

Page 38: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

Swami Ramanand Teerth Marathwada University,Sub – Centre, LaturSchool of Technology

-----------------------------------------------------------------------------------------------------------------------------------

Subject In chargeSchool of Technology

Page | 38

Assignment no: ___15____

Aim: to design the login page accept and check the user name and password using ASP.NET

web-application.

Page 39: Web viewto print fibonacci series upto 100. using . Console Program. 10-11. 5. to check given no is palindrome or not. using . Console Program. 12-13. 6

<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"> <title>Untitled Page</title></head><body> <form id="form1" runat="server"> <div> <asp:Login ID="Login1" runat="server" BackColor="#EFF3FB" BorderColor="#B5C7DE" BorderPadding="4" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#333333" Height="156px" Width="281px"> <TextBoxStyle Font-Size="0.8em" /> <LoginButtonStyle BackColor="White" BorderColor="#507CD1" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" Font-Size="0.8em" ForeColor="#284E98" /> <InstructionTextStyle Font-Italic="True" ForeColor="Black" /> <TitleTextStyle BackColor="#507CD1" Font-Bold="True" Font-Size="0.9em" ForeColor="White" /> </asp:Login> </div> </form></body></html>

OUTPUT:

Page | 39