60 likes | 155 Views
Chapter 2: Develop A One Page Web Application. Liu, Jie. Professor Department of Computer Science Western Oregon University Liuj@wou.edu. Start A New Project. File New Website Three different locations File system – store anywhere HTTP – use your IIS server FTP
E N D
Chapter 2: Develop A One Page Web Application Liu, Jie Professor Department of Computer Science Western Oregon University Liuj@wou.edu
Start A New Project • File New Website • Three different locations • File system • – store anywhere • HTTP • – use your IIS server • FTP • – to a file server directory • A solution file is store at: My Documents\Visual Studio\Projects • To change to where the solution file is stored use • ToolOption
The IDE 2 4 1 3 5
Page Event • Page_Init • First event, before the view state is restored • Page_Load • All the controls are initialized and view state is restored • This is the event to add logics at the page level • Page_PreRender • The server is done with the page and ready to send the HTML file to the browser
Summary • Start a new project • Start a page • Visual Studio – the IDE • Add controls • Add code to events • Event driven concept • Events for controls • Events for a page • PostBack – the concept