ASP.net for Absolute Beginner

Category : Asp.Net

Getting Started with Visual Web Developer 2005 Express Edition

Creating a Web Forms User Interface

There are few ways to design layout

1. Spacebar and enter

2. Insert tavble

3. Layout>Auto-position – change to absolute so we can place it anywhere

4. Layout>Insert layer – so we can place on top of another

Tag selector at the bottom to assist us on editing.

Standard

Dropdownlist, learn how to use it. Radio button, how to group together, set the group name the same.Checkbox-popularly used to get yes or no answer.

Validation

Request field Validator. Compare Validator eg used in dropdownlist, false if selected onthe “Select One”. Validation Summary to display all error messages.

Layout- how to align, select all the controls, align left, align top etc. Horizontal spacing. Vertical Spacing equal.

PostBack – sent to the server. Event Handler for OK button. Auto Post Back.

Understanding More About Events and Postback

Postback or first time request. Global. Event handler eg button – control PostBack. Page_Load event, double click on the page – everytime the page is load it will give the default value. The default sequence will be pageload then event handler. To overturn we need to add some coding if then so it will execute the event handler first. Global.asax to set life of an application. We can create user counter.

Understanding Web Application State

How to save state. There are 3 ways shown here

1. ViewState – Works on single page (page_load)

2. Session – to show on multiple pages – using Global.asax

3. Profile object – we need to edit on the web.config. the item created as an object. This will help to reduce any possibility for error.

How to pass data between 2 pages? Hyperlink, Query String using Request Object. ~page2.aspx?myValue=Bob

Debugging and Tracing your Website

Debugging using breakpoint. by default it is enabled in Asp.net configuration. To enable tracing, go to Asp.net configuration>Application>Debugging & Tracing>Configure debugging and tracing. How to see what other are doing by displaying the tracing on a seperate page, browse to ~/trace.axd. Here we can see all the activities by the users.

How to pass lines into the trace? On the aspx page, insert this code Trace.Write(“This is the problem”). This will help us to to trace which line is causing problem.

How to create an error apage? Add new item; error.htm. Go to Asp.net Configuration>Application>debugging & Tracing>Define Default Error Page. Asp.net configuration is the user interface for web.config (hard-coded xml file). Any chages on the asp.net configuration will be reflected on the web.config file as well. we can also make changes directly on the web.config file.

Working with Stylesheets and Master Pages

Learn how to create CSS. Masterpages. Learn to use Navigation controls. Create new item, select web.sitemap (an xml page). Isert the pages url, title, description. Then on the aspx page, drag TreeView or Menu.

Databinding to User Interface Controls

Working with the GridView and FormView

Securing your Web site with Membership and Login Controls

Configuring, Building and Deploying a Web site

ASP.NET 2.0 Quiz Engine Project – Designing and Planning

Microsoft Solution Framework (MSF)

1.Envision your solution

2.Plan how you’ll build it

3.Develop the application

4.Testing and debugging

5.Deploying the solution.

Each repeat of these steps is an “iteration”.

Whre to store data? Database or XML (crackable). How will I save state between pages? Database-resources, Profile-use the permanent object or Session-memory of the session, good as asp.net improves it.

ASP.NET 2.0 Quiz Engine Project – Early Development

Create membership. Login and register for new user. Test quiz engine.

ASP.NET 2.0 Quiz Engine Project – Refining application Functionality

Refining Application functionality. Snapshot#4 Learn how to store the results in the database. How to deploy the results on default page when user logged in. retrieve history. Snapshot#5 quiz table, UserQuiz table.

ASP.NET 2.0 Quiz Engine Project – Enabling Themes, Handling Exceptions and Deploying

add themes and skins. theme works on page level. skin works on control level. themes choose and save on user profile. snapshot#7 enable the user to select theme. theme will be stored on user profile. profile under properties will be added on the web.config file. Snapshot#8 Cleaning and improving codes. Create error page. Deploying > Copy Web Site to remote, IIS, FTP.

Post a comment