hi,
there... im doing a page that shows report of a delivery boy in a courier company. But, I can't get any results and i don't know where i've gone wrong...please help
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default.aspx.vb" 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>DELIVERY BOY REPORT</title>
</head>
<script runat="server">
Sub Check(ByVal sender As Object, ByVal e As EventArgs)
Dim i
mess.Text = "<p>Selected Item(s):</p>"
For i = 0 To CheckType.Items.Count - 1
If CheckType.Items(i).Selected Then
mess.Text+=CheckType.Items(i).Text+
"<br>"
End If
Next
End Sub
</script>
<body>
<form id="form1" runat="server">
<br >
Package Code:
<asp:TextBox ID="txtPackage" runat="server"></asp:TextBox>
<br />
<br >
Destination:
<asp:TextBox ID="txtDes" runat="server"></asp:TextBox>
<br />
<br >
<asp:CheckBoxList ID="CheckType" AutoPostBack="true" OnSelectedIndexChangedIndexChanged="Check" runat="server">
<asp:ListItem>Prescheduled</asp:ListItem>
<asp:ListItem>Emergency Delivery</asp:ListItem>
</asp:CheckBoxList>
<asp:Label ID="mess" runat="server" />
<br />
<br >
Package Status:
<asp:TextBox ID="txtStatus" runat="server"></asp:TextBox>
<br />
<div>
</div>
</form>
</body>
</html>