- +/- sve poruke
- ravni prikaz
- starije poruke gore
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void btnObradi_ServerClick(object sender, EventArgs e)
{
divFormular.Visible = false;
Response.Write("Upisali ste:<br/>");
Response.Write("Ime: " + txtIme.Value + "<br/>");
Response.Write("Prezime: " + txtPrezime.Value + "<br/>");
Response.Write("Seminar: " + selSeminari.Value + "<br/>");
}
}
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Zadatak 3.2.1 - Prijava_za_seminar.aspx.cs" Inherits="_Default" %>
<!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>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<div id="divFormular" runat="server" style="width: 296px; height: 100px;">
<strong>
Prijava za Algebrin kompjutorski seminar
<br />
</strong>
<hr />
<table style="width: 296px">
<tr>
<td style="width: 14px">
Ime:</td>
<td style="width: 100px">
<input id="txtIme" runat="server" type="text" style="width: 160px" /></td>
</tr>
<tr>
<td style="width: 14px">
Prezime:</td>
<td style="width: 100px">
<input id="txtPrezime" runat="server" type="text" style="width: 160px" /></td>
</tr>
<tr>
<td style="width: 14px">
Seminar:</td>
<td style="width: 100px">
<select id="selSeminari" runat="server" style="width: 168px">
<option>Microsoft Excel</option>
<option>Microsoft Word</option>
<option>Adobe Photoshop</option>
<option>Macromedia Flash</option>
<option>ASP.NET i XML</option>
</select>
</td>
</tr>
</table>
<hr />
<input id="btnObradi" runat="server" type="button" value="Obradi" /></div>
</div>
</form>
</body>
</html>