• Nie Znaleziono Wyników

Aplikacje webowe podstawy ASP.NET

N/A
N/A
Protected

Academic year: 2021

Share "Aplikacje webowe podstawy ASP.NET"

Copied!
9
0
0

Pełen tekst

(1)

Aplikacje sieciowe

Aplikacje webowe podstawy

ASP.NET

(2)

Struktura strony aspx

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default2.aspx.cs" Inherits="Default2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head runat="server">

<title></title>

</head>

<body>

<form id="form1" runat="server">

<div>

<asp:Label ID="Label1" runat="server" Text="Wprowadz wartość"></asp:Label>

<br />

<asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>

<br />

<asp:Button ID="ZatwierdzButton" runat="server" Text="Zatwierdź" onclick="ZatwierdzButton_Click" />

</div>

</form>

</body>

</html>

(3)

Struktura strony aspx - plik cs

using System;

using System.Collections.Generic;

using System.Linq;

using System.Web;

using System.Web.UI;

using System.Web.UI.WebControls;

public partial class Default2 : System.Web.UI.Page {

protected void Page_Load(object sender, EventArgs e) {

}

protected void ZatwierdzButton_Click(object sender, EventArgs e) {

} }

(4)

Struktura aplikacji ASP.NET

(5)

Plik web.config i machine.config

<!--

Note: As an alternative to hand editing this file you can use the web admin tool to configure settings for your application. Use the Website->Asp.Net Configuration option in Visual Studio. A full list of settings and comments can be found in

machine.config.comments usually located in C: \Windows\Microsoft.Net\Framework\v2.x\Config -->

<configuration>

<appSettings> <appSettings/>

<connectionStrings> <connectionStrings/>

<system.web>

<compilation debug="true">

<assemblies>

<add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

</assemblies>

<compilation/>

<authentication mode="Windows"/>

<system.web>

</configuration>

(6)

Podstawowe Kontrolki Serwerowe

(7)

Podstawowe Kontrolki Serwerowe cd.

(8)

Uruchomienie aplikacji

(9)

Podstawowe Zdarzenia.

Obsługa kolejnych odwołań do strony

protected void Page_Load(object sender, EventArgs e) {

if (!IsPostBack) {

...

} }

protected void ZatwierdzButton_Click(object sender, EventArgs e) {

Label1.Text = "Hello World"; ....

}

Cytaty

Powiązane dokumenty

Once the correlator processed the tapes recorded at radiotelescopes in various locations which observed the same object at the same time, one exactly knows the timeshift in the

Similarly, the ‘Lanzarote Convention’ in Article 6 specifies that children, during primary and secondary education, need to be taught about the risks of sexual exploitation and

As illustrated in Figure 6, the subjects most frequently used both their hands with a power grip when sitting down on and rising from the toilet using the vertical supports.. One

ródo: Badania wasne. Source: Own research... 1c, d) w porównaniu do wczeniej omawianej grupy, charakteryzowaa si do du wartoci sprzeday maszyn rolniczych

For spanning tree from Figure 4 we present weight table (Table 12) as well as we count on example with help of Solver maximum flow... Connection 6-8 wouldn't

The purpose of the following paper is to examine positive money transfers in Polish cooperative banks in comparison with European credit cooperatives and to

Waste processing plants should pay attention to investment, market (price, interest rate, and currency), business climate, political, and legal risks, as well as weather,

Because you are probably implementing a VPN to secure your communications, the encryption methods, Certificate This document was created by an unregistered ChmMagic, please go