GridView Event OnDataBound error CS0123: No overload for 'GV1_OnDataBound' matches delegate 'System.EventHandler'

Last post 08-28-2008 11:49 AM by ecbruck. 3 replies.

Sort Posts:

  • GridView Event OnDataBound error CS0123: No overload for 'GV1_OnDataBound' matches delegate 'System.EventHandler'

    08-28-2008, 11:14 AM
    • Member
      171 point Member
    • cdell
    • Member since 04-04-2008, 6:43 PM
    • UF
    • Posts 183

    I have a gridview within this gridview (GV1) so I'm using the OnDataBound event to fill the second gridview per the unique identifier in the first gridview.  I added the event handler in the properties tab, so I figured everything would work. 

    I'm using VS2005 with C#.  Thanks in advance.  Heres my code, followed by the error:

     

     

    <asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1"  AutoGenerateColumns="false" OnDataBound="GV1_OnDataBound">
        <Columns>
        <asp:BoundField DataField="DEM_ID" HeaderText="Dem ID" />
        <asp:BoundField  DataField="CITY" HeaderText="City" />
        <asp:BoundField DataField="STATE" HeaderText="State" />
        <asp:BoundField DataField="ZIPCODE" HeaderText="Zip Code" />
        <asp:BoundField DataField="Lang" HeaderText="Language" />
        <asp:BoundField DataField="Gender" HeaderText="Gender" />
        <asp:BoundField DataField="AgeGroup" HeaderText="AgeGroup" />
        <asp:BoundField DataField="RACE" HeaderText="Race" />
        <asp:BoundField DataField="EducLevel" HeaderText="Education" />
        <asp:BoundField DataField="Income" HeaderText="Income" />
        <asp:TemplateField HeaderText="NRT Used">
          <ItemTemplate>
            <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="false">
                 <Columns>
                      <asp:BoundField DataField="NRT" HeaderStyle-Height="0px" HeaderText="" />
                 </Columns>
            </asp:GridView>
          </ItemTemplate>
        </asp:TemplateField>
        
        </Columns>
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:csAHECData %>"
            SelectCommand="SELECT [DEM_ID], [CITY], [STATE], [ZIPCODE], [COUNTY], [Lang], [Gender], [AgeGroup], [RACE], [EducLevel], [Income] FROM [Demog]">
        </asp:SqlDataSource>

     

    protected void GV1_OnDataBound(object sender, GridViewRowEventArgs e)
        {
            if ( e.Row.RowType == DataControlRowType.DataRow )
            {
                SqlConnection SqlCon2 = new SqlConnection(ConfigurationManager.ConnectionStrings["csAHECData"].ConnectionString);
    
                SqlCommand SqlCom2;
    
                int DemID = Convert.ToInt32(DataBinder.Eval(e.Row.DataItem, "DEM_ID"));
    
    
    
                GridView GridView2 = (GridView)e.Row.FindControl("GridView2");
    
                SqlCom2 = new SqlCommand("SELECT NRT from Demog_NRT WHERE DEM_ID = " + DemID, SqlCon2);
    
                if (SqlCon2.State != ConnectionState.Open)
                {
    
                    SqlCon2.Open();
    
                }
    
                GridView2.DataSource = SqlCom2.ExecuteReader();
    
                GridView2.DataBind();
    
                SqlCon2.Close();
            }
        }
      

     

     

     

    Server Error in '/tobacco' Application.

    Compilation Error

    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: CS0123: No overload for 'GV1_OnDataBound' matches delegate 'System.EventHandler'

    Source Error:

    Line 8:      <br />
    Line 9:      <br />
    Line 10:     <asp:GridView ID="GridView1" runat="server" DataSourceID="SqlDataSource1"  AutoGenerateColumns="false" OnDataBound="GV1_OnDataBound">
    Line 11:     <Columns>
    Line 12:     <asp:BoundField DataField="DEM_ID" HeaderText="Dem ID" />

    Source File: c:\Inetpub\wwwroot\tobacco\crystal.aspx    Line: 10



    C:\WINDOWS\system32> "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\csc.exe" /t:library /utf8output /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tobacco\fd416429\8ab72eac\App_Web_tnyubatf.dll" /R:"C:\WINDOWS\assembly\GAC\CrystalDecisions.Enterprise.Desktop.Report\10.2.3600.0__692fbea5521e1304\CrystalDecisions.Enterprise.Desktop.Report.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tobacco\fd416429\8ab72eac\assembly\dl3\3f72a6b5\00525c54_7a4fc801\AjaxDataControls.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel\3.0.0.0__b77a5c561934e089\System.ServiceModel.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Runtime.Serialization\3.0.0.0__b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.ReportAppServer.ClientDoc\10.2.3600.0__692fbea5521e1304\CrystalDecisions.ReportAppServer.ClientDoc.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tobacco\fd416429\8ab72eac\assembly\dl3\8c9beed2\0086c46c_3526c801\App_Licenses.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceProcess\2.0.0.0__b03f5f7f11d50a3a\System.ServiceProcess.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Core\3.5.0.0__b77a5c561934e089\System.Core.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.Shared\10.2.3600.0__692fbea5521e1304\CrystalDecisions.Shared.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.Web\10.2.3600.0__692fbea5521e1304\CrystalDecisions.Web.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.EnterpriseServices\2.0.0.0__b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.ReportSource\10.2.3600.0__692fbea5521e1304\CrystalDecisions.ReportSource.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Web\2.0.0.0__b03f5f7f11d50a3a\System.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.ServiceModel.Web\3.5.0.0__31bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Extensions.Design\1.0.61025.0__31bf3856ad364e35\System.Web.Extensions.Design.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Services\2.0.0.0__b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.DirectoryServices\2.0.0.0__b03f5f7f11d50a3a\System.DirectoryServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.WorkflowServices\3.5.0.0__31bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tobacco\fd416429\8ab72eac\assembly\dl3\1f268e49\ab6a1bf9_fea9c801\AjaxControlToolkit.DLL" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Data.Linq\3.5.0.0__b77a5c561934e089\System.Data.Linq.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tobacco\fd416429\8ab72eac\App_Code.88o1q67n.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\System.Design.dll" /R:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tobacco\fd416429\8ab72eac\App_global.asax.cnv4qb7w.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Configuration\2.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.DirectoryServices.Protocols\2.0.0.0__b03f5f7f11d50a3a\System.DirectoryServices.Protocols.dll" /R:"C:\WINDOWS\assembly\GAC\CrystalDecisions.Enterprise.Framework\10.2.3600.0__692fbea5521e1304\CrystalDecisions.Enterprise.Framework.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.RegularExpressions\2.0.0.0__b03f5f7f11d50a3a\System.Web.RegularExpressions.dll" /R:"C:\WINDOWS\assembly\GAC\CrystalDecisions.Enterprise.InfoStore\10.2.3600.0__692fbea5521e1304\CrystalDecisions.Enterprise.InfoStore.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\CrystalDecisions.CrystalReports.Engine\10.2.3600.0__692fbea5521e1304\CrystalDecisions.CrystalReports.Engine.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Web.Mobile\2.0.0.0__b03f5f7f11d50a3a\System.Web.Mobile.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll" /R:"C:\WINDOWS\assembly\GAC_MSIL\System.IdentityModel\3.0.0.0__b77a5c561934e089\System.IdentityModel.dll" /R:"C:\WINDOWS\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll" /out:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tobacco\fd416429\8ab72eac\App_Web_k0ylwhw_.dll" /D:DEBUG /debug+ /optimize- /win32res:"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tobacco\fd416429\8ab72eac\k0ylwhw_.res" /w:4 /nowarn:1659;1699;1701  "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tobacco\fd416429\8ab72eac\App_Web_k0ylwhw_.3.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tobacco\fd416429\8ab72eac\App_Web_k0ylwhw_.14.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tobacco\fd416429\8ab72eac\App_Web_k0ylwhw_.2.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tobacco\fd416429\8ab72eac\App_Web_k0ylwhw_.12.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tobacco\fd416429\8ab72eac\App_Web_k0ylwhw_.13.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tobacco\fd416429\8ab72eac\App_Web_k0ylwhw_.5.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tobacco\fd416429\8ab72eac\App_Web_k0ylwhw_.9.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tobacco\fd416429\8ab72eac\App_Web_k0ylwhw_.4.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tobacco\fd416429\8ab72eac\App_Web_k0ylwhw_.8.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tobacco\fd416429\8ab72eac\App_Web_k0ylwhw_.7.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tobacco\fd416429\8ab72eac\App_Web_k0ylwhw_.6.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tobacco\fd416429\8ab72eac\App_Web_k0ylwhw_.10.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tobacco\fd416429\8ab72eac\App_Web_k0ylwhw_.1.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tobacco\fd416429\8ab72eac\App_Web_k0ylwhw_.0.cs" "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\tobacco\fd416429\8ab72eac\App_Web_k0ylwhw_.11.cs"
    
    
    Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.1433
    for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
    Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.
    
    c:\Inetpub\wwwroot\tobacco\crystal3.aspx.cs(21,7): warning CS0105: The using directive for 'CrystalDecisions.Shared' appeared previously in this namespace
    c:\Inetpub\wwwroot\tobacco\crystal.aspx(10,34): error CS0123: No overload for 'GV1_OnDataBound' matches delegate 'System.EventHandler'
    c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll: (Location of symbol related to previous error)
    c:\Inetpub\wwwroot\tobacco\crystal.aspx.cs(40,20): (Location of symbol related to previous error)
    


     


    Line 1:    #pragma checksum "C:\Inetpub\wwwroot\tobacco\crystal.aspx" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "712829075266FA36B0D4CE3022148AC3"
    Line 2:    //------------------------------------------------------------------------------
    Line 3:    // <auto-generated>
    Line 4:    //     This code was generated by a tool.
    Line 5:    //     Runtime Version:2.0.50727.1433
    Line 6:    //
    Line 7:    //     Changes to this file may cause incorrect behavior and will be lost if
    Line 8:    //     the code is regenerated.
    Line 9:    // </auto-generated>
    Line 10:   //------------------------------------------------------------------------------
    Line 11:   
    Line 12:   
    Line 13:   
    Line 14:   public partial class crystal : System.Web.SessionState.IRequiresSessionState {
    Line 15:       
    Line 16:       
    Line 17:       #line 6 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 18:       protected global::System.Web.UI.WebControls.Panel Panel1;
    Line 19:       
    Line 20:       #line default
    Line 21:       #line hidden
    Line 22:       
    Line 23:       
    Line 24:       #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 25:       protected global::System.Web.UI.WebControls.GridView GridView1;
    Line 26:       
    Line 27:       #line default
    Line 28:       #line hidden
    Line 29:       
    Line 30:       
    Line 31:       #line 32 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 32:       protected global::System.Web.UI.WebControls.SqlDataSource SqlDataSource1;
    Line 33:       
    Line 34:       #line default
    Line 35:       #line hidden
    Line 36:       
    Line 37:       
    Line 38:       #line 35 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 39:       protected global::System.Web.UI.WebControls.Button Button1;
    Line 40:       
    Line 41:       #line default
    Line 42:       #line hidden
    Line 43:       
    Line 44:       
    Line 45:       #line 36 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 46:       protected global::System.Web.UI.WebControls.Button Button2;
    Line 47:       
    Line 48:       #line default
    Line 49:       #line hidden
    Line 50:       
    Line 51:       protected System.Web.Profile.DefaultProfile Profile {
    Line 52:           get {
    Line 53:               return ((System.Web.Profile.DefaultProfile)(this.Context.Profile));
    Line 54:           }
    Line 55:       }
    Line 56:       
    Line 57:       protected ASP.global_asax ApplicationInstance {
    Line 58:           get {
    Line 59:               return ((ASP.global_asax)(this.Context.ApplicationInstance));
    Line 60:           }
    Line 61:       }
    Line 62:   }
    Line 63:   namespace ASP {
    Line 64:       
    Line 65:       #line 265 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
    Line 66:       using System.Web.Security;
    Line 67:       
    Line 68:       #line default
    Line 69:       #line hidden
    Line 70:       
    Line 71:       #line 262 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
    Line 72:       using System.Web;
    Line 73:       
    Line 74:       #line default
    Line 75:       #line hidden
    Line 76:       
    Line 77:       #line 264 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
    Line 78:       using System.Web.SessionState;
    Line 79:       
    Line 80:       #line default
    Line 81:       #line hidden
    Line 82:       
    Line 83:       #line 3 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 84:       using CrystalDecisions.Web;
    Line 85:       
    Line 86:       #line default
    Line 87:       #line hidden
    Line 88:       
    Line 89:       #line 5 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 90:       using System.Web.UI.WebControls;
    Line 91:       
    Line 92:       #line default
    Line 93:       #line hidden
    Line 94:       
    Line 95:       #line 266 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
    Line 96:       using System.Web.Profile;
    Line 97:       
    Line 98:       #line default
    Line 99:       #line hidden
    Line 100:      
    Line 101:      #line 257 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
    Line 102:      using System.Collections;
    Line 103:      
    Line 104:      #line default
    Line 105:      #line hidden
    Line 106:      
    Line 107:      #line 5 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 108:      using System.Web.UI.WebControls.WebParts;
    Line 109:      
    Line 110:      #line default
    Line 111:      #line hidden
    Line 112:      
    Line 113:      #line 260 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
    Line 114:      using System.Text;
    Line 115:      
    Line 116:      #line default
    Line 117:      #line hidden
    Line 118:      
    Line 119:      #line 259 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
    Line 120:      using System.Configuration;
    Line 121:      
    Line 122:      #line default
    Line 123:      #line hidden
    Line 124:      
    Line 125:      #line 256 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
    Line 126:      using System;
    Line 127:      
    Line 128:      #line default
    Line 129:      #line hidden
    Line 130:      
    Line 131:      #line 1 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 132:      using ASP;
    Line 133:      
    Line 134:      #line default
    Line 135:      #line hidden
    Line 136:      
    Line 137:      #line 263 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
    Line 138:      using System.Web.Caching;
    Line 139:      
    Line 140:      #line default
    Line 141:      #line hidden
    Line 142:      
    Line 143:      #line 5 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 144:      using System.Web.UI;
    Line 145:      
    Line 146:      #line default
    Line 147:      #line hidden
    Line 148:      
    Line 149:      #line 258 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
    Line 150:      using System.Collections.Specialized;
    Line 151:      
    Line 152:      #line default
    Line 153:      #line hidden
    Line 154:      
    Line 155:      #line 261 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
    Line 156:      using System.Text.RegularExpressions;
    Line 157:      
    Line 158:      #line default
    Line 159:      #line hidden
    Line 160:      
    Line 161:      #line 270 "C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\web.config"
    Line 162:      using System.Web.UI.HtmlControls;
    Line 163:      
    Line 164:      #line default
    Line 165:      #line hidden
    Line 166:      
    Line 167:      
    Line 168:      [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
    Line 169:      public class crystal_aspx : global::crystal, System.Web.IHttpHandler {
    Line 170:          
    Line 171:          private static bool @__initialized;
    Line 172:          
    Line 173:          private static object @__stringResource;
    Line 174:          
    Line 175:          private static object @__fileDependencies;
    Line 176:          
    Line 177:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 178:          public crystal_aspx() {
    Line 179:              string[] dependencies;
    Line 180:              
    Line 181:              #line 912304 "C:\Inetpub\wwwroot\tobacco\crystal.aspx.cs"
    Line 182:              ((global::System.Web.UI.Page)(this)).AppRelativeVirtualPath = "~/crystal.aspx";
    Line 183:              
    Line 184:              #line default
    Line 185:              #line hidden
    Line 186:              if ((global::ASP.crystal_aspx.@__initialized == false)) {
    Line 187:                  global::ASP.crystal_aspx.@__stringResource = this.ReadStringResource();
    Line 188:                  dependencies = new string[8];
    Line 189:                  dependencies[0] = "~/crystal.aspx";
    Line 190:                  dependencies[1] = "~/Default.master";
    Line 191:                  dependencies[2] = "~/usercontrols/Menu1Items.ascx";
    Line 192:                  dependencies[3] = "~/usercontrols/Menu2Items.ascx";
    Line 193:                  dependencies[4] = "~/usercontrols/Menu3Items.ascx";
    Line 194:                  dependencies[5] = "~/usercontrols/Menu4Items.ascx";
    Line 195:                  dependencies[6] = "~/usercontrols/menuMSNThemes.ascx";
    Line 196:                  dependencies[7] = "~/crystal.aspx.cs";
    Line 197:                  global::ASP.crystal_aspx.@__fileDependencies = this.GetWrappedFileDependencies(dependencies);
    Line 198:                  global::ASP.crystal_aspx.@__initialized = true;
    Line 199:              }
    Line 200:              this.Server.ScriptTimeout = 30000000;
    Line 201:          }
    Line 202:          
    Line 203:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 204:          private global::System.Web.UI.WebControls.Panel @__BuildControlPanel1() {
    Line 205:              global::System.Web.UI.WebControls.Panel @__ctrl;
    Line 206:              
    Line 207:              #line 6 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 208:              @__ctrl = new global::System.Web.UI.WebControls.Panel();
    Line 209:              
    Line 210:              #line default
    Line 211:              #line hidden
    Line 212:              this.Panel1 = @__ctrl;
    Line 213:              @__ctrl.TemplateControl = this;
    Line 214:              @__ctrl.ApplyStyleSheetSkin(this);
    Line 215:              
    Line 216:              #line 6 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 217:              @__ctrl.ID = "Panel1";
    Line 218:              
    Line 219:              #line default
    Line 220:              #line hidden
    Line 221:              
    Line 222:              #line 6 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 223:              @__ctrl.Height = new System.Web.UI.WebControls.Unit(163, System.Web.UI.WebControls.UnitType.Pixel);
    Line 224:              
    Line 225:              #line default
    Line 226:              #line hidden
    Line 227:              
    Line 228:              #line 6 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 229:              @__ctrl.Width = new System.Web.UI.WebControls.Unit(428, System.Web.UI.WebControls.UnitType.Pixel);
    Line 230:              
    Line 231:              #line default
    Line 232:              #line hidden
    Line 233:              System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
    Line 234:              
    Line 235:              #line 6 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 236:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n    "));
    Line 237:              
    Line 238:              #line default
    Line 239:              #line hidden
    Line 240:              return @__ctrl;
    Line 241:          }
    Line 242:          
    Line 243:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 244:          private global::System.Web.UI.WebControls.BoundField @__BuildControl__control3() {
    Line 245:              global::System.Web.UI.WebControls.BoundField @__ctrl;
    Line 246:              
    Line 247:              #line 12 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 248:              @__ctrl = new global::System.Web.UI.WebControls.BoundField();
    Line 249:              
    Line 250:              #line default
    Line 251:              #line hidden
    Line 252:              
    Line 253:              #line 12 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 254:              @__ctrl.DataField = "DEM_ID";
    Line 255:              
    Line 256:              #line default
    Line 257:              #line hidden
    Line 258:              
    Line 259:              #line 12 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 260:              @__ctrl.HeaderText = "Dem ID";
    Line 261:              
    Line 262:              #line default
    Line 263:              #line hidden
    Line 264:              return @__ctrl;
    Line 265:          }
    Line 266:          
    Line 267:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 268:          private global::System.Web.UI.WebControls.BoundField @__BuildControl__control4() {
    Line 269:              global::System.Web.UI.WebControls.BoundField @__ctrl;
    Line 270:              
    Line 271:              #line 13 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 272:              @__ctrl = new global::System.Web.UI.WebControls.BoundField();
    Line 273:              
    Line 274:              #line default
    Line 275:              #line hidden
    Line 276:              
    Line 277:              #line 13 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 278:              @__ctrl.DataField = "CITY";
    Line 279:              
    Line 280:              #line default
    Line 281:              #line hidden
    Line 282:              
    Line 283:              #line 13 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 284:              @__ctrl.HeaderText = "City";
    Line 285:              
    Line 286:              #line default
    Line 287:              #line hidden
    Line 288:              return @__ctrl;
    Line 289:          }
    Line 290:          
    Line 291:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 292:          private global::System.Web.UI.WebControls.BoundField @__BuildControl__control5() {
    Line 293:              global::System.Web.UI.WebControls.BoundField @__ctrl;
    Line 294:              
    Line 295:              #line 14 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 296:              @__ctrl = new global::System.Web.UI.WebControls.BoundField();
    Line 297:              
    Line 298:              #line default
    Line 299:              #line hidden
    Line 300:              
    Line 301:              #line 14 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 302:              @__ctrl.DataField = "STATE";
    Line 303:              
    Line 304:              #line default
    Line 305:              #line hidden
    Line 306:              
    Line 307:              #line 14 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 308:              @__ctrl.HeaderText = "State";
    Line 309:              
    Line 310:              #line default
    Line 311:              #line hidden
    Line 312:              return @__ctrl;
    Line 313:          }
    Line 314:          
    Line 315:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 316:          private global::System.Web.UI.WebControls.BoundField @__BuildControl__control6() {
    Line 317:              global::System.Web.UI.WebControls.BoundField @__ctrl;
    Line 318:              
    Line 319:              #line 15 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 320:              @__ctrl = new global::System.Web.UI.WebControls.BoundField();
    Line 321:              
    Line 322:              #line default
    Line 323:              #line hidden
    Line 324:              
    Line 325:              #line 15 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 326:              @__ctrl.DataField = "ZIPCODE";
    Line 327:              
    Line 328:              #line default
    Line 329:              #line hidden
    Line 330:              
    Line 331:              #line 15 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 332:              @__ctrl.HeaderText = "Zip Code";
    Line 333:              
    Line 334:              #line default
    Line 335:              #line hidden
    Line 336:              return @__ctrl;
    Line 337:          }
    Line 338:          
    Line 339:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 340:          private global::System.Web.UI.WebControls.BoundField @__BuildControl__control7() {
    Line 341:              global::System.Web.UI.WebControls.BoundField @__ctrl;
    Line 342:              
    Line 343:              #line 16 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 344:              @__ctrl = new global::System.Web.UI.WebControls.BoundField();
    Line 345:              
    Line 346:              #line default
    Line 347:              #line hidden
    Line 348:              
    Line 349:              #line 16 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 350:              @__ctrl.DataField = "Lang";
    Line 351:              
    Line 352:              #line default
    Line 353:              #line hidden
    Line 354:              
    Line 355:              #line 16 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 356:              @__ctrl.HeaderText = "Language";
    Line 357:              
    Line 358:              #line default
    Line 359:              #line hidden
    Line 360:              return @__ctrl;
    Line 361:          }
    Line 362:          
    Line 363:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 364:          private global::System.Web.UI.WebControls.BoundField @__BuildControl__control8() {
    Line 365:              global::System.Web.UI.WebControls.BoundField @__ctrl;
    Line 366:              
    Line 367:              #line 17 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 368:              @__ctrl = new global::System.Web.UI.WebControls.BoundField();
    Line 369:              
    Line 370:              #line default
    Line 371:              #line hidden
    Line 372:              
    Line 373:              #line 17 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 374:              @__ctrl.DataField = "Gender";
    Line 375:              
    Line 376:              #line default
    Line 377:              #line hidden
    Line 378:              
    Line 379:              #line 17 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 380:              @__ctrl.HeaderText = "Gender";
    Line 381:              
    Line 382:              #line default
    Line 383:              #line hidden
    Line 384:              return @__ctrl;
    Line 385:          }
    Line 386:          
    Line 387:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 388:          private global::System.Web.UI.WebControls.BoundField @__BuildControl__control9() {
    Line 389:              global::System.Web.UI.WebControls.BoundField @__ctrl;
    Line 390:              
    Line 391:              #line 18 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 392:              @__ctrl = new global::System.Web.UI.WebControls.BoundField();
    Line 393:              
    Line 394:              #line default
    Line 395:              #line hidden
    Line 396:              
    Line 397:              #line 18 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 398:              @__ctrl.DataField = "AgeGroup";
    Line 399:              
    Line 400:              #line default
    Line 401:              #line hidden
    Line 402:              
    Line 403:              #line 18 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 404:              @__ctrl.HeaderText = "AgeGroup";
    Line 405:              
    Line 406:              #line default
    Line 407:              #line hidden
    Line 408:              return @__ctrl;
    Line 409:          }
    Line 410:          
    Line 411:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 412:          private global::System.Web.UI.WebControls.BoundField @__BuildControl__control10() {
    Line 413:              global::System.Web.UI.WebControls.BoundField @__ctrl;
    Line 414:              
    Line 415:              #line 19 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 416:              @__ctrl = new global::System.Web.UI.WebControls.BoundField();
    Line 417:              
    Line 418:              #line default
    Line 419:              #line hidden
    Line 420:              
    Line 421:              #line 19 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 422:              @__ctrl.DataField = "RACE";
    Line 423:              
    Line 424:              #line default
    Line 425:              #line hidden
    Line 426:              
    Line 427:              #line 19 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 428:              @__ctrl.HeaderText = "Race";
    Line 429:              
    Line 430:              #line default
    Line 431:              #line hidden
    Line 432:              return @__ctrl;
    Line 433:          }
    Line 434:          
    Line 435:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 436:          private global::System.Web.UI.WebControls.BoundField @__BuildControl__control11() {
    Line 437:              global::System.Web.UI.WebControls.BoundField @__ctrl;
    Line 438:              
    Line 439:              #line 20 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 440:              @__ctrl = new global::System.Web.UI.WebControls.BoundField();
    Line 441:              
    Line 442:              #line default
    Line 443:              #line hidden
    Line 444:              
    Line 445:              #line 20 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 446:              @__ctrl.DataField = "EducLevel";
    Line 447:              
    Line 448:              #line default
    Line 449:              #line hidden
    Line 450:              
    Line 451:              #line 20 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 452:              @__ctrl.HeaderText = "Education";
    Line 453:              
    Line 454:              #line default
    Line 455:              #line hidden
    Line 456:              return @__ctrl;
    Line 457:          }
    Line 458:          
    Line 459:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 460:          private global::System.Web.UI.WebControls.BoundField @__BuildControl__control12() {
    Line 461:              global::System.Web.UI.WebControls.BoundField @__ctrl;
    Line 462:              
    Line 463:              #line 21 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 464:              @__ctrl = new global::System.Web.UI.WebControls.BoundField();
    Line 465:              
    Line 466:              #line default
    Line 467:              #line hidden
    Line 468:              
    Line 469:              #line 21 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 470:              @__ctrl.DataField = "Income";
    Line 471:              
    Line 472:              #line default
    Line 473:              #line hidden
    Line 474:              
    Line 475:              #line 21 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 476:              @__ctrl.HeaderText = "Income";
    Line 477:              
    Line 478:              #line default
    Line 479:              #line hidden
    Line 480:              return @__ctrl;
    Line 481:          }
    Line 482:          
    Line 483:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 484:          private global::System.Web.UI.WebControls.BoundField @__BuildControl__control17() {
    Line 485:              global::System.Web.UI.WebControls.BoundField @__ctrl;
    Line 486:              
    Line 487:              #line 25 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 488:              @__ctrl = new global::System.Web.UI.WebControls.BoundField();
    Line 489:              
    Line 490:              #line default
    Line 491:              #line hidden
    Line 492:              
    Line 493:              #line 25 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 494:              @__ctrl.DataField = "NRT";
    Line 495:              
    Line 496:              #line default
    Line 497:              #line hidden
    Line 498:              
    Line 499:              #line 25 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 500:              @__ctrl.HeaderStyle.Height = new System.Web.UI.WebControls.Unit(0, System.Web.UI.WebControls.UnitType.Pixel);
    Line 501:              
    Line 502:              #line default
    Line 503:              #line hidden
    Line 504:              
    Line 505:              #line 25 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 506:              @__ctrl.HeaderText = "";
    Line 507:              
    Line 508:              #line default
    Line 509:              #line hidden
    Line 510:              return @__ctrl;
    Line 511:          }
    Line 512:          
    Line 513:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 514:          private void @__BuildControl__control16(System.Web.UI.WebControls.DataControlFieldCollection @__ctrl) {
    Line 515:              global::System.Web.UI.WebControls.BoundField @__ctrl1;
    Line 516:              
    Line 517:              #line 23 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 518:              @__ctrl1 = this.@__BuildControl__control17();
    Line 519:              
    Line 520:              #line default
    Line 521:              #line hidden
    Line 522:              
    Line 523:              #line 23 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 524:              @__ctrl.Add(@__ctrl1);
    Line 525:              
    Line 526:              #line default
    Line 527:              #line hidden
    Line 528:          }
    Line 529:          
    Line 530:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 531:          private global::System.Web.UI.WebControls.GridView @__BuildControl__control15() {
    Line 532:              global::System.Web.UI.WebControls.GridView @__ctrl;
    Line 533:              
    Line 534:              #line 23 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 535:              @__ctrl = new global::System.Web.UI.WebControls.GridView();
    Line 536:              
    Line 537:              #line default
    Line 538:              #line hidden
    Line 539:              @__ctrl.TemplateControl = this;
    Line 540:              @__ctrl.ApplyStyleSheetSkin(this);
    Line 541:              
    Line 542:              #line 23 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 543:              @__ctrl.ID = "GridView2";
    Line 544:              
    Line 545:              #line default
    Line 546:              #line hidden
    Line 547:              
    Line 548:              #line 23 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 549:              @__ctrl.AutoGenerateColumns = false;
    Line 550:              
    Line 551:              #line default
    Line 552:              #line hidden
    Line 553:              
    Line 554:              #line 23 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 555:              this.@__BuildControl__control16(@__ctrl.Columns);
    Line 556:              
    Line 557:              #line default
    Line 558:              #line hidden
    Line 559:              return @__ctrl;
    Line 560:          }
    Line 561:          
    Line 562:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 563:          private void @__BuildControl__control14(System.Web.UI.Control @__ctrl) {
    Line 564:              System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
    Line 565:              
    Line 566:              #line 22 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 567:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n        "));
    Line 568:              
    Line 569:              #line default
    Line 570:              #line hidden
    Line 571:              global::System.Web.UI.WebControls.GridView @__ctrl1;
    Line 572:              
    Line 573:              #line 22 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 574:              @__ctrl1 = this.@__BuildControl__control15();
    Line 575:              
    Line 576:              #line default
    Line 577:              #line hidden
    Line 578:              
    Line 579:              #line 22 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 580:              @__parser.AddParsedSubObject(@__ctrl1);
    Line 581:              
    Line 582:              #line default
    Line 583:              #line hidden
    Line 584:          }
    Line 585:          
    Line 586:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 587:          private global::System.Web.UI.WebControls.TemplateField @__BuildControl__control13() {
    Line 588:              global::System.Web.UI.WebControls.TemplateField @__ctrl;
    Line 589:              
    Line 590:              #line 22 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 591:              @__ctrl = new global::System.Web.UI.WebControls.TemplateField();
    Line 592:              
    Line 593:              #line default
    Line 594:              #line hidden
    Line 595:              
    Line 596:              #line 22 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 597:              @__ctrl.ItemTemplate = new System.Web.UI.CompiledBindableTemplateBuilder(new System.Web.UI.BuildTemplateMethod(this.@__BuildControl__control14), null);
    Line 598:              
    Line 599:              #line default
    Line 600:              #line hidden
    Line 601:              
    Line 602:              #line 22 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 603:              @__ctrl.HeaderText = "NRT Used";
    Line 604:              
    Line 605:              #line default
    Line 606:              #line hidden
    Line 607:              return @__ctrl;
    Line 608:          }
    Line 609:          
    Line 610:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 611:          private void @__BuildControl__control2(System.Web.UI.WebControls.DataControlFieldCollection @__ctrl) {
    Line 612:              global::System.Web.UI.WebControls.BoundField @__ctrl1;
    Line 613:              
    Line 614:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 615:              @__ctrl1 = this.@__BuildControl__control3();
    Line 616:              
    Line 617:              #line default
    Line 618:              #line hidden
    Line 619:              
    Line 620:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 621:              @__ctrl.Add(@__ctrl1);
    Line 622:              
    Line 623:              #line default
    Line 624:              #line hidden
    Line 625:              global::System.Web.UI.WebControls.BoundField @__ctrl2;
    Line 626:              
    Line 627:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 628:              @__ctrl2 = this.@__BuildControl__control4();
    Line 629:              
    Line 630:              #line default
    Line 631:              #line hidden
    Line 632:              
    Line 633:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 634:              @__ctrl.Add(@__ctrl2);
    Line 635:              
    Line 636:              #line default
    Line 637:              #line hidden
    Line 638:              global::System.Web.UI.WebControls.BoundField @__ctrl3;
    Line 639:              
    Line 640:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 641:              @__ctrl3 = this.@__BuildControl__control5();
    Line 642:              
    Line 643:              #line default
    Line 644:              #line hidden
    Line 645:              
    Line 646:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 647:              @__ctrl.Add(@__ctrl3);
    Line 648:              
    Line 649:              #line default
    Line 650:              #line hidden
    Line 651:              global::System.Web.UI.WebControls.BoundField @__ctrl4;
    Line 652:              
    Line 653:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 654:              @__ctrl4 = this.@__BuildControl__control6();
    Line 655:              
    Line 656:              #line default
    Line 657:              #line hidden
    Line 658:              
    Line 659:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 660:              @__ctrl.Add(@__ctrl4);
    Line 661:              
    Line 662:              #line default
    Line 663:              #line hidden
    Line 664:              global::System.Web.UI.WebControls.BoundField @__ctrl5;
    Line 665:              
    Line 666:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 667:              @__ctrl5 = this.@__BuildControl__control7();
    Line 668:              
    Line 669:              #line default
    Line 670:              #line hidden
    Line 671:              
    Line 672:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 673:              @__ctrl.Add(@__ctrl5);
    Line 674:              
    Line 675:              #line default
    Line 676:              #line hidden
    Line 677:              global::System.Web.UI.WebControls.BoundField @__ctrl6;
    Line 678:              
    Line 679:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 680:              @__ctrl6 = this.@__BuildControl__control8();
    Line 681:              
    Line 682:              #line default
    Line 683:              #line hidden
    Line 684:              
    Line 685:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 686:              @__ctrl.Add(@__ctrl6);
    Line 687:              
    Line 688:              #line default
    Line 689:              #line hidden
    Line 690:              global::System.Web.UI.WebControls.BoundField @__ctrl7;
    Line 691:              
    Line 692:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 693:              @__ctrl7 = this.@__BuildControl__control9();
    Line 694:              
    Line 695:              #line default
    Line 696:              #line hidden
    Line 697:              
    Line 698:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 699:              @__ctrl.Add(@__ctrl7);
    Line 700:              
    Line 701:              #line default
    Line 702:              #line hidden
    Line 703:              global::System.Web.UI.WebControls.BoundField @__ctrl8;
    Line 704:              
    Line 705:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 706:              @__ctrl8 = this.@__BuildControl__control10();
    Line 707:              
    Line 708:              #line default
    Line 709:              #line hidden
    Line 710:              
    Line 711:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 712:              @__ctrl.Add(@__ctrl8);
    Line 713:              
    Line 714:              #line default
    Line 715:              #line hidden
    Line 716:              global::System.Web.UI.WebControls.BoundField @__ctrl9;
    Line 717:              
    Line 718:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 719:              @__ctrl9 = this.@__BuildControl__control11();
    Line 720:              
    Line 721:              #line default
    Line 722:              #line hidden
    Line 723:              
    Line 724:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 725:              @__ctrl.Add(@__ctrl9);
    Line 726:              
    Line 727:              #line default
    Line 728:              #line hidden
    Line 729:              global::System.Web.UI.WebControls.BoundField @__ctrl10;
    Line 730:              
    Line 731:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 732:              @__ctrl10 = this.@__BuildControl__control12();
    Line 733:              
    Line 734:              #line default
    Line 735:              #line hidden
    Line 736:              
    Line 737:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 738:              @__ctrl.Add(@__ctrl10);
    Line 739:              
    Line 740:              #line default
    Line 741:              #line hidden
    Line 742:              global::System.Web.UI.WebControls.TemplateField @__ctrl11;
    Line 743:              
    Line 744:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 745:              @__ctrl11 = this.@__BuildControl__control13();
    Line 746:              
    Line 747:              #line default
    Line 748:              #line hidden
    Line 749:              
    Line 750:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 751:              @__ctrl.Add(@__ctrl11);
    Line 752:              
    Line 753:              #line default
    Line 754:              #line hidden
    Line 755:          }
    Line 756:          
    Line 757:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 758:          private global::System.Web.UI.WebControls.GridView @__BuildControlGridView1() {
    Line 759:              global::System.Web.UI.WebControls.GridView @__ctrl;
    Line 760:              
    Line 761:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 762:              @__ctrl = new global::System.Web.UI.WebControls.GridView();
    Line 763:              
    Line 764:              #line default
    Line 765:              #line hidden
    Line 766:              this.GridView1 = @__ctrl;
    Line 767:              @__ctrl.TemplateControl = this;
    Line 768:              @__ctrl.ApplyStyleSheetSkin(this);
    Line 769:              
    Line 770:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 771:              @__ctrl.ID = "GridView1";
    Line 772:              
    Line 773:              #line default
    Line 774:              #line hidden
    Line 775:              
    Line 776:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 777:              @__ctrl.DataSourceID = "SqlDataSource1";
    Line 778:              
    Line 779:              #line default
    Line 780:              #line hidden
    Line 781:              
    Line 782:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 783:              @__ctrl.AutoGenerateColumns = false;
    Line 784:              
    Line 785:              #line default
    Line 786:              #line hidden
    Line 787:              
    Line 788:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 789:              this.@__BuildControl__control2(@__ctrl.Columns);
    Line 790:              
    Line 791:              #line default
    Line 792:              #line hidden
    Line 793:              
    Line 794:              #line 10 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 795:              @__ctrl.DataBound += new System.EventHandler(this.GV1_OnDataBound);
    Line 796:              
    Line 797:              #line default
    Line 798:              #line hidden
    Line 799:              return @__ctrl;
    Line 800:          }
    Line 801:          
    Line 802:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 803:          private global::System.Web.UI.WebControls.SqlDataSource @__BuildControlSqlDataSource1() {
    Line 804:              global::System.Web.UI.WebControls.SqlDataSource @__ctrl;
    Line 805:              
    Line 806:              #line 32 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 807:              @__ctrl = new global::System.Web.UI.WebControls.SqlDataSource();
    Line 808:              
    Line 809:              #line default
    Line 810:              #line hidden
    Line 811:              this.SqlDataSource1 = @__ctrl;
    Line 812:              @__ctrl.TemplateControl = this;
    Line 813:              
    Line 814:              #line 32 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 815:              @__ctrl.ID = "SqlDataSource1";
    Line 816:              
    Line 817:              #line default
    Line 818:              #line hidden
    Line 819:              
    Line 820:              #line 32 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 821:              @__ctrl.SelectCommand = "SELECT [DEM_ID], [CITY], [STATE], [ZIPCODE], [COUNTY], [Lang], [Gender], [AgeGrou" +
    Line 822:                  "p], [RACE], [EducLevel], [Income] FROM [Demog]";
    Line 823:              
    Line 824:              #line default
    Line 825:              #line hidden
    Line 826:              @__ctrl.ConnectionString = System.Convert.ToString(System.Web.Compilation.ConnectionStringsExpressionBuilder.GetConnectionString("csAHECData"), System.Globalization.CultureInfo.CurrentCulture);
    Line 827:              return @__ctrl;
    Line 828:          }
    Line 829:          
    Line 830:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 831:          private global::System.Web.UI.WebControls.Button @__BuildControlButton1() {
    Line 832:              global::System.Web.UI.WebControls.Button @__ctrl;
    Line 833:              
    Line 834:              #line 35 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 835:              @__ctrl = new global::System.Web.UI.WebControls.Button();
    Line 836:              
    Line 837:              #line default
    Line 838:              #line hidden
    Line 839:              this.Button1 = @__ctrl;
    Line 840:              @__ctrl.TemplateControl = this;
    Line 841:              @__ctrl.ApplyStyleSheetSkin(this);
    Line 842:              
    Line 843:              #line 35 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 844:              @__ctrl.ID = "Button1";
    Line 845:              
    Line 846:              #line default
    Line 847:              #line hidden
    Line 848:              
    Line 849:              #line 35 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 850:              @__ctrl.Text = "export";
    Line 851:              
    Line 852:              #line default
    Line 853:              #line hidden
    Line 854:              
    Line 855:              #line 35 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 856:              @__ctrl.Click += new System.EventHandler(this.Button1_Click);
    Line 857:              
    Line 858:              #line default
    Line 859:              #line hidden
    Line 860:              return @__ctrl;
    Line 861:          }
    Line 862:          
    Line 863:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 864:          private global::System.Web.UI.WebControls.Button @__BuildControlButton2() {
    Line 865:              global::System.Web.UI.WebControls.Button @__ctrl;
    Line 866:              
    Line 867:              #line 36 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 868:              @__ctrl = new global::System.Web.UI.WebControls.Button();
    Line 869:              
    Line 870:              #line default
    Line 871:              #line hidden
    Line 872:              this.Button2 = @__ctrl;
    Line 873:              @__ctrl.TemplateControl = this;
    Line 874:              @__ctrl.ApplyStyleSheetSkin(this);
    Line 875:              
    Line 876:              #line 36 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 877:              @__ctrl.ID = "Button2";
    Line 878:              
    Line 879:              #line default
    Line 880:              #line hidden
    Line 881:              
    Line 882:              #line 36 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 883:              @__ctrl.Text = "Button";
    Line 884:              
    Line 885:              #line default
    Line 886:              #line hidden
    Line 887:              
    Line 888:              #line 36 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 889:              @__ctrl.Click += new System.EventHandler(this.Button2_Click);
    Line 890:              
    Line 891:              #line default
    Line 892:              #line hidden
    Line 893:              return @__ctrl;
    Line 894:          }
    Line 895:          
    Line 896:          [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 897:          private void @__BuildControlContent1(System.Web.UI.Control @__ctrl) {
    Line 898:              System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
    Line 899:              
    Line 900:              #line 5 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 901:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n    "));
    Line 902:              
    Line 903:              #line default
    Line 904:              #line hidden
    Line 905:              global::System.Web.UI.WebControls.Panel @__ctrl1;
    Line 906:              
    Line 907:              #line 5 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 908:              @__ctrl1 = this.@__BuildControlPanel1();
    Line 909:              
    Line 910:              #line default
    Line 911:              #line hidden
    Line 912:              
    Line 913:              #line 5 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 914:              @__parser.AddParsedSubObject(@__ctrl1);
    Line 915:              
    Line 916:              #line default
    Line 917:              #line hidden
    Line 918:              
    Line 919:              #line 5 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 920:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n    <br />\r\n    <br />\r\n    "));
    Line 921:              
    Line 922:              #line default
    Line 923:              #line hidden
    Line 924:              global::System.Web.UI.WebControls.GridView @__ctrl2;
    Line 925:              
    Line 926:              #line 5 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 927:              @__ctrl2 = this.@__BuildControlGridView1();
    Line 928:              
    Line 929:              #line default
    Line 930:              #line hidden
    Line 931:              
    Line 932:              #line 5 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 933:              @__parser.AddParsedSubObject(@__ctrl2);
    Line 934:              
    Line 935:              #line default
    Line 936:              #line hidden
    Line 937:              
    Line 938:              #line 5 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 939:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n    "));
    Line 940:              
    Line 941:              #line default
    Line 942:              #line hidden
    Line 943:              global::System.Web.UI.WebControls.SqlDataSource @__ctrl3;
    Line 944:              
    Line 945:              #line 5 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 946:              @__ctrl3 = this.@__BuildControlSqlDataSource1();
    Line 947:              
    Line 948:              #line default
    Line 949:              #line hidden
    Line 950:              
    Line 951:              #line 5 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 952:              @__parser.AddParsedSubObject(@__ctrl3);
    Line 953:              
    Line 954:              #line default
    Line 955:              #line hidden
    Line 956:              
    Line 957:              #line 5 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 958:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n    "));
    Line 959:              
    Line 960:              #line default
    Line 961:              #line hidden
    Line 962:              global::System.Web.UI.WebControls.Button @__ctrl4;
    Line 963:              
    Line 964:              #line 5 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 965:              @__ctrl4 = this.@__BuildControlButton1();
    Line 966:              
    Line 967:              #line default
    Line 968:              #line hidden
    Line 969:              
    Line 970:              #line 5 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 971:              @__parser.AddParsedSubObject(@__ctrl4);
    Line 972:              
    Line 973:              #line default
    Line 974:              #line hidden
    Line 975:              
    Line 976:              #line 5 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 977:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n    "));
    Line 978:              
    Line 979:              #line default
    Line 980:              #line hidden
    Line 981:              global::System.Web.UI.WebControls.Button @__ctrl5;
    Line 982:              
    Line 983:              #line 5 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 984:              @__ctrl5 = this.@__BuildControlButton2();
    Line 985:              
    Line 986:              #line default
    Line 987:              #line hidden
    Line 988:              
    Line 989:              #line 5 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 990:              @__parser.AddParsedSubObject(@__ctrl5);
    Line 991:              
    Line 992:              #line default
    Line 993:              #line hidden
    Line 994:              
    Line 995:              #line 5 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 996:              @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n"));
    Line 997:              
    Line 998:              #line default
    Line 999:              #line hidden
    Line 1000:         }
    Line 1001:         
    Line 1002:         [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 1003:         private void @__BuildControlTree(crystal_aspx @__ctrl) {
    Line 1004:             
    Line 1005:             #line 1 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 1006:             @__ctrl.MasterPageFile = "~/Default.master";
    Line 1007:             
    Line 1008:             #line default
    Line 1009:             #line hidden
    Line 1010:             
    Line 1011:             #line 1 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 1012:             @__ctrl.Title = "Untitled Page";
    Line 1013:             
    Line 1014:             #line default
    Line 1015:             #line hidden
    Line 1016:             
    Line 1017:             #line 1 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 1018:             @__ctrl.Theme = "Cool_Blue";
    Line 1019:             
    Line 1020:             #line default
    Line 1021:             #line hidden
    Line 1022:             
    Line 1023:             #line 1 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 1024:             this.InitializeCulture();
    Line 1025:             
    Line 1026:             #line default
    Line 1027:             #line hidden
    Line 1028:             
    Line 1029:             #line 5 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 1030:             this.AddContentTemplate("ContentPlaceHolder1", new System.Web.UI.CompiledTemplateBuilder(new System.Web.UI.BuildTemplateMethod(this.@__BuildControlContent1)));
    Line 1031:             
    Line 1032:             #line default
    Line 1033:             #line hidden
    Line 1034:             System.Web.UI.IParserAccessor @__parser = ((System.Web.UI.IParserAccessor)(@__ctrl));
    Line 1035:             
    Line 1036:             #line 1 "C:\Inetpub\wwwroot\tobacco\crystal.aspx"
    Line 1037:             @__parser.AddParsedSubObject(new System.Web.UI.LiteralControl("\r\n\r\n"));
    Line 1038:             
    Line 1039:             #line default
    Line 1040:             #line hidden
    Line 1041:         }
    Line 1042:         
    Line 1043:         
    Line 1044:         #line 912304 "C:\Inetpub\wwwroot\tobacco\crystal.aspx.cs"
    Line 1045:         [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 1046:         protected override void FrameworkInitialize() {
    Line 1047:             base.FrameworkInitialize();
    Line 1048:             this.SetStringResourcePointer(global::ASP.crystal_aspx.@__stringResource, 0);
    Line 1049:             this.@__BuildControlTree(this);
    Line 1050:             this.AddWrappedFileDependencies(global::ASP.crystal_aspx.@__fileDependencies);
    Line 1051:             this.Request.ValidateInput();
    Line 1052:         }
    Line 1053:         
    Line 1054:         #line default
    Line 1055:         #line hidden
    Line 1056:         
    Line 1057:         [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 1058:         public override int GetTypeHashCode() {
    Line 1059:             return -281720209;
    Line 1060:         }
    Line 1061:         
    Line 1062:         [System.Diagnostics.DebuggerNonUserCodeAttribute()]
    Line 1063:         public override void ProcessRequest(System.Web.HttpContext context) {
    Line 1064:             base.ProcessRequest(context);
    Line 1065:         }
    Line 1066:     }
    Line 1067: }
    Line 1068: 

    function OnToggleTOCLevel1(level2ID) { var elemLevel2 = document.getElementById(level2ID); if (elemLevel2.style.display == 'none') { elemLevel2.style.display = ''; } else { elemLevel2.style.display = 'none'; } }


    Version Information: Microsoft .NET Framework Version:2.0.50727.1433; ASP.NET Version:2.0.50727.1433

  • Re: GridView Event OnDataBound error CS0123: No overload for 'GV1_OnDataBound' matches delegate 'System.EventHandler'

    08-28-2008, 11:35 AM
    • All-Star
      86,764 point All-Star
    • ecbruck
    • Member since 12-30-2005, 2:39 PM
    • Des Moines, IA
    • Posts 9,209
    • Moderator
      TrustedFriends-MVPs

    The signature for your GV1_OnDataBound event handler must use the EventArgs class like so:

    protected void GV1_OnDataBound(object sender, EventArgs e)

    Thanks, Ed

    Microsoft MVP - ASP/ASP.NET

  • Re: GridView Event OnDataBound error CS0123: No overload for 'GV1_OnDataBound' matches delegate 'System.EventHandler'

    08-28-2008, 11:46 AM
    • Member
      171 point Member
    • cdell
    • Member since 04-04-2008, 6:43 PM
    • UF
    • Posts 183

    Hmm.  When I use that, eventargs doesn't have a definition for rows.  so all my e.rows throw errors on build.  Any suggestion as to how to fix this? 

  • Re: GridView Event OnDataBound error CS0123: No overload for 'GV1_OnDataBound' matches delegate 'System.EventHandler'

    08-28-2008, 11:49 AM
    Answer
    • All-Star
      86,764 point All-Star
    • ecbruck
    • Member since 12-30-2005, 2:39 PM
    • Des Moines, IA
    • Posts 9,209
    • Moderator
      TrustedFriends-MVPs

    It sounds like you're wanting to use the GridView.RowDataBound event handler instead.

    Thanks, Ed

    Microsoft MVP - ASP/ASP.NET

Page 1 of 1 (4 items)