Varför vill den inte skicka med mina formegenspaker?Får inte med formuläregenskaperna...
Här är förstasidan med inputarna:
<code>
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="WebForm1.aspx.vb" Inherits="PatCalendar.WebForm1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>WebForm1</title>
<meta content="Microsoft Visual Studio.NET 7.0" name="GENERATOR">
<meta content="Visual Basic 7.0" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<LINK href="css.css" type="text/css" rel="stylesheet">
</HEAD>
<body MS_POSITIONING="GridLayout">
<form id="Form1" method="post" runat="server" action=WebForm2.aspx>
<table width="200" align="center">
<tr>
<td align="middle"><span class="text10pxbold">Choose day</span></td>
<td align="middle"><span class="text10pxbold">Choose group</span></td>
</tr>
<tr>
<td valign="top" align="middle">
<asp:DropDownList id="Day" runat="server" Font-Names="Verdana" Font-Size="10px" ForeColor="Black"></asp:DropDownList>
</td>
<td align="middle">
<asp:RadioButtonList id="Group" runat="server" Font-Names="Verdana" Font-Size="10px">
<asp:ListItem Value="1" Selected="True">Gr 1</asp:ListItem>
<asp:ListItem Value="2">Gr 2</asp:ListItem>
<asp:ListItem Value="3">Gr 3</asp:ListItem>
<asp:ListItem Value="SIM1">SIM 1</asp:ListItem>
<asp:ListItem Value="SIM2">SIM 2</asp:ListItem>
</asp:RadioButtonList>
</td>
</tr>
<tr>
<td colspan="2" align="middle">
<INPUT type="button" value="Submit" class="text10pxbold" onclick="javascript:location.href='Webform2.aspx'">
</td>
</tr>
</table>
</form>
</body>
</HTML>
</code>
Här är suben för dropdown:
<code>
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
With Day
.Items.Add(Date.Today.DayOfWeek.ToString)
.Items.Add(Date.Today.AddDays(1).DayOfWeek.ToString)
.Items.Add(Date.Today.AddDays(2).DayOfWeek.ToString)
.Items.Add(Date.Today.AddDays(3).DayOfWeek.ToString)
.Items.Add(Date.Today.AddDays(4).DayOfWeek.ToString)
.Items.Add(Date.Today.AddDays(5).DayOfWeek.ToString)
.Items.Add(Date.Today.AddDays(6).DayOfWeek.ToString)
End With
End Sub
</code>
Och här är sidan jag ska skriva ut:
<code>
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Response.Write(Request.Form("Day"))
Response.Write(Request.Form("Group"))
End Sub
</code>
Någon som vet varför?
/Lari