Академический Документы
Профессиональный Документы
Культура Документы
Management
Stock
Head Management
Manager
Branch
Login Manager
Salesman
7.3.8 Code Inventory
Files in Asp.Net Application:
Files Purposes
.aspx Contain all web controls in flat or grid layout.
For designing the form.
.aspx.cs Code Behind File.
For C# code for event, functions, classes etc for .aspx file.
web.config Configuration setting for particular application.
It is written in XML file with special tags.
.js JavaScript file.
File may be class file, may contain functions etc
.master Master Page File
File that will provide the same layout for all pages of site.
.css Cascading Style Sheet.
Provides the same style for whole site’s controls by declaring once.
Global.asax Record of every event in the application & inaccessible to the user.
It resides in the root folder of the application.
.edmx An .edmx file is an XML file that defines a conceptual model, a
storage model, and the mapping between these models. An
.edmx file also contains information that is used by the
ADO.NET Entity Data Model Designer (Entity Designer) to
render a model graphically.
In ASP.NET we can do coding in the .cs file either in Visual Basic or Visual C# or
Visual J#. In this IMS (Inventory Management System) we have used Visual C# for coding in .cs
file. There is one more thing in code that is client side script that is the code that will be executed
in client machine. That script can be write in two scripting language either VBScript or
JavaScript. First of all some points regarding Client side scripting is explained here.
There are two .ascx files that is called Web User Control. This provides the header &
footer user interface for Mater page (Master.master). This Master form facility is newly introduce
in Visual Studio 2005, It give the common interface to all forms which include the master page.
The code to include master page in any form is as below:
As we know the client side validation is perform too fast than server side validation.
JavaScript is use for Client side scripting in ASP.NET. I have also use this script for display
dialog boxes, blank TextBox check & DropDownList selected item check.
At the time of delete button click the following JavaScript will be execute. For that
we have to write code in both html interface file & code behind file.
In .cs file declare the like following:
function Conform()
{
return true;
}
This script will display dialog box with yes & no option. If we press yes then that
button click event will happens else if click no then event will cancel.
Changes are made to an .edmx file when you use the Entity Designer to
modify your model and when you use the Update Model Wizard to update
your model based on changes to the underlying database. There are also
some scenarios in which you might have to edit an .edmx file manually.
Model1.EDMX FIle
Database Diagram