 |
| ASP.NET 3.5 Professionals If you are an experienced ASP.NET programmer, this is the forum for your 3.5 questions. Please also see the Visual Web Developer 2008 forum. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 3.5 Professionals section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

April 20th, 2009, 03:55 PM
|
|
Friend of Wrox
|
|
Join Date: Jul 2003
Posts: 121
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
RegularExpressionValidator problem
Hello,
I am having a problem with the RegularExpressionValidator control on my page. It supposes to validate the numeric field on the page. If I enter alphanumeric character, it shows an error, but it is still doing the Post Back by some reason? What is going on and how it can be possible to post back an Invalid page?
Thanks in advance,
Dmitriy
|
|

April 20th, 2009, 06:17 PM
|
 |
Wrox Author
|
|
Join Date: Jan 2008
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
|
|
If JavaScript is disabled, then it has to validate on the server side, in which case it MUST post back.
If that is what's happening, you should evaluate the Page.IsValid property before running your postback method. That way, even though the page posts back, it won't actually do anything.
|
|

April 21st, 2009, 07:27 AM
|
|
Friend of Wrox
|
|
Join Date: Jul 2003
Posts: 121
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
RegularExpressionValidator problem
Hello Lee,
Thank you for the response, but the JavaScript is enabled. I am using same RegularExpressionValidator control on the same page against different control and it is working fine the way it supposes to work (with no Post Back on error). Maybe it is something special for this particular place on the page I canât see.
This is my source for the page I am working on. This is the content page which is using the master page as well. The RegularExpressionValidator which is giving me the problem shown in green color.
And thanks again
-Dmitriy
Code:
<%@PageLanguage="C#"MasterPageFile="~/Restricted/MRIS4.Master"AutoEventWireup="True"
CodeBehind="TTK_QuerySpeciesGear.aspx.cs"Inherits="MRISApplication.Restricted.TTK_QuerySpeciesGear"
Title="Untitled Page" %>
<%@MasterTypeVirtualPath="~/Restricted/MRIS4.Master" %>
<%@RegisterAssembly="AjaxControlToolkit"Namespace="AjaxControlToolkit"TagPrefix="cc1" %>
<asp:ContentID="Content1"ContentPlaceHolderID="head"runat="server">
<styletype="text/css">
.newStyle1
{
clip: rect(auto, auto, auto, auto);
}
.textBox
{
height: 16px;
font-size: x-small;
vertical-align: middle;
text-align: left;
}
.labelBox
{
text-align: left;
}
.dropDown
{
height: 16px;
font-size: x-small;
vertical-align: middle;
text-align: left;
}
.tableRow
{
font-size: x-small;
font-weight: bold;
}
.accordionPanel
{
width: 356px;
height: 223px;
}
.accordionHeader
{
border: 1pxsolid#2F4F4F;
color: white;
background-color: #336699;
font-family: Arial,Sans-Serif;
font-size: 12px;
font-weight: bold;
padding: 5px;
margin-top: 5px;
cursor: pointer;
height: 10px;
width: 356px;
}
.accordionHeaderSelect
{
border: 1pxsolid#2F4F4F;
color: Black;
background-color: #336699;
font-family: Arial,Sans-Serif;
font-size: 12px;
font-weight: bold;
padding: 5px;
margin-top: 5px;
cursor: pointer;
height: 10px;
width: 356px;
}
.styleWaitMessage
{
font-weight: bold;
color: Blue;
}
.tabPanel
{
vertical-align: middle;
text-align: center;
}
</style>
<script>
function SetActiveTab(tabControl, tabNumber)
{
var ctrl = $find(tabControl);
ctrl.set_activeTab(ctrl.get_tabs()[tabNumber]);
}
function Trim(TheString)
{
var len;
len = TheString.length;
while(TheString.substring(0,1) == ' '){ //trim left
TheString = TheString.substring(1, len);
len = TheString.length;
}
while(TheString.substring(len-1, len) == ' '){ //trim right
TheString = TheString.substring(0, len-1);
len = TheString.length;
}
return TheString;
}
function ConfirmExecuteQueryDialog()
{
//debugger //TO DO the DEBUGGING !!!!!!!!!!!!!!!!!!!!!!!!
var response;
if (Trim(document.all.item("ctl00$ContentPlaceHolder1$DropDownList_Browse").value) == 'Species')
{
if (Trim(document.all.item("ctl00$ContentPlaceHolder1$TabContainer1$TabPanelQuery$txtSpeciesCode").value) == '')
{
response = window.confirm('No Species Code has been selected for this query. It will take more time to execute. Would you like to proceed?');
if(response)
returntrue;
else
{
document.all.item("ctl00$ContentPlaceHolder1$TabContainer1$TabPanelQuery$txtSpeciesCode").focus();
returnfalse;
}
}
}
if (Trim(document.all.item("ctl00$ContentPlaceHolder1$DropDownList_Browse").value) == 'Gear')
{
if ((document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkPurse2").checked == false) && (document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkHaul2").checked == false) &&
(document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkLongline2").checked == false) && (document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkHL2").checked == false) &&
(document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkTraps2").checked == false) && (document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkTrawl2").checked == false) &&
(document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkGill2").checked == false) && (document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkTrammel2").checked == false) &&
(document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkCast2").checked == false) && (document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkBandit2").checked == false) &&
(document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkHeadBoat2").checked == false) && (document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkGuide2").checked == false) &&
(document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkCharter2").checked == false) && (document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkAquaculture2").checked == false) &&
Trim(document.all.item("ctl00$ContentPlaceHolder1$TabContainer1$TabPanelQuery$txtOther2").value) == '')
{
response = window.confirm('No Gear Type has been selected for this query. It will take more time to execute. Would you like to proceed?');
if(response)
returntrue;
else
{
document.all.item("ctl00$ContentPlaceHolder1$TabContainer1$TabPanelQuery$txtOther2").focus();
returnfalse;
}
}
}
if (Trim(document.all.item("ctl00$ContentPlaceHolder1$DropDownList_Browse").value) == 'SpeciesGear')
{
if (((document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkPurse2").checked == false) && (document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkHaul2").checked == false) &&
(document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkLongline2").checked == false) && (document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkHL2").checked == false) &&
(document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkTraps2").checked == false) && (document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkTrawl2").checked == false) &&
(document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkGill2").checked == false) && (document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkTrammel2").checked == false) &&
(document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkCast2").checked == false) && (document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkBandit2").checked == false) &&
(document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkHeadBoat2").checked == false) && (document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkGuide2").checked == false) &&
(document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkCharter2").checked == false) && (document.all.item("ctl00_ContentPlaceHolder1_TabContainer1_TabPanelQuery_checkAquaculture2").checked == false) &&
Trim(document.all.item("ctl00$ContentPlaceHolder1$TabContainer1$TabPanelQuery$txtOther2").value) == '') || (Trim(document.all.item("ctl00$ContentPlaceHolder1$TabContainer1$TabPanelQuery$txtSpeciesCode").value) == ''))
{
response = window.confirm('No Species Code or no Gear Type has been selected for this query. It will take more time to execute. Would you like to proceed?');
if(response)
returntrue;
else
{
document.all.item("ctl00$ContentPlaceHolder1$TabContainer1$TabPanelQuery$txtSpeciesCode").focus();
returnfalse;
}
}
}
} //END function ConfirmExecuteQueryDialog()
</script>
</asp:Content>
<asp:ContentID="Content2"ContentPlaceHolderID="ContentPlaceHolder1"runat="server">
<tablestyle="width: 100%;">
<tr>
<tdalign="right"width="85%">
<asp:UpdatePanelID="UpdatePanel8"runat="server">
<ContentTemplate>
<asp:LabelID="Label1"runat="server"Text="Browse:"Font-Bold="True"Height="22px"></asp:Label>
<asp:DropDownListID="DropDownList_Browse"runat="server"Width="106px"Height="20px"
OnSelectedIndexChanged="DropDownList_Browse_SelectedIndexChanged"AutoPostBack="True">
<asp:ListItemSelected="True">Species</asp:ListItem>
<asp:ListItem>Gear</asp:ListItem>
<asp:ListItemValue="SpeciesGear">Species/Gear</asp:ListItem>
</asp:DropDownList>
</ContentTemplate>
</asp:UpdatePanel>
</td>
<tdalign="right"valign="middle">
<asp:LoginStatusID="LoginStatus2"runat="server"Height="18px"ToolTip="User Login/Logout"
Width="56px"OnLoggedOut="LoginStatus2_LoggedOut"/>
</td>
</tr>
<tr>
<tdvalign="middle"style="width: 90%"colspan="2">
<cc1:TabContainerID="TabContainer1"runat="server"Height="524px"ActiveTabIndex="2"
BorderStyle="Groove"Width="100%"BackColor="#CC9900"Font-Bold="True">
<cc1:TabPanelID="TabPanelDetail"runat="server"HeaderText="Detail">
<ContentTemplate>
<br/>
<tablewidth="100%"border="1">
<tralign="center">
<td>
<asp:UpdatePanelID="UpdatePanel5"runat="server">
<ContentTemplate>
<tablecellspacing="1"width="80%"style="margin-left: 0px">
<trclass="tableRow">
<tdalign="right">
Batch:
</td>
<tdalign="left">
<asp:TextBoxID="txtBatch"runat="server"CssClass="textBox"MaxLength="6"Width="53px"
Font-Bold="True"></asp:TextBox>
</td>
<tdalign="right">
Vessel Id:
</td>
<tdalign="left">
<asp:TextBoxID="txtVesselId"runat="server"BackColor="Silver"Enabled="False"CssClass="textBox"
MaxLength="9"Width="75px"Font-Bold="True"></asp:TextBox>
</td>
<tdalign="right"width="100px">
Invoice Number:
</td>
<tdalign="left">
<asp:TextBoxID="txtInvoiceNumber"runat="server"CssClass="textBox"MaxLength="13"
Width="95px"Font-Bold="True"></asp:TextBox>
</td>
<tdalign="right">
Continue:
</td>
<tdalign="left">
<asp:TextBoxID="txtContinuationInd"runat="server"CssClass="textBox"MaxLength="1"
Width="20px"Font-Bold="True"></asp:TextBox>
</td>
<tdalign="right"width="100px">
Ticket Style:
</td>
<tdalign="left">
<asp:TextBoxID="txtTicketStyle"runat="server"CssClass="textBox"MaxLength="2"
Width="35px"Font-Bold="True"></asp:TextBox>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
</table>
<tablewidth="100%"border="1">
<tr>
<tdclass="style21">
<tableborder="1"style="width: 378px">
<tr>
<tdclass="style22">
<asp:UpdatePanelID="UpdatePanel6"runat="server">
<ContentTemplate>
<tablestyle="width: 103%;">
<trclass="tableRow">
<tdalign="right"width="90px">
SPL No:
</td>
<tdalign="left">
<asp:TextBoxID="txtSPLNo"runat="server"CssClass="textBox"MaxLength="9"Width="70px"
Font-Bold="True"></asp:TextBox>
</td>
<tdalign="right"width="90px">
SPL Exp.:
</td>
<tdalign="left">
<asp:TextBoxID="txtSLPExp"runat="server"CssClass="textBox"MaxLength="10"ToolTip="Enter date in formate "mm/dd/yyyy""
Width="70px"Font-Bold="True"></asp:TextBox><cc1:CalendarExtenderID="txtSLPExp_CalendarExtender"
runat="server"Enabled="True"Format="yyyyMMdd"TargetControlID="txtSLPExp">
</cc1:CalendarExtender>
<asp:RegularExpressionValidatorID="RegularExpressionValidator1"runat="server"ControlToValidate="txtSLPExp"
ErrorMessage="RegularExpressionValidator"ValidationExpression="(((0[13578]|10|12)([-./])(0[1-9]|[12][0-9]|3[01])([-./])(\d{4}))|((0[469]|11)([-./])([0][1-9]|[12][0-9]|30)([-./])(\d{4}))|((2)([-./])(0[1-9]|1[0-9]|2[0-8])([-./])(\d{4}))|((2)(\.|-|\/)(29)([-./])([02468][048]00))|((2)([-./])(29)([-./])([13579][26]00))|((2)([-./])(29)([-./])([0-9][0-9][0][48]))|((2)([-./])(29)([-./])([0-9][0-9][2468][048]))|((2)([-./])(29)([-./])([0-9][0-9][13579][26])))">*</asp:RegularExpressionValidator>
</td>
</tr>
<trclass="tableRow">
<tdalign="right">
No of Crew:
</td>
<tdalign="left">
<asp:TextBoxID="txtNoOfCrew"runat="server"CssClass="textBox"MaxLength="2"Width="30px"
Font-Bold="True"></asp:TextBox><asp:RegularExpressionValidatorID="RegularExpressionValidator4"
runat="server"ControlToValidate="txtNoOfCrew"ErrorMessage="RegularExpressionValidator"
ValidationExpression="^\d+$">*</asp:RegularExpressionValidator>
</td>
<tdalign="right">
Trip Start Date:
</td>
<tdalign="left">
<asp:TextBoxID="txtTripStartDate"runat="server"CssClass="textBox"MaxLength="10"
ToolTip="Enter date in formate "yyyyMMdd""Width="70px"Font-Bold="True"></asp:TextBox><cc1:CalendarExtender
ID="txtTripStartDate_CalendarExtender"runat="server"Enabled="True"TargetControlID="txtTripStartDate"
Format="yyyyMMdd">
</cc1:CalendarExtender>
<asp:RegularExpressionValidatorID="RegularExpressionValidator2"runat="server"ErrorMessage="RegularExpressionValidator"
ValidationExpression="^(((\d{4})(0[13578]|10|12)(0[1-9]|[12][0-9]|3[01]))|((\d{4})(0[469]|11)([0][1-9]|[12][0-9]|30))|((\d{4})(02)(0[1-9]|1[0-9]|2[0-8]))|(([02468][048]00)(02)(29))|(([13579][26]00) (02)(29))|(([0-9][0-9][0][48])(02)(29))|(([0-9][0-9][2468][048])(02)(29))|(([0-9][0-9][13579][26])(02)(29))|(00000000)|(88888888)|(99999999))?$"
ControlToValidate="txtTripStartDate">*</asp:RegularExpressionValidator>
</td>
</tr>
<trclass="tableRow">
<tdalign="right">
Dealer:
</td>
<tdalign="left">
<asp:TextBoxID="txtDealer"runat="server"CssClass="textBox"MaxLength="9"Width="70px"
Font-Bold="True"></asp:TextBox>
</td>
<tdalign="right">
Uploading Date:
</td>
<tdalign="left">
<asp:TextBoxID="txtUploadingDate"runat="server"CssClass="textBox"MaxLength="10"
ToolTip="Enter date in formate "yyyyMMdd""Width="70px"Font-Bold="True"></asp:TextBox><cc1:CalendarExtender
ID="txtUploadingDate_CalendarExtender"runat="server"Enabled="True"TargetControlID="txtUploadingDate"
Format="yyyyMMdd">
</cc1:CalendarExtender>
<asp:RegularExpressionValidatorID="RegularExpressionValidator3"runat="server"ErrorMessage="RegularExpressionValidator"
ValidationExpression="^(((\d{4})(0[13578]|10|12)(0[1-9]|[12][0-9]|3[01]))|((\d{4})(0[469]|11)([0][1-9]|[12][0-9]|30))|((\d{4})(02)(0[1-9]|1[0-9]|2[0-8]))|(([02468][048]00)(02)(29))|(([13579][26]00) (02)(29))|(([0-9][0-9][0][48])(02)(29))|(([0-9][0-9][2468][048])(02)(29))|(([0-9][0-9][13579][26])(02)(29))|(00000000)|(88888888)|(99999999))?$"
ControlToValidate="txtUploadingDate">*</asp:RegularExpressionValidator>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<tdclass="style22">
<asp:UpdatePanelID="UpdatePanel7"runat="server">
<ContentTemplate>
<tablestyle="width: 103%;">
<trclass="tableRow">
<tdalign="right"width="90px">
Time Fished:
</td>
<tdalign="left"width="110px">
<asp:TextBoxID="txtTimeFished"runat="server"CssClass="textBox"MaxLength="3"Width="30px"
ToolTip="Enter the time fished in the format "999""Font-Bold="True"></asp:TextBox><asp:RegularExpressionValidator
ID="RegularExpressionValidator5"runat="server"ControlToValidate="txtTimeFished"
ErrorMessage="RegularExpressionValidator"ValidationExpression="^\d+$">*</asp:RegularExpressionValidator>
</td>
<tdalign="right">
Depth:
</td>
<tdalign="left">
<asp:TextBoxID="txtDepth"runat="server"MaxLength="5"CssClass="textBox"Width="40px"
Font-Bold="True"></asp:TextBox><asp:RegularExpressionValidatorID="RegularExpressionValidator6"
runat="server"ControlToValidate="txtDepth"ErrorMessage="RegularExpressionValidator"
ValidationExpression="^[-+]?\d*\.?\d*$">*</asp:RegularExpressionValidator>
</td>
</tr>
<trclass="tableRow">
<tdalign="right">
Area Fished:
</td>
<tdalign="left">
<asp:TextBoxID="txtAreaFished"runat="server"CssClass="textBox"MaxLength="5"Width="40px"
ToolTip="Enter the fished area in the format "999.9""Font-Bold="True"></asp:TextBox><asp:RegularExpressionValidator
ID="RegularExpressionValidator7"runat="server"ControlToValidate="txtAreaFished"
ErrorMessage="RegularExpressionValidator"ValidationExpression="^\d{0,3}(\.\d{1})?$">*</asp:RegularExpressionValidator>
</td>
<tdalign="right">
Depth Units:
</td>
<tdalign="left">
<asp:TextBoxID="txtDepthUnits"runat="server"CssClass="textBox"MaxLength="1"Width="20px"
ToolTip="Enter one letter depth units (m for meter, etc...) "Font-Bold="True"></asp:TextBox>
</td>
</tr>
<trclass="tableRow">
<tdalign="right">
County:
</td>
<tdalign="left">
<asp:TextBoxID="txtCounty"runat="server"CssClass="textBox"MaxLength="3"Width="30px"
ToolTip="Enter up to 3 digits county code"Font-Bold="True"></asp:TextBox><asp:RegularExpressionValidator
ID="RegularExpressionValidator8"runat="server"ControlToValidate="txtCounty"
ErrorMessage="RegularExpressionValidator"ValidationExpression="^\d{0,3}?$">*</asp:RegularExpressionValidator>
</td>
<tdalign="right">
Soak Time:
</td>
<tdalign="left">
<asp:TextBoxID="txtSoakTime"runat="server"CssClass="textBox"Width="30px"MaxLength="3"
Font-Bold="True"></asp:TextBox><asp:RegularExpressionValidatorID="RegularExpressionValidator9"
runat="server"ControlToValidate="txtSoakTime"ErrorMessage="RegularExpressionValidator"
ValidationExpression="^\d{0,3}?$">*</asp:RegularExpressionValidator>
</td>
</tr>
<trclass="tableRow">
<tdalign="right">
State Landed:
</td>
<tdalign="left">
<asp:DropDownListID="cboStateLanded"runat="server"CssClass="dropDown"Width="105px"
Font-Bold="True">
<asp:ListItemValue="NS">Not Selected</asp:ListItem>
<asp:ListItemValue="AL">AL - Alabama</asp:ListItem>
<asp:ListItemValue="FL">FL - Florida</asp:ListItem>
<asp:ListItemValue="GA">GA - Georgia</asp:ListItem>
<asp:ListItemValue="MS">MS - Mississippi</asp:ListItem>
<asp:ListItemValue="NC">NC - N.Carolina</asp:ListItem>
<asp:ListItemValue="SC">SC - S.Carolina</asp:ListItem>
<asp:ListItemValue="TX">TX - Texas</asp:ListItem>
<asp:ListItemValue="LA">LA - Louisiana</asp:ListItem>
</asp:DropDownList>
</td>
<tdalign="right">
Soak Units:
</td>
<tdalign="left">
<asp:TextBoxID="txtSoakUnits"runat="server"CssClass="textBox"MaxLength="1"Width="20px"
ToolTip="Enter one letter soak units (h for hours, etc...) "Font-Bold="True"></asp:TextBox>
</td>
</tr>
<trclass="tableRow">
<tdalign="right">
Gear Sets:
</td>
<tdalign="left">
<asp:TextBoxID="txtGearSets"runat="server"CssClass="textBox"MaxLength="2"Width="30px"
ToolTip="Enter up to 2 digits gear sets count"Font-Bold="True"></asp:TextBox><asp:RegularExpressionValidator
ID="RegularExpressionValidator10"runat="server"ControlToValidate="txtGearSets"
ErrorMessage="RegularExpressionValidator"ValidationExpression="^\d{0,2}?$">*</asp:RegularExpressionValidator>
</td>
<tdalign="right">
Traps:
</td>
<tdalign="left">
<asp:TextBoxID="txtTraps"runat="server"CssClass="textBox"MaxLength="4"Width="40px"
ToolTip="Enter up to 4 digits traps count"Font-Bold="True"></asp:TextBox><asp:RegularExpressionValidator
ID="RegularExpressionValidator11"runat="server"ControlToValidate="txtTraps"
ErrorMessage="RegularExpressionValidator"ValidationExpression="^\d{0,4}?$">*</asp:RegularExpressionValidator>
</td>
</tr>
</table>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<tdclass="style34"valign="top">
<asp:UpdatePanelID="UpdatePanel1"runat="server"UpdateMode="Conditional">
<ContentTemplate>
<asp:PanelID="PanelGears"runat="server"BackColor="Silver"BorderStyle="Groove"
Width="100%">
<tablestyle="width: 103%;">
<tr>
<tdwidth="33%"align="left">
<asp:CheckBoxID="checkPurse"runat="server"Text="Purse"/>
</td>
<tdwidth="33%"align="left">
<asp:CheckBoxID="checkHaul"runat="server"Text="Haul"/>
</td>
<tdwidth="34%"align="left">
<asp:CheckBoxID="checkLongline"runat="server"Text="Longline"/>
</td>
</tr>
<tr>
<tdalign="left">
<asp:CheckBoxID="checkHL"runat="server"Text="HL"/>
</td>
<tdalign="left">
<asp:CheckBoxID="checkTraps"runat="server"Text="Traps"/>
</td>
<tdalign="left">
<asp:CheckBoxID="checkTrawl"runat="server"Text="Trawl"/>
</td>
</tr>
<tr>
<tdalign="left">
<asp:CheckBoxID="checkGill"runat="server"Text="Gill"/>
</td>
<tdalign="left">
<asp:CheckBoxID="checkTrammel"runat="server"Text="Trammel"/>
</td>
<tdalign="left">
<asp:CheckBoxID="checkCast"runat="server"Text="Cast"/>
</td>
</tr>
<tr>
<tdalign="left">
<asp:CheckBoxID="checkBandit"runat="server"Text="Bandit"/>
</td>
<tdalign="left">
<asp:CheckBoxID="checkHeadBoat"runat="server"Text="Head Boat"/>
</td>
<tdalign="left">
<asp:CheckBoxID="checkGuide"runat="server"Text="Guide"/>
</td>
</tr>
<tr>
<tdalign="left">
<asp:CheckBoxID="checkCharter"runat="server"Text="Charter"/>
</td>
<tdalign="left">
<asp:CheckBoxID="checkAquaculture"runat="server"Text="Aquaculture"/>
</td>
<tdalign="left">
<asp:LabelID="Label2"runat="server"Text="Other"></asp:Label> <asp:TextBox
ID="txtOther"runat="server"Width="60px"></asp:TextBox>
</td>
</tr>
</table>
</asp:Panel>
<asp:PanelID="PanelEndorsements"runat="server"BackColor="Silver"BorderStyle="Groove"
Width="100%"Visible="false">
<asp:GridViewID="GridView_Endordements"runat="server"AllowPaging="True"AutoGenerateColumns="False"
Height="100%"Width="100%"CellSpacing="2"ForeColor="#333333"GridLines="None"
PageSize="6"OnPageIndexChanging="GridView_Endordements_PageIndexChanging"AllowSorting="True"
OnSorting="GridView_Endordements_Sorting"EmptyDataText="No matching records found"
EmptyDataRowStyle-HorizontalAlign="Center"EmptyDataRowStyle-BackColor="#5D7B9D"
EmptyDataRowStyle-Font-Bold="True"EmptyDataRowStyle-ForeColor="White">
<FooterStyleBackColor="#5D7B9D"Font-Bold="True"ForeColor="White"/>
<RowStyleBackColor="#F7F6F3"ForeColor="#333333"/>
<Columns>
<asp:BoundFieldHeaderText="End Ind"DataField="ENDORS"SortExpression="ENDORS">
<HeaderStyleFont-Bold="True"Height="8px"HorizontalAlign="Center"/>
<ItemStyleHeight="10px"/>
</asp:BoundField>
<asp:BoundFieldHeaderText="Endorsements"DataField="ENDORSEMENT"SortExpression="ENDORSEMENT">
<HeaderStyleFont-Bold="True"HorizontalAlign="Center"/>
</asp:BoundField>
<asp:BoundFieldHeaderText="Exp. Date"DataField="EXPIRATION_DATE"SortExpression="EXPIRATION_DATE">
<HeaderStyleFont-Bold="True"HorizontalAlign="Center"/>
</asp:BoundField>
</Columns>
<PagerStyleBackColor="#284775"ForeColor="White"HorizontalAlign="Center"/>
<SelectedRowStyleBackColor="#E2DED6"Font-Bold="True"ForeColor="#333333"/>
<HeaderStyleBackColor="#5D7B9D"Font-Bold="True"ForeColor="White"/>
<EditRowStyleBackColor="#999999"/>
<AlternatingRowStyleBackColor="White"ForeColor="#284775"/>
</asp:GridView>
</asp:Panel>
<asp:PanelID="PanelMethods"runat="server"BackColor="Silver"BorderStyle="Groove"
Width="100%"Visible="false">
<asp:GridViewID="GridView_Methods"runat="server"AllowPaging="True"AutoGenerateColumns="False"
Height="100%"Width="100%"CellSpacing="2"ForeColor="#333333"GridLines="None"
PageSize="6"OnPageIndexChanging="GridView_Methods_PageIndexChanging"AllowSorting="True"
OnSorting="GridView_Methods_Sorting"EmptyDataText="No matching records found"
EmptyDataRowStyle-ForeColor="White"EmptyDataRowStyle-Font-Bold="True"EmptyDataRowStyle-BackColor="#5D7B9D"
EmptyDataRowStyle-HorizontalAlign="Center">
<FooterStyleBackColor="#5D7B9D"Font-Bold="True"ForeColor="White"/>
<RowStyleBackColor="#F7F6F3"ForeColor="#333333"/>
<Columns>
<asp:BoundFieldHeaderText="Method"DataField="METHOD"SortExpression="METHOD">
<HeaderStyleFont-Bold="True"Height="8px"HorizontalAlign="Center"/>
<ItemStyleHeight="10px"/>
</asp:BoundField>
<asp:BoundFieldHeaderText="Quantity"DataField="QUANTITY"SortExpression="QUANTITY">
<HeaderStyleFont-Bold="True"HorizontalAlign="Center"/>
</asp:BoundField>
<asp:BoundFieldHeaderText="Measurement"DataField="MEASUREMENT"SortExpression="MEASUREMENT">
<HeaderStyleFont-Bold="True"HorizontalAlign="Center"/>
</asp:BoundField>
</Columns>
<PagerStyleBackColor="#284775"ForeColor="White"HorizontalAlign="Center"/>
<SelectedRowStyleBackColor="#E2DED6"Font-Bold="True"ForeColor="#333333"/>
<HeaderStyleBackColor="#5D7B9D"Font-Bold="True"ForeColor="White"/>
<EditRowStyleBackColor="#999999"/>
<AlternatingRowStyleBackColor="White"ForeColor="#284775"/>
</asp:GridView>
</asp:Panel>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTriggerControlID="DropDownList_Browse"/>
<asp:AsyncPostBackTriggerControlID="TabContainer1$TabPanelBrowse$GridView_Browse"
EventName="SelectedIndexChanging"/>
</Triggers>
</asp:UpdatePanel>
</td>
</tr>
</table>
</td>
<tdvalign="top">
<tablewidth="100%"border="1">
<tr>
<td>
<asp:UpdatePanelID="UpdatePanel3"runat="server">
<ContentTemplate>
<asp:LabelID="Label3"runat="server"Text="Species Type: "Font-Bold="True"Font-Size="X-Small"></asp:Label><asp:Label
ID="lblSpeciesType"runat="server"BorderStyle="Solid"BorderWidth="1px"Width="400px"
Font-Size="Small"CssClass="labelBox"></asp:Label></ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
<tr>
<td>
<asp:UpdatePanelID="UpdatePanel4"runat="server">
<ContentTemplate>
<asp:PanelID="PanelSpecies"runat="server"BackColor="Silver"BorderStyle="None">
<asp:GridViewID="GridView_Species"runat="server"AllowPaging="True"AutoGenerateColumns="False"
Height="100%"Width="100%"CellSpacing="2"ForeColor="#333333"GridLines="None"
PageSize="12"OnPageIndexChanging="GridView_Species_PageIndexChanging"OnRowCommand="GridView_Species_RowCommand"
AllowSorting="True"OnSorting="GridView_Species_Sorting"EmptyDataText="No matching records found"
EmptyDataRowStyle-HorizontalAlign="Center"EmptyDataRowStyle-Font-Bold="True"
EmptyDataRowStyle-ForeColor="White"EmptyDataRowStyle-BackColor="#5D7B9D">
<AlternatingRowStyleBackColor="White"ForeColor="#284775"/>
<Columns>
<asp:ButtonFieldButtonType="Image"ImageUrl="~/Images/pan.gif">
<HeaderStyleHorizontalAlign="Center"/>
<ItemStyleBorderStyle="Outset"Font-Bold="True"Height="5px"Width="5px"/>
</asp:ButtonField>
<asp:TemplateFieldVisible="false">
<ItemTemplate>
<asp:LabelID="Label5"runat="server"Text='<%# Eval("DESCRIPTION")%>'Visible="false"></asp:Label></ItemTemplate>
<ControlStyleWidth="0px"/>
<HeaderStyleWidth="0px"/>
<ItemStyleWidth="0px"/>
</asp:TemplateField>
<asp:BoundFieldHeaderText="Sp.Code"DataField="AK$SPECIES"SortExpression="AK$SPECIES">
<HeaderStyleFont-Bold="True"Height="8px"HorizontalAlign="Center"/>
<ItemStyleHeight="10px"/>
</asp:BoundField>
<asp:BoundFieldHeaderText="Size"DataField="SPECIES_SIZE"SortExpression="SPECIES_SIZE">
<HeaderStyleFont-Bold="True"HorizontalAlign="Center"/>
<ItemStyleHeight="10px"/>
</asp:BoundField>
<asp:BoundFieldHeaderText="Grade"DataField="GRADE"SortExpression="GRADE">
<HeaderStyleFont-Bold="True"HorizontalAlign="Center"/>
<ItemStyleHeight="10px"/>
</asp:BoundField>
<asp:BoundFieldHeaderText="Amt.Catch"DataField="WEIGHT_IN_POUNDS"SortExpression="WEIGHT_IN_POUNDS">
<HeaderStyleFont-Bold="True"HorizontalAlign="Center"/>
<ItemStyleHeight="10px"/>
</asp:BoundField>
<asp:BoundFieldHeaderText="UnitPrice"DataField="UNIT_PRICE"DataFormatString="{0:C3}"
SortExpression="UNIT_PRICE">
<HeaderStyleFont-Bold="True"HorizontalAlign="Center"/>
<ItemStyleHeight="10px"/>
</asp:BoundField>
<asp:BoundFieldHeaderText="$Value"DataField="DollarValue"DataFormatString="{0:C2}"
SortExpression="DollarValue">
<HeaderStyleFont-Bold="True"HorizontalAlign="Center"/>
<ItemStyleHeight="10px"/>
</asp:BoundField>
<asp:BoundFieldHeaderText="Disp"DataField="DISPOSITION"SortExpression="DISPOSITION">
<HeaderStyleFont-Bold="True"HorizontalAlign="Center"/>
<ItemStyleHeight="10px"/>
</asp:BoundField>
<asp:BoundFieldHeaderText="Err.Ind"DataField="ERROR_IND"SortExpression="ERROR_IND">
<HeaderStyleFont-Bold="True"HorizontalAlign="Center"/>
<ItemStyleHeight="10px"/>
</asp:BoundField>
</Columns>
<EditRowStyleBackColor="#999999"/>
<FooterStyleBackColor="#5D7B9D"Font-Bold="True"ForeColor="White"/>
<HeaderStyleBackColor="#5D7B9D"Font-Bold="True"ForeColor="White"/>
<PagerStyleBackColor="#284775"ForeColor="White"HorizontalAlign="Center"/>
<RowStyleBackColor="#F7F6F3"ForeColor="#333333"/>
<SelectedRowStyleBackColor="#E2DED6"Font-Bold="True"ForeColor="#333333"/>
</asp:GridView>
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br/>
</ContentTemplate>
</cc1:TabPanel>
<cc1:TabPanelID="TabPanelBrowse"runat="server"HeaderText="Browse">
<ContentTemplate>
<br/>
<tablewidth="100%"border="1">
<tralign="center">
<tdheight="30"valign="middle">
<asp:LabelID="Label4"runat="server"Text="Trip Ticket Browse Screen"BorderStyle="Ridge"
BorderWidth="2px"ForeColor="#3F74B4"Font-Bold="True"></asp:Label>
</td>
</tr>
<tralign="center">
<td>
<asp:PanelID="PanelBrowse"runat="server">
<asp:UpdatePanelID="UpdatePanel2"runat="server"UpdateMode="Conditional">
<ContentTemplate>
<asp:GridViewID="GridView_Browse"runat="server"AllowPaging="True"AutoGenerateColumns="False"
Height="100%"Width="100%"CellSpacing="2"ForeColor="#333333"GridLines="None"
PageSize="15"OnPageIndexChanging="GridView_Browse_PageIndexChanging"AllowSorting="True"
OnSorting="GridView_Browse_Sorting"EnableSortingAndPagingCallbacks="True"OnSelectedIndexChanging="GridView_Browse_SelectedIndexChanging"
OnRowDataBound="GridView_Browse_RowDataBound"EmptyDataText="No matching records found"
EmptyDataRowStyle-BackColor="#5D7B9D"EmptyDataRowStyle-Font-Bold="True"EmptyDataRowStyle-ForeColor="White"
EmptyDataRowStyle-HorizontalAlign="Center"SelectedRowStyle-BackColor="#E2DED6">
<FooterStyleBackColor="#5D7B9D"Font-Bold="True"ForeColor="White"/>
<AlternatingRowStyleBackColor="White"ForeColor="#284775"/>
<Columns>
<asp:TemplateFieldVisible="false">
<ItemTemplate>
<asp:LabelID="Label6"runat="server"Text='<%# Eval("PK$TRIP_TICKET")%>'Visible="false"></asp:Label></ItemTemplate>
<ControlStyleWidth="0px"/>
<HeaderStyleWidth="0px"/>
<ItemStyleWidth="0px"/>
</asp:TemplateField>
<asp:BoundFieldHeaderText="Batch"DataField="BATCH"SortExpression="BATCH">
<HeaderStyleFont-Bold="True"HorizontalAlign="Center"Height="8px"/>
<ItemStyleBorderStyle="Solid"BorderWidth="1px"/>
</asp:BoundField>
<asp:BoundFieldHeaderText="Invoice"DataField="INVOICE"SortExpression="INVOICE">
<HeaderStyleFont-Bold="True"HorizontalAlign="Center"/>
<ItemStyleBorderStyle="Solid"BorderWidth="1px"/>
</asp:BoundField>
<asp:BoundFieldHeaderText="Cont"DataField="CONTINUATION_IND"SortExpression="CONTINUATION_IND">
<HeaderStyleFont-Bold="True"HorizontalAlign="Center"/>
<ItemStyleBorderStyle="Solid"BorderWidth="1px"/>
</asp:BoundField>
<asp:BoundFieldHeaderText="Upload Date"DataField="TRIP_DATE"SortExpression="TRIP_DATE">
<HeaderStyleFont-Bold="True"HorizontalAlign="Center"/>
<ItemStyleBorderStyle="Solid"BorderWidth="1px"/>
</asp:BoundField>
<asp:BoundFieldHeaderText="SPL No"DataField="SPL_NO"SortExpression="SPL_NO">
<HeaderStyleFont-Bold="True"HorizontalAlign="Center"/>
<ItemStyleBorderStyle="Solid"BorderWidth="1px"/>
</asp:BoundField>
<asp:BoundFieldHeaderText="VesselId"DataField="VESSEL_ID"SortExpression="VESSEL_ID">
<HeaderStyleFont-Bold="True"HorizontalAlign="Center"/>
<ItemStyleBorderStyle="Solid"BorderWidth="1px"Font-Bold="True"/>
</asp:BoundField>
<asp:BoundFieldHeaderText="Dealer"DataField="AK$DEALER"SortExpression="AK$DEALER">
<HeaderStyleFont-Bold="True"HorizontalAlign="Center"/>
<ItemStyleBorderStyle="Solid"BorderWidth="1px"/>
</asp:BoundField>
<asp:BoundFieldHeaderText="County"DataField="AK$MRIS_COUNTY"SortExpression="AK$MRIS_COUNTY">
<HeaderStyleFont-Bold="True"HorizontalAlign="Center"/>
<ItemStyleBorderStyle="Solid"BorderWidth="1px"/>
</asp:BoundField>
<asp:BoundFieldHeaderText="Area"DataField="AK$MRIS_AREA"SortExpression="AK$MRIS_AREA">
<HeaderStyleFont-Bold="True"HorizontalAlign="Center"/>
<ItemStyleBorderStyle="Solid"BorderWidth="1px"/>
</asp:BoundField>
<asp:BoundFieldDataField="DEPTH"HeaderText="Depth"SortExpression="DEPTH">
<HeaderStyleFont-Bold="True"HorizontalAlign="Center"/>
<ItemStyleBorderStyle="Solid"BorderWidth="1px"/>
</asp:BoundField>
<asp:TemplateFieldShowHeader="False">
<ItemTemplate>
<asp:ButtonID="btnSelect"runat="server"CausesValidation="False"CommandName="Select"
Text="Select"/></ItemTemplate>
</asp:TemplateField>
</Columns>
<EditRowStyleBackColor="#999999"/>
<HeaderStyleBackColor="#5D7B9D"Font-Bold="True"ForeColor="White"/>
<PagerStyleBackColor="#284775"ForeColor="White"HorizontalAlign="Center"/>
<RowStyleBackColor="#F7F6F3"ForeColor="#333333"/>
<SelectedRowStyleBackColor="#E2DED6"Font-Bold="True"ForeColor="#333333"/>
</asp:GridView>
</ContentTemplate>
</asp:UpdatePanel>
</asp:Panel>
</td>
</tr>
</table>
<br/>
</ContentTemplate>
</cc1:TabPanel>
<cc1:TabPanelID="TabPanelQuery"runat="server"HeaderText="Query">
<ContentTemplate>
<br/>
<asp:PanelID="Panel1"runat="server"Height="460px"Width="100%"BorderStyle="Double"
BorderWidth="1px"CssClass="tabPanel">
<br/>
<asp:PanelID="Panel2"runat="server"Height="21px"Style="margin-left: 0px"Width="250px"
CssClass="tabPanel"BorderColor="Gray"BorderStyle="Double"BorderWidth="1px"
ForeColor="#336699">
Trip Ticket Query Screen</asp:Panel>
<br/>
<asp:PanelID="Panel3"runat="server"CssClass="tabPanel"Height="381px"BorderStyle="Double"
BorderWidth="1px"Width="744px">
<br/>
<asp:PanelID="Panel5"runat="server"CssClass="tabPanel"Height="145px"BorderStyle="Double"
BorderWidth="1px"Width="680px"BorderColor="Gray">
<tablestyle="width: 682px; height: 150px">
<tr>
<tdalign="right">
Batch:
</td>
<tdalign="left">
<asp:TextBoxID="txtBatch2"runat="server"Width="50px"MaxLength="6"></asp:TextBox>
</td>
<tdalign="right">
Unloading Date:
</td>
<tdalign="left">
<asp:TextBoxID="txtUploadingDate2"runat="server"Width="80px"></asp:TextBox>
</td>
<tdalign="right">
Species Code:
</td>
<tdalign="left">
<asp:TextBoxID="txtSpeciesCode"runat="server"Height="22px"Width="50px"MaxLength="4"></asp:TextBox><asp:RegularExpressionValidator
ID="RegularExpressionValidator12"runat="server"ControlToValidate="txtSpeciesCode"
ErrorMessage="RegularExpressionValidator"ValidationExpression="^[0-9]+$">*</asp:RegularExpressionValidator>
</td>
</tr>
<tr>
<tdalign="right">
Dealer:
</td>
<tdalign="left">
<asp:TextBoxID="txtDealer2"runat="server"Width="90px"MaxLength="9"></asp:TextBox>
</td>
<tdalign="right">
SPL No:
</td>
<tdalign="left">
<asp:TextBoxID="txtSPLNo2"runat="server"MaxLength="9"Width="90px"></asp:TextBox>
</td>
<tdalign="right">
Species Size:
</td>
<tdalign="left">
<asp:TextBoxID="txtSpeciesSize"runat="server"MaxLength="8"Width="70px"></asp:TextBox>
</td>
</tr>
<tr>
<tdalign="right">
Area Fished:
</td>
<tdalign="left">
<asp:TextBoxID="txtAreaFished2"runat="server"MaxLength="5"Width="50px"></asp:TextBox>
</td>
<tdalign="right">
SPL Exp:
</td>
<tdalign="left">
<asp:TextBoxID="txtSLPExp2"runat="server"MaxLength="10"Width="80px"></asp:TextBox>
</td>
<tdalign="right">
Grade:
</td>
<tdalign="left">
<asp:TextBoxID="txtGrade"runat="server"Width="35px"></asp:TextBox>
</td>
</tr>
<tr>
<tdalign="right">
Vessel Id:
</td>
<tdalign="left">
<asp:TextBoxID="txtVesselId2"runat="server"MaxLength="9"></asp:TextBox>
</td>
<tdalign="right">
County:
</td>
<tdalign="left">
<asp:TextBoxID="txtCounty2"runat="server"MaxLength="3"Width="35px"></asp:TextBox>
</td>
<tdalign="right">
Unit Price:
</td>
<tdalign="left">
<asp:TextBoxID="txtUnitPrice"runat="server"MaxLength="8"Width="70px"></asp:TextBox>
</td>
</tr>
</table>
</asp:Panel>
<br/>
<br/>
<asp:PanelID="Panel4"runat="server"CssClass="tabPanel"Height="146px"BorderStyle="Double"
BorderWidth="1px"Width="680px"BorderColor="Gray">
<br/>
<tablestyle="width: 647px; height: 105px">
<tr>
<tdalign="left">
<asp:CheckBoxID="checkPurse2"runat="server"Text="Purse"/>
</td>
<tdalign="left">
<asp:CheckBoxID="checkHaul2"runat="server"Text="Haul"/>
</td>
<tdalign="left">
<asp:CheckBoxID="checkLongline2"runat="server"Text="Longline"/>
</td>
<tdalign="left">
<asp:CheckBoxID="checkHL2"runat="server"Text="HL"/>
</td>
<tdalign="left">
<asp:CheckBoxID="checkTraps2"runat="server"Text="Traps"/>
</td>
<tdalign="left">
<asp:CheckBoxID="checkTrawl2"runat="server"Text="Trawl"/>
</td>
</tr>
<tr>
<tdalign="left">
<asp:CheckBoxID="checkGill2"runat="server"Text="Gill"/>
</td>
<tdalign="left">
<asp:CheckBoxID="checkTrammel2"runat="server"Text="Trammel"/>
</td>
<tdalign="left">
<asp:CheckBoxID="checkCast2"runat="server"Text="Cast"/>
</td>
<tdalign="left">
<asp:CheckBoxID="checkBandit2"runat="server"Text="Bandit"/>
</td>
<tdalign="left">
<asp:CheckBoxID="checkHeadBoat2"runat="server"Text="Head Boat"/>
</td>
<tdalign="left">
<asp:CheckBoxID="checkGuide2"runat="server"Text="Guide"/>
</td>
</tr>
<tr>
<tdalign="left">
<asp:CheckBoxID="checkCharter2"runat="server"Text="Charter"/>
</td>
<tdalign="left">
<asp:CheckBoxID="checkAquaculture2"runat="server"Text="Aquaculture"/>
</td>
<tdcolspan="1"align="right">
Other:
</td>
<tdcolspan="3"align="left"valign="middle">
<asp:TextBoxID="txtOther2"runat="server"Width="100px"></asp:TextBox><asp:RegularExpressionValidator
ID="RegularExpressionValidator13"runat="server"ControlToValidate="txtOther2"
ErrorMessage="*"ValidationExpression="^\d+$"></asp:RegularExpressionValidator>
</td>
</tr>
</table>
</asp:Panel>
</asp:Panel>
</asp:Panel>
</ContentTemplate>
</cc1:TabPanel>
</cc1:TabContainer>
</td>
</tr>
<tr>
<tdalign="center"colspan="2">
<asp:UpdateProgressID="UpdateProgress1"runat="server">
<ProgressTemplate>
<divclass="styleWaitMessage">
<imgsrc="../Images/spinner3-bluey.gif"/>
Processing ... Wait, please.
</div>
</ProgressTemplate>
</asp:UpdateProgress>
</td>
</tr>
<tr>
<tdalign="center"colspan="2">
<asp:LabelID="messageResult"runat="server"Font-Bold="True"Visible="False"ForeColor="#3366CC"></asp:Label>
</td>
</tr>
<tr>
<tdalign="center"colspan="2">
</td>
</tr>
</table>
</asp:Content>
|
|
 |