1.NET Web Forms Visual Studio © 2002 by Jerry Post.

Slides:



Advertisements
Similar presentations
Creating a Dialog-Based Comet Windows Program Brian Levantine.
Advertisements

CS0004: Introduction to Programming Visual Studio 2010 and Controls.
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview Introduce Visual Studio 2013 Create a first ASP.NET application.
1 Lab Session-I (A and B) CS-120 Fall 2000 Using Windows Using An Editor Using Visual C++ Using Compiler Writing and Running Programs Lab-1 DUE Fri September.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Creating a Console Application with Visual Studio
Microsoft Visual Basic 2005 CHAPTER 8 Using Procedures and Exception Handling.
Introduction to.Net and ASP.Net Course Introduction Build Your Own ASP.Net Website: Chapter 1 Microsoft ASP.Net Walkthrough: Creating a Basic Web Forms.
Visual Basic Chapter 1 Mr. Wangler.
Hands-on Introduction to Visual Basic.NET Programming Right from the Start with Visual Basic.NET 1/e 6.
Hello World In C++ and Microsoft Visual C++. Directions to begin a project 1. Go to All Programs 2. Open Visual Studio C++ 3. Click on New Project 4.
Microsoft Visual Basic 2012 Using Procedures and Exception Handling CHAPTER SEVEN.
Computing IV Visual C Introduction with OpenCV Example Xinwen Fu.
Using Visual Studio 2013 An Integrated Development Environment (IDE)
Microsoft Visual Basic 2008 CHAPTER 8 Using Procedures and Exception Handling.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
Web Programming: Client/Server Applications Server sends the web pages to the client. –built into Visual Studio for development purposes Client displays.
9 Chapter Nine Compiled Web Server Programs. 9 Chapter Objectives Learn about Common Gateway Interface (CGI) Create CGI programs that generate dynamic.
CSCI 6962: Server-side Design and Programming Introduction to Active Server Pages.
CPS120: Introduction to Computer Science Compiling Your Programs Using Visual C++
Floyd, Digital Fundamentals, 10 th ed EET 2259 Unit 3 Editing and Debugging VIs  Read Bishop, Chapter 3.  Lab #3 and Homework #3 due next week.  Quiz.
Chapter One An Introduction to Visual Basic 2010 Programming with Microsoft Visual Basic th Edition.
Introduction to Visual Basic.NET Your First Visual Basic.NET Application.
Program Design and Coding
Microsoft Visual Basic 2012 CHAPTER THREE Program Design and Coding.
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
Introduction In The Name Of Allah, The Beneficent, The Merciful.
Active-HDL Interfaces Debugging C Code Course 10.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files.
Working with the VB IDE. Running a Program u Clicking the”start” tool begins the program u The “break” tool pauses a program in mid-execution u The “end”
Chapter 3 The Visual Basic Editor. Important Features of the VBE Alt-F11 will open the Visual Basic Editor. The Code window is to the right, Project Explorer.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
Microsoft Visual Basic 2005 BASICS Lesson 1 A First Look at Microsoft Visual Basic.
Introducing Cascading Style Sheets. Cascading Style Sheet Basics  Cascading Style Sheet Basics  Creating Styles  Using Styles  Manipulating Styles.
Copyright (c) 2003 by Prentice Hall Provided By: Qasim Al-ajmi Chapter 2 Introduction to Visual Basic Programming Visual Basic.NET.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
Debugging tools in Flash CIS 126. Debugging Flash provides several tools for testing ActionScript in your SWF files. –The Debugger, lets you find errors.
Building Custom Controls with ASP.NET and the Microsoft ®.NET Framework Rames Gantanant Microsoft Regional Director, Thailand
CIS 338: VB.NET Printing Dr. Ralph D. Westfall May, 2011.
COMPUTER PROGRAMMING I 3.01 Apply Controls Associated With Visual Studio Form.
Microsoft Visual C# 2010 Fourth Edition Chapter 3 Using GUI Objects and the Visual Studio IDE.
Microsoft Visual Basic 2012: Reloaded Fifth Edition Chapter One An Introduction to Visual Basic 2012.
Programming with Visual Basic.NET. Quick Links Program Code The Code Window The Event Procedure Assignment Statements Using AutoList Radio Buttons Buttons.
Introduction to ASP.NET, Second Edition2 Chapter Objectives.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Chapter 8 Multiple Forms, Modules, and Menus. Introduction This chapter demonstrates how to: – Add multiple forms to a project – Create a module to hold.
Chapter 1: An Introduction to Visual Basic .NET
Visual Basic.NET Windows Programming
Chapter 2: The Visual Studio .NET Development Environment
ASP.NET Web Controls.
Chapter 1: An Introduction to Visual Basic 2015
3.01 Apply Controls Associated With Visual Studio Form
3.01 Apply Controls Associated With Visual Studio Form
Using Procedures and Exception Handling
Using Visual Studio with C#
Chapter 2 Visual Basic Interface
Web Development in Microsoft Visual Studio 2013
Social Media And Global Computing Introduction to Visual Studio
Chapter 2 – Introduction to the Visual Studio .NET IDE
Hands-on Introduction to Visual Basic .NET
Understanding the Visual IDE
CIS16 Application Development Programming with Visual Basic
1. Open Visual Studio 2008.
Microsoft Visual Studio
Tonga Institute of Higher Education
Debugging Visual Basic Programs
Presentation transcript:

1.NET Web Forms Visual Studio © 2002 by Jerry Post

2 Visual Studio is a Text Editor  Intellisense  Indents automatically  Pops up object choices  Shows you function and subroutine values  Me.In C# it is this.

3 Useful Tricks  Get a video screen with really high resolution.  It is possible to open files in separate windows.  Use Format  Alignment:  Note that the first clicked item is the one adjusted (e.g., Bottoms).  In a list, the one with the unfilled box marks is the reference item, others will move.  Vertical and Horizontal Spacing  Use drag-and-drop to auto-size items on a form.  Use Ctrl-K + Ctrl-C to comment an entire block, Ctrl-K + Ctrl-U to uncomment a block.  Drag-and-drop a style sheet file to link it easily. But it usually will not take effect until you run the program.  To generate a dataset, right-click on the adapter to set most of the default values automatically.  Do not put numbers after a DataSet name. The generator does it for you.  Choose one language and stick with it. You cannot mix and match.

4 Solutions and Projects  Ignore “Solutions.” They are supposed to let you combine projects but it does not work properly.  Yes, you can compile multiple projects. But the projects remain completely separate.  You can call a form from one project to another.  But the session variables are completely different.  If you really want to combine multiple projects  Compile outside of Visual Studio and use command-line to build an assembly.  Compile the first one separately, and copy the.aspx and.DLL files into the main project root and \bin directories respectively. Then add a reference to the first’s DLL. Then compile main.  Also, just try getting rid of earlier projects.  Delete files manually (be careful, they are in several places).  Edit the registry!

5 Creating Event Functions  Events trigger calls to functions  The functions must have the proper parameters.  The functions must be registered or linked to the event.  For buttons: double-click on the button on the form.  For other events:  Select the object in the top-left select box  Select the event in the top-right select box  You can programmatically create links from events to event- handlers; usually in Page_Init (which must itself be linked as an event-handler).

6 Help  You need the MSDN Library DVD  Organization choices  ContentsHierarchical structure  SearchLimited text searching  IndexKey words  To find anything, make sure you set Filtered By  Visual BasicLanguage questions .NET Framework SDKWeb issues

7 Debug and Trace  For.NET, best to debug on a workstation not the server  Set breakpoints in code, Start with F5 or Debug + Start  Useful Windows (View + …)  BreakpointsSet properties to enable conditional breaks  Variables: Locals, Me, Autos (also roll over the variable)  Exceptions (errors)  Call Stack (see where you came from)  CommandIssue commands, but lots of typing  ImmediateFrom command: Debug.Immediate  ?VariableDisplays value  CommandsAny acceptable VB command (useful to test)  Debug and Trace (same thing but Trace statements remain in compiled code)  Debug.WriteLine(“Program has reached point A”)  Debug.WriteLineIf(ID > 100, “ID is too large”)  Trace.Listeners.Add(…) You can route the output to almost anywhere, including !

8 Visual Studio Form Design Toolbars Menu Save all Controls Design/Layout form HTML/ASPX Solution Explorer ReferenceProperties Additional windows (help, output, debug, …)