ANY Suggestions Welcome!
Excuse the amount of text here, I don’t usually include a full page of code to support my questions, but for the last week I've spent 75% of each day trying to fix my ASP.NET app. This is my first ASP.NET app, and at this rate, I’m not getting very far at all. Please offer any suggestions you can think of as to why my app seems to have a mind of it’s own... all the problem seem to have no cause that I can find and most disappear as suddenly as they start (but they stick around for hours).
Every day has been similar to today, so I’m using today as my example…
Today I simply changed the font size (10pt to 8pt) and family (Arial to Verdana) in the style attribute for a table and put some comments in my code-behind page (VB.NET) and now I'm getting a “Server Application Unavailable” message when I try to view the pages... the server log simply says it terminated the connection because "there was no requests for 180 seconds" ... the pages won't even come up at all. There doesn’t seem to be anything wrong with the server as I’ve put test pages on it and they display fine. I’ve also rebooted my development PC figuring what the heck, can’t hurt.
Both my dev PC and the server are Win2k, I’m using VS.NET and the server is IIS5. The HTML view for the page causing all this trouble is below. It was working fine this morning (with the exception of the dropdownlists selected text displaying in the grid when I hit the add button)
Thank you!!!!
JG
The Code Behind page looks like this. . .
Excuse the amount of text here, I don’t usually include a full page of code to support my questions, but for the last week I've spent 75% of each day trying to fix my ASP.NET app. This is my first ASP.NET app, and at this rate, I’m not getting very far at all. Please offer any suggestions you can think of as to why my app seems to have a mind of it’s own... all the problem seem to have no cause that I can find and most disappear as suddenly as they start (but they stick around for hours).
Every day has been similar to today, so I’m using today as my example…
Today I simply changed the font size (10pt to 8pt) and family (Arial to Verdana) in the style attribute for a table and put some comments in my code-behind page (VB.NET) and now I'm getting a “Server Application Unavailable” message when I try to view the pages... the server log simply says it terminated the connection because "there was no requests for 180 seconds" ... the pages won't even come up at all. There doesn’t seem to be anything wrong with the server as I’ve put test pages on it and they display fine. I’ve also rebooted my development PC figuring what the heck, can’t hurt.
Both my dev PC and the server are Win2k, I’m using VS.NET and the server is IIS5. The HTML view for the page causing all this trouble is below. It was working fine this morning (with the exception of the dropdownlists selected text displaying in the grid when I hit the add button)
Thank you!!!!
JG
Code:
<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Fields_include.aspx.vb" Inherits="QS.fields_include"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Search Criteria Tab</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=[URL unfurl="true"]http://schemas.microsoft.com/intellisense/ie5[/URL] name=vs_targetSchema>
</HEAD>
<BODY MS_POSITIONING="GridLayout">
<FORM id=SCForm runat="server" method="post">
<TABLE cellSpacing=0 cellPadding=5 width="100%" border=0>
<TR>
<TD vAlign=top noWrap width="35%"><!-- #include file="SC_options.aspx --></TD>
<TD vAlign=top noWrap width="5%"> </TD>
<TD vAlign=top width="40%">
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0 Style="FONT-SIZE: 8pt; FONT-FAMILY: Verdana">
<TR>
<TD align=middle bgColor=#cccccc colSpan=3 height=25>
<!-- Display Associated Title -->
<B>
<%If optCat01.Checked = True Then %>
File# / Serial# / Grant#
<%ElseIf optCat02.Checked = True Then %>
Attorney
<%ElseIf optCat03.Checked = True Then %>
Patent Counsel
<%ElseIf optCat04.Checked = True Then %>
Events
<%ElseIf optCat05.Checked = True Then %>
Program
<%ElseIf optCat06.Checked = True Then %>
Title
<%ElseIf optCat07.Checked = True Then %>
Inventor
<%ElseIf optCat08.Checked = True Then %>
Budget Center
<%ElseIf optCat09.Checked = True Then %>
Organization
<%ElseIf optCat10.Checked = True Then %>
Technical Category
<%ElseIf optCat11.Checked = True Then %>
Foreign Agent
<%End IF%>
</B>
</TD>
</TR>
<TR><TD align=middle colSpan=3 height=10> <!-- Spacer --></TD></TR>
<%'Begin Criteria Input Fields %>
<%If optCat01.Checked = True Then%>
<TR>
<TD noWrap align=right>Grant #: </TD>
<TD width="3%"></TD>
<TD><INPUT id=Grant type=text maxLength=20 size=20 name=Grant></TD>
</TR><TR>
<TD noWrap align=right>File #: </TD>
<TD width="3%"></TD>
<TD><INPUT type=text maxLength=20 size=20 name=File id=File></TD>
</TR><TR>
<TD noWrap align=right>Type: </TD>
<TD width="3%"></TD>
<TD><ASP:DROPDOWNLIST id=lstType runat="server" DataValueField="CODTYP" datatextfield="LIBTGB"></ASP:DROPDOWNLIST></TD>
</TR>
<%ElseIf optCat02.Checked = True Then %>
<TR>
<TD noWrap align=right>Attorney: </TD>
<TD width="3%"> </TD>
<TD><INPUT type=text maxLength=4 size=20 name=Attorney id=Attorney></TD>
</TR>
<%ElseIf optCat03.Checked = True Then %>
<TR>
<TD noWrap align=right>Manager: </TD>
<TD width="3%"></TD>
<TD><ASP:DROPDOWNLIST id=lstManager runat="server" DataValueField="IDEPAY" datatextfield="LIBPGB"></ASP:DROPDOWNLIST></TD>
</TR>
<%ElseIf optCat04.Checked = True Then %>
<TR>
<TD noWrap align=right>Event: </TD>
<TD width="3%"></TD>
<TD><INPUT type=text maxLength=20 size=20 name=Ent id=Ent></TD>
</TR>
<%ElseIf optCat05.Checked = True Then %>
<TR>
<TD noWrap align=right>Program: </TD>
<TD width="3%"></TD>
<TD><INPUT type=text maxLength=20 size=20 name=Program id=Program></TD>
</TR>
<%ElseIf optCat06.Checked = True Then %>
<TR>
<TD noWrap align=right>Title: </TD>
<TD width="3%"></TD>
<TD><INPUT type=text maxLength=20 size=20 name=Title></TD>
</TR>
<%ElseIf optCat07.Checked = True Then %>
<TR>
<TD noWrap align=right>Last Name: </TD>
<TD width="3%"></TD>
<TD><INPUT type=text maxLength=20 size=20 name=LName></TD>
</TR><TR>
<TD noWrap align=right>First Name: </TD>
<TD width="3%"></TD>
<TD><INPUT type=text maxLength=20 size=20 name=Fname></TD>
</TR>
<%End If%>
<%If (optCat01.Checked = True) OR (optCat02.Checked = True) OR (optCat03.Checked = True) OR (optCat04.Checked = True) OR (optCat05.Checked = True) OR (optCat06.Checked = True) OR (optCat07.Checked = True) Then %>
<TR>
<TD noWrap align=right width="40%">Country: </TD>
<TD width="3%"></TD>
<TD width="57%"><ASP:DROPDOWNLIST id=lstCountry runat="server" DataValueField="IDEPAY" datatextfield="LIBPGB"></ASP:DROPDOWNLIST></TD>
</TR>
<%End IF%>
<%If optCat01.Checked = True Then %>
<TR>
<TD noWrap align=right>Application #: </TD>
<TD width="3%"></TD>
<TD><INPUT type=text maxLength=20 size=20 name=AppNum></TD>
</TR><TR>
<TD noWrap align=right>Internal Ref #: </TD>
<TD width="3%"></TD>
<TD><INPUT type=text maxLength=20 size=20 name=IRNum></TD>
</TR><TR>
<TD noWrap align=right>Outside Counsel Ref #: </TD>
<TD width="3%"></TD>
<TD><INPUT type=text maxLength=20 size=20 name=OCNum></TD>
</TR><TR>
<TD noWrap align=right>Aquired Ref #: </TD>
<TD width="3%"></TD>
<TD><INPUT type=text maxLength=20 size=20 name=AqRNum></TD>
</TR><TR>
<TD noWrap align=right>Agent Ref #: </TD>
<TD width="3%"></TD>
<TD><INPUT type=text maxLength=20 size=20 name=ARNum></TD>
</TR><TR>
<TD noWrap align=right STYLE="HEIGHT: 21px">Agent Country: </TD>
<TD width="3%" STYLE="HEIGHT: 21px"></TD>
<TD STYLE="HEIGHT: 21px"><ASP:DROPDOWNLIST id=ARcountry runat="server" DataValueField="IDEPAY" datatextfield="LIBPGB"></ASP:DROPDOWNLIST></TD>
</TR>
<%ElseIf optCat08.Checked = True Then %>
<TR>
<TD noWrap align=right width="40%">Budget Center: </TD>
<TD width="3%"></TD>
<TD width="55%"><ASP:DROPDOWNLIST id=lstBC runat="server" DataValueField="IDEPAY" datatextfield="LIBPGB"></ASP:DROPDOWNLIST></TD>
</TR>
<%ElseIf optCat09.Checked = True Then %>
<TR>
<TD noWrap align=right width="40%">Org: </TD>
<TD width="3%"></TD>
<TD width="55%"><ASP:DROPDOWNLIST id=lstOrg runat="server" DataValueField="IDEPAY" datatextfield="LIBPGB"></ASP:DROPDOWNLIST></TD>
</TR>
<%ElseIf optCat10.Checked = True Then %>
<TR>
<TD noWrap align=right width="40%">Tech Cat: </TD>
<TD width="3%"></TD>
<TD width="55%"><ASP:DROPDOWNLIST id=lstTC runat="server" DataValueField="CODTYP" datatextfield="LIBTGB"></ASP:DROPDOWNLIST></TD>
</TR>
<%ElseIf optCat11.Checked = True Then %>
<TR>
<TD noWrap align=right width="40%">Agent: </TD>
<TD width="3%"></TD>
<TD width="55%"><ASP:DROPDOWNLIST id=lstAgent runat="server" DataValueField="CODTYP" datatextfield="LIBTGB"></ASP:DROPDOWNLIST></TD>
</TR>
<%End If%>
<TR>
<TD align=middle colSpan=3 height=10 > </TD></TR>
<TR>
<TD align=middle colSpan=3 height=40>
<ASP:BUTTON id=cmdAdd runat="server" Text="Add Criteria" CommandName="AddCriteria"></ASP:BUTTON>
</TD>
</TR>
<%' End Criteria Fields %>
</TABLE>
<%' End Inner Table %>
</TD>
</TR><TR>
<TD align=middle colSpan=3>
<TABLE border=0 cellpadding=0 cellspacing=0 width="90%">
<TR>
<TD><SMALL><B>SEARCH CRITERIA:</B></SMALL></TD>
<TD align=right><ASP:BUTTON id="cmdDelete" style="FONT-SIZE: 7pt; FONT-FAMILY: Verdana; LETTER-SPACING: 1pt" runat="server" Text="Delete Criteria" CommandName="removeCriteria"></ASP:BUTTON></TD>
</TR>
<TR>
<TD colspan=2 align=middle>
<ASP:DATAGRID id=dgCriteria runat="server"
BorderColor="black"
BorderWidth="1"
CellPadding="3"
Font-Name="Verdana"
Font-Size="8pt"
Width="100%">
<HEADERSTYLE BACKCOLOR="#cccccc" FONT-NAME="Verdana" FONT-SIZE="10pt"></HEADERSTYLE>
</ASP:DATAGRID>
<!--
AutoGenerateColumns="false"
OnEditCommand="dgCriteria_Edit"
OnCancelCommand="dgCriteria_Cancel"
OnUpdateCommand="dgCriteria_Update"
-->
</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</FORM>
</BODY>
</HTML>
The Code Behind page looks like this. . .
Code:
Public Class fields_include
Inherits System.Web.UI.Page
Protected WithEvents lstType As System.Web.UI.WebControls.DropDownList
Protected WithEvents lstCountry As System.Web.UI.WebControls.DropDownList
Protected WithEvents ARcountry As System.Web.UI.WebControls.DropDownList
Protected WithEvents lstManager As System.Web.UI.WebControls.DropDownList
Protected WithEvents lstOrg As System.Web.UI.WebControls.DropDownList
Protected WithEvents lstBC As System.Web.UI.WebControls.DropDownList
Protected WithEvents lstTC As System.Web.UI.WebControls.DropDownList
Protected WithEvents lstAgent As System.Web.UI.WebControls.DropDownList
Protected WithEvents Grant As System.Web.UI.WebControls.TextBox
Protected WithEvents FileNum As System.Web.UI.WebControls.TextBox
Protected WithEvents AppNum As System.Web.UI.WebControls.TextBox
Protected WithEvents IRNum As System.Web.UI.WebControls.TextBox
Protected WithEvents OCNum As System.Web.UI.WebControls.TextBox
Protected WithEvents AqRNum As System.Web.UI.WebControls.TextBox
Protected WithEvents ARNum As System.Web.UI.WebControls.TextBox
Protected WithEvents optCat01 As System.Web.UI.WebControls.RadioButton
Protected WithEvents optCat02 As System.Web.UI.WebControls.RadioButton
Protected WithEvents optCat03 As System.Web.UI.WebControls.RadioButton
Protected WithEvents optCat04 As System.Web.UI.WebControls.RadioButton
Protected WithEvents optCat05 As System.Web.UI.WebControls.RadioButton
Protected WithEvents optCat06 As System.Web.UI.WebControls.RadioButton
Protected WithEvents optCat07 As System.Web.UI.WebControls.RadioButton
Protected WithEvents optCat08 As System.Web.UI.WebControls.RadioButton
Protected WithEvents optCat09 As System.Web.UI.WebControls.RadioButton
Protected WithEvents optCat10 As System.Web.UI.WebControls.RadioButton
Protected WithEvents optCat11 As System.Web.UI.WebControls.RadioButton
Protected WithEvents dgCriteria As System.Web.UI.WebControls.DataGrid
Protected WithEvents cmdDelete As System.Web.UI.WebControls.Button
Protected WithEvents cmdAdd As System.Web.UI.WebControls.Button
#Region " Web Form Designer Generated Code "
'This call is required by the Web Form Designer.
<System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
End Sub
Private Sub Page_Init(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Init
'CODEGEN: This method call is required by the Web Form Designer
'Do not modify it using the code editor.
InitializeComponent()
End Sub
#End Region
Dim dGrid As DataTable
Dim dGridView As DataView
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
'Put user code to initialize the page here
'Create database connections for dropdown lists
Dim strConn As String = "Provider=OraOLEDB.Oracle.1;Persist Security Info=False;User ID=xeroxpat;password=xeroxpat;Data Source=QuickSearch;"
Dim Conn As System.Data.OleDb.OleDbConnection = New System.Data.OleDb.OleDbConnection(strConn)
Dim strSQL As String
Dim Cmd As System.Data.OleDb.OleDbCommand
If Not (optCat08.Checked Or optCat09.Checked Or optCat10.Checked Or optCat11.Checked) Then
strSQL = "SELECT 0 as IDEPAY, ' ' as LIBPGB from dual union SELECT IDEPAY, LIBPGB FROM TABPAY ORDER BY 2"
Cmd = New System.Data.OleDb.OleDbCommand(strSQL, Conn)
Conn.Open()
lstCountry.DataSource = Cmd.ExecuteReader(System.Data.CommandBehavior.Default)
lstCountry.DataBind()
Conn.Close()
End If
If optCat01.Checked = True Then
strSQL = "SELECT 0 AS IDEPAY, ' ' AS LIBPGB FROM Dual Union SELECT IDEPAY, LIBPGB FROM TABPAY ORDER BY 2"
Cmd = New System.Data.OleDb.OleDbCommand(strSQL, Conn)
Conn.Open()
ARcountry.DataSource = Cmd.ExecuteReader(System.Data.CommandBehavior.CloseConnection)
ARcountry.DataBind()
Conn.Close()
strSQL = "SELECT Null as CODTYP, ' ' as LIBTGB from dual union SELECT CODTYP, LIBTGB FROM TABTYP ORDER BY 2"
Cmd = New System.Data.OleDb.OleDbCommand(strSQL, Conn)
Conn.Open()
lstType.DataSource = Cmd.ExecuteReader(System.Data.CommandBehavior.CloseConnection)
lstType.DataBind()
Conn.Close()
ElseIf optCat03.Checked = True Then
strSQL = "SELECT 0 AS IDEPAY, ' ' AS LIBPGB FROM Dual Union SELECT IDEPAY, LIBPGB FROM TABPAY ORDER BY 2"
Cmd = New System.Data.OleDb.OleDbCommand(strSQL, Conn)
Conn.Open()
lstManager.DataSource = Cmd.ExecuteReader(System.Data.CommandBehavior.CloseConnection)
lstManager.DataBind()
Conn.Close()
ElseIf optCat08.Checked = True Then
strSQL = "SELECT 0 AS IDEPAY, ' ' AS LIBPGB FROM Dual Union SELECT IDEPAY, LIBPGB FROM TABPAY ORDER BY 2"
Cmd = New System.Data.OleDb.OleDbCommand(strSQL, Conn)
Conn.Open()
lstBC.DataSource = Cmd.ExecuteReader(System.Data.CommandBehavior.CloseConnection)
lstBC.DataBind()
Conn.Close()
ElseIf optCat09.Checked = True Then
strSQL = "SELECT 0 AS IDEPAY, ' ' AS LIBPGB FROM Dual Union SELECT IDEPAY, LIBPGB FROM TABPAY ORDER BY 2"
Cmd = New System.Data.OleDb.OleDbCommand(strSQL, Conn)
Conn.Open()
lstOrg.DataSource = Cmd.ExecuteReader(System.Data.CommandBehavior.CloseConnection)
lstOrg.DataBind()
Conn.Close()
ElseIf optCat10.Checked = True Then
strSQL = "SELECT Null as CODTYP, ' ' as LIBTGB from dual union SELECT CODTYP, LIBTGB FROM TABTYP ORDER BY 2"
Cmd = New System.Data.OleDb.OleDbCommand(strSQL, Conn)
Conn.Open()
lstTC.DataSource = Cmd.ExecuteReader(System.Data.CommandBehavior.CloseConnection)
lstTC.DataBind()
Conn.Close()
ElseIf optCat11.Checked = True Then
strSQL = "SELECT Null as CODTYP, ' ' as LIBTGB from dual union SELECT CODTYP, LIBTGB FROM TABTYP ORDER BY 2"
Cmd = New System.Data.OleDb.OleDbCommand(strSQL, Conn)
Conn.Open()
lstAgent.DataSource = Cmd.ExecuteReader(System.Data.CommandBehavior.CloseConnection)
lstAgent.DataBind()
Conn.Close()
End If
'Create Search Criteria Grid
If Session("Scriteria") Is Nothing Then
dGrid = New DataTable()
dGrid.Columns.Add(New DataColumn("Field", GetType(String)))
dGrid.Columns.Add(New DataColumn("Op", GetType(String)))
dGrid.Columns.Add(New DataColumn("Value", GetType(String)))
Session("Scriteria") = dGrid
Else
dGrid = CType(Session("Scriteria"), DataTable)
End If
dGridView = New DataView(dGrid)
dgCriteria.DataSource = dGridView
dgCriteria.DataBind()
End Sub
Private Sub cmdAdd_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles cmdAdd.Click
Dim scRow As DataRow
Dim boo As String = "<SELECT Name='"
Dim boo2 As String = "' SIZE=1><OPTION VALUE='AND'>AND</OPTION><OPTION VALUE='OR'>OR</OPTION></SELECT>"
If optCat01.Checked = True Then
If Request("Grant") <> "" Then 'Grant #: Grant
scRow = dGrid.NewRow()
scRow("Field") = "Grant #"
scRow("Op") = boo & "opGrant" & boo2
scRow("Value") = Request("Grant")
dGrid.Rows.Add(scRow)
dGridView = New DataView(dGrid)
dgCriteria.DataSource = dGridView
dgCriteria.DataBind()
End If
If Request("File") <> "" Then 'File #: File
scRow = dGrid.NewRow()
scRow("Field") = "File #"
scRow("Op") = boo & "opFile" & boo2
scRow("Value") = Request("File")
dGrid.Rows.Add(scRow)
dGridView = New DataView(dGrid)
dgCriteria.DataSource = dGridView
dgCriteria.DataBind()
End If
If Request("AppNum") <> "" Then 'Application #: AppNum
scRow = dGrid.NewRow()
scRow("Field") = "Application #"
scRow("Op") = boo & "opAppNum" & boo2
scRow("Value") = Request("AppNum")
dGrid.Rows.Add(scRow)
dGridView = New DataView(dGrid)
dgCriteria.DataSource = dGridView
dgCriteria.DataBind()
End If
If Request("IRNum") <> "" Then 'Internal Ref #: IRNum
scRow = dGrid.NewRow()
scRow("Field") = "Internal Ref #"
scRow("Op") = boo & "opIRNum" & boo2
scRow("Value") = Request("IRNum")
dGrid.Rows.Add(scRow)
dGridView = New DataView(dGrid)
dgCriteria.DataSource = dGridView
dgCriteria.DataBind()
End If
If Request("OCNum") <> "" Then 'Outside Counsel Ref #: OCNum
scRow = dGrid.NewRow()
scRow("Field") = "Outside Counsel Ref #"
scRow("Op") = boo & "opOCNum" & boo2
scRow("Value") = Request("OCNum")
dGrid.Rows.Add(scRow)
dGridView = New DataView(dGrid)
dgCriteria.DataSource = dGridView
dgCriteria.DataBind()
End If
If Request("AqRNum") <> "" Then 'Aquired Ref #: AqRNum
scRow = dGrid.NewRow()
scRow("Field") = "Aquired Ref #"
scRow("Op") = boo & "opAqRNum" & boo2
scRow("Value") = Request("AqRNum")
dGrid.Rows.Add(scRow)
dGridView = New DataView(dGrid)
dgCriteria.DataSource = dGridView
dgCriteria.DataBind()
End If
If Request("ARNum") <> "" Then 'Agent Ref #: ARNum
scRow = dGrid.NewRow()
scRow("Field") = "Agent Ref #"
scRow("Op") = boo & "opARNum" & boo2
scRow("Value") = Request("ARNum")
dGrid.Rows.Add(scRow)
dGridView = New DataView(dGrid)
dgCriteria.DataSource = dGridView
dgCriteria.DataBind()
End If
If (lstType.SelectedItem.Text <> " ") Then 'Type: lstType (DropDownList)
scRow = dGrid.NewRow()
scRow("Field") = "Type"
scRow("Op") = boo & "oplstType" & boo2
scRow("Value") = lstType.SelectedItem.Text
dGrid.Rows.Add(scRow)
dGridView = New DataView(dGrid)
dgCriteria.DataSource = dGridView
dgCriteria.DataBind()
End If
If lstCountry.SelectedItem.Text <> " " Then 'Country: lstCountry (DropDownList)
scRow = dGrid.NewRow()
scRow("Field") = "Country"
scRow("Op") = boo & "opCountry" & boo2
scRow("Value") = lstCountry.SelectedItem.Text
dGrid.Rows.Add(scRow)
dGridView = New DataView(dGrid)
dgCriteria.DataSource = dGridView
dgCriteria.DataBind()
End If
If ARcountry.SelectedItem.Text <> " " Then 'Agent Country: ARcountry (DropDownList)
scRow = dGrid.NewRow()
scRow("Field") = "Agent Country"
scRow("Op") = boo & "opARcountry" & boo2
scRow("Value") = ARcountry.SelectedItem.Text
dGrid.Rows.Add(scRow)
dGridView = New DataView(dGrid)
dgCriteria.DataSource = dGridView
dgCriteria.DataBind()
End If
ElseIf optCat02.Checked = True Then
If Request("Attorney") <> "" Then 'Attorney: Attorney
scRow = dGrid.NewRow()
scRow("Field") = "Attorney"
scRow("Op") = boo & "opAttorney" & boo2
scRow("Value") = Request("Attorney")
dGrid.Rows.Add(scRow)
dGridView = New DataView(dGrid)
dgCriteria.DataSource = dGridView
dgCriteria.DataBind()
End If
'Country: lstCountry DropDownList
ElseIf optCat03.Checked = True Then
'Manager: lstManager DropDownList
'Country: lstCountry DropDownList
ElseIf optCat04.Checked = True Then
If Request("Ent") <> "" Then 'Event: Ent
scRow = dGrid.NewRow()
scRow("Field") = "Event"
scRow("Op") = boo & "opEvent" & boo2
scRow("Value") = Request("Ent")
dGrid.Rows.Add(scRow)
dGridView = New DataView(dGrid)
dgCriteria.DataSource = dGridView
dgCriteria.DataBind()
End If
'Country: lstCountry DropDownList
ElseIf optCat05.Checked = True Then
'Program: Program
'Country: lstCountry DropDownList
ElseIf optCat06.Checked = True Then
'Title: Title
'Country: lstCountry DropDownList
ElseIf optCat07.Checked = True Then
'Last Name: Lname
'First Name: Fname
'Country: lstCountry DropDownList
ElseIf optCat08.Checked = True Then
'Budget Center: lstBC DropDownList
ElseIf optCat09.Checked = True Then
'Org: lstOrg DropDownList
ElseIf optCat10.Checked = True Then
'Tech Cat: lstTC DropDownList
ElseIf optCat11.Checked = True Then
'Agent: lstAgent DropDownList
End If
End Sub
Private Sub cmdDelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdDelete.Click
'Delete Criteria -- my whiteboard area
'InstalledFonts.Items.Remove(InstalledFonts.SelectedItem.Value)
'Dim dr As DataRow = dGrid.NewRow()
'Dim scRow As DataRow
'scRow("Value") = ARcountry.SelectedItem.Text
'dGrid.Rows.Add(scRow)
'dGrid.Rows.Remove( )
'dGridView = New DataView(dGrid)
'dgCriteria.DataSource = dGridView
'dgCriteria.DataBind()
End Sub
End Class