Ciao a tutti sto cercando di imparare un po di asp.net e sto seguendo le lezioni da un libro (ASP.NET Guida Completa), ho copiato il codice di una pagina
Codice PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ Page Language="VB" %>
<script runat="server">
Sub Click(obj as object, e as EventArgs)
select case obj.Value
case "Left"
word_image.align = "left"
case "right"
word_image.align = "right"
case "center"
word_image.align = "center"
end select
Left.Style("Border-Style") = "notset"
Right.Style("Border-Style") = "notset"
Center.Style("Border-Style") = "notset"
obj.Style("Border-Style") = "inset"
end Sub
</script>
<html dir="ltr" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
<title>lezione_2</title>
</head>
<body>
<font size="5">
Marco impara ASP.NET da solo in 21 Giorni: Giorno 5
</font>
<hr />
</p>
<form runat="server">
<input type="Button" id="Left" runat="server"
value="Left" OnServerClick="Click" />
<input type="Button" id="Center" runat="server"
value="Center" OnServerClick="Click" />
<input type="Button" id="Right" runat="server"
value="Right" OnServerClick="Click" />
</form>
[img]triste.gif[/img]
<div id="label1" runat="serve">
This is an example of text. When the buttons above are clicked, the image
will move around the text accordingly.
This example demostrates the HtmlImage and HtmlInputButton contols.
</p>
</div>
</body>
</html>
Ma mi da errore ed io non so dove sbaglio, se volete vedere l' errore clicate qui . Ciao e grazie