0% found this document useful (0 votes)
2 views

ASP_Topics

The document outlines key theoretical topics and practical exercises related to ASP.NET using C#. It covers foundational concepts such as the .NET Framework, various controls, data handling, and authentication methods, along with a practical list of tasks to implement these concepts. The practical tasks include creating forms, handling user input, database interactions, and designing web pages with validation and navigation features.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

ASP_Topics

The document outlines key theoretical topics and practical exercises related to ASP.NET using C#. It covers foundational concepts such as the .NET Framework, various controls, data handling, and authentication methods, along with a practical list of tasks to implement these concepts. The practical tasks include creating forms, handling user input, database interactions, and designing web pages with validation and navigation features.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

ASP.

Net (C#) Theory Topics

Introduction to .Net Framework


Introduction to .NET, ASP.NET, IIS, FCL and CLR, Features of ASP.NET
Working with ASP.NET
Coding Models (Inline and Code-behind), Built-in directory structure(App_Data, App_code,
Bin), Application Configuration Files (Global.asax, Web.config)
Various Controls
Webserver Controls: Label, Textbox (AutoComplete, Columns, Maxlength, TextMode,
Readonly), Types of Button controls (Button, ImageButton, LinkButton), CheckBox,
Radiobutton, CheckBoxList, RadiobuttonList, and Dropdownlist
Information Passing Methods
Querystring, Cookies, Session and Application Variables.
Master Page:
Introduction to Master Page, Features of Master Page. Navigation controls : Treeview,
Menu, SiteMapPath,
Validation Controls :
Required Field Validator , Range validator , Regular Expression validator , Compare
validator, Custom validator, Validation summary.
Login Controls :
Introduction to Login control, LoginView, LoginName, LoginStatus
ADO.NET : Working with database & Data Controls:
Creating own database & tables, Connection (Properties (Connectionstring, state), Method
(Open and Close), Command (Methods (ExecuteNonQuery, ExecuteReader, ExecuteScalar),
DataAdapter(Methods (Fill)) and DataReader.
Introduction to Authorization and Authentication:
About Authorization and Authentication.
Data Controls:
Introduction of Gridview, DataList, Formview, DetailsView & Repeater.

ASP.Net (C#) Practical List

1. Create a form which takes user name in TextBox control. On the click event of the button,
name of the user and current date & time will be displayed on the title bar of the web page.
(Using Literal control). Also show the use of CSS property to change the text color of a
button control using internal and external CSS.
2. Take two linkbuttons showing „New Member‟ and „Existing Member‟. When user clicks on
the „New Member‟ link button panel1 becomes visible, having user name, password, confirm
password and email, city as inputs. When user clicks on „Existing Member‟ link button then
only panel2 becomes visible having user name and password as inputs. Set proper property of
the textbox to mask the password. When user inputs in Existing Member matches with user
name=”Root” and password=”abcd123” then print “Gujarat University” for 5 times, each in a
new row with increasing font size by 1 each time. (Using code render block). Else display
“Invalid user / password”.
3. Design a class file with two methods as sum and subtraction which takes two arguments.
Design a web page to take two integer numbers from the user. When user clicks on sum or
subtraction button, display the result of two entered values in the label control placed on the
web page. (Use of App_code & Bin directory).
4. Create a RadioButtonList that displays the names of some colors in two columns. Add a
button to the web form which when clicked changes the background color of the form to the
color selected from the list. Also show the use of external CSS file.
5. Create a web page having checkboxlist control shows different products. Web page should
have a button and a label. On the click event of the button shows the message “Thank You
for placing the order of following items” and then list of all products selected by the user
from the checkboxlist server control. Each selected product should be displayed in the new
line.
6. Accept Item No, Item Name, Item Price, Item Quantity. Store information in cookie. Display
stored information in next page with Total Price = Price * Quantity.
7. Take single image having 3 rectangle shapes horizontally having text “Home”, “Product” and
“Services” written in the boxes. When user clicks on the first rectangle Home.aspx page
should be opened. Similarly, when user clicks on the Product rectangle the product.aspx and
Service rectangle then service.aspx should be opened. Use ImageMap control.
8. Using AdRotator control, display 3 images of car and when user clicks on it, open website of
it. Load the advertisement details from the XML.
9. Write code to upload only image files (.bmp, .jpg, .gif) and less than 1 kb in folder “Image-
Folder”. Also display uploaded image files on the same web page using datalist control.
10. Create a form to display total number users visited a website.

11. Design a master page with header, sidebar, footer and content section. In the sidebar display
menu such as: Home, Category-(Men, Women), About Us, Contact Us, Register and Login.
Display organization name in the header and copyright warning in the footer. Create a menu
using the sitemap and provide links to various pages.
12. Design a web page to take eno, empid, ename, username, password, confirm password, Date
of birth, gender, city, email, mobile number, Experience years. Do validations as below:
 All fields are compulsory
 EmpID as “EMP0001” i.e. first 3 characters “EMP” with 4 digits
 Name should contain only alphabets.
 Minimum length of password should be 8
 Birth date should be between 1985 and 2000.
 Experience years between 2 to 10.
 Email should be in valid format.
 Mobile number should of exactly 10 digits.
 City compulsory “Ahmedabad”
 Give demo of validation summary
13. Extends the program 2, if all data is valid then store it into a table employee of database
organization and display all records from an employee table with proper formatting using a
repeater control. Also allow to delete or update record.(Note: eno field of employee table is
autoincrement)
14. Create a database with two tables as “Category”, which contain category id and category
name and “Products” which contain products details such as prod_id, cat_id, prod_name,
price, descpription, prodimgurl) for each product. Display name of all the categories in a
DropDownList and according to user‟s choice, particular categories product‟s details record
should display in a Griview control. Allow to update and delete records through the gridview.
15. Using database of program 4, design a web page which shows hyperlink for each unique
category. When user click on specific hyperlink pass that category to another page called
ProductList.aspx. This page lists all products which belong to the category selected by the
user on the previous page. The page shows small image of the product and price only. When
user clicks on small product image then user will be redirected to ProductDetails.aspx page
which shows all the details of the product with larger image.
16. Develop a web application to reserve online in a hotel. The user should enter/select date of
arrival, number of days, room type, number of persons etc. He would be able to confirm
booking and allowed to pay advance on confirmation. (Make table RoomType :
RoomTypeid, RoomType, Price)
17. Display name of State in dropdown list. Allow the user to select the state and display the
name of cities using datareader. Create Table State (State_id, State_Name) and City (City_id,
City_name, State_id)
18. Design a web site which allows user to login. As user logins, the home page display
Welcome message based on the type of user.
For example, for anonymous user show “Welcome Visitor”, for User show “Welcome
<UserName>” and for any user belongs to admin role, show “Welcome Administrator”.
19. Create four tables as given:
Customer (CustomerCode, Name, Address)
Product (ProductCode, ProductName, Price, Qty)
SalesMaster (InvoiceNumber, CustomerCode, DateofInvoice)
SalesDetails (InvoiceNumber, ProductCode, Qty, UnitPrice)
Design a webpage to generate Invoice details in which Customer name, Product name, and
Line total (Unit price * Quantity) is shown using GridView.
Create a form(s) to show the use of different login controls.

You might also like