-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: suresh_r
Message 1 in Discussion

   Server Error in '/ComplexDynamicDataGrid' Application.    Object reference 
not set to an instance of an object.  Description: An unhandled exception 
occurred during the execution of the current web request. Please review the 
stack trace for more information about the error and where it originated in the 
code. 

Exception Details: System.NullReferenceException: Object reference not set to 
an instance of an object.

Source Error: 

     Line 312:                  { Line 313:                              Line 
314:                              
((Label)e.Item.Cells[1].FindControl("lblC"+(visited))).Text= Line 315:          
                        dtBound.Rows[cnt][1].ToString(); Line 316:              
         
Source File: C:\Inetpub\wwwroot\ComplexDynamicDataGrid\WebForm1.aspx.cs    
Line: 314 

Stack Trace: 

     [NullReferenceException: Object reference not set to an instance of an 
object.]    ComplexDynamicDataGrid.WebForm1.dgRt_ItemDataBound(Object sender, 
DataGridItemEventArgs e) in 
C:\Inetpub\wwwroot\ComplexDynamicDataGrid\WebForm1.aspx.cs:314    
System.Web.UI.WebControls.DataGrid.OnItemDataBound(DataGridItemEventArgs e)    
System.Web.UI.WebControls.DataGrid.CreateItem(Int32 itemIndex, Int32 
dataSourceIndex, ListItemType itemType, Boolean dataBind, Object dataItem, 
DataGridColumn[] columns, TableRowCollection rows, PagedDataSource 
pagedDataSource)    
System.Web.UI.WebControls.DataGrid.CreateControlHierarchy(Boolean 
useDataSource)    
System.Web.UI.WebControls.BaseDataList.OnDataBinding(EventArgs e)    
System.Web.UI.WebControls.BaseDataList.DataBind()    
ComplexDynamicDataGrid.WebForm1.fillgrid(Int32 BenchmarkID) in 
C:\Inetpub\wwwroot\ComplexDynamicDataGrid\WebForm1.aspx.cs:290    
ComplexDynamicDataGrid.WebForm1.CreateGrid() in 
C:\Inetpub\wwwroot\ComplexDynamicDataGrid\WebForm1.aspx.cs:125    
ComplexDynamicDataGrid.WebForm1.Page_Load(Object sender, EventArgs e) in 
C:\Inetpub\wwwroot\ComplexDynamicDataGrid\WebForm1.aspx.cs:39    
System.Web.UI.Control.OnLoad(EventArgs e) +67    
System.Web.UI.Control.LoadRecursive() +35    
System.Web.UI.Page.ProcessRequestMain() +731  
    Version Information: Microsoft .NET Framework Version:1.1.4322.573; ASP.NET 
Version:1.1.4322.573      I am trying to create a runtime complex datagrid.When 
 I run this program ,  it work for one time .But when I stop execution and 
again run application it gives error like this (object reference  not set to 
the instance of object .).If i cloce the application and run it again it 
executes fine but on second time execution same error.If i do some modification 
in code in between the two successive execution ,it runs errorless. Help please.

-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/bdotnet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member 
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you 
received this message by mistake, please click the "Remove" link below. On the 
pre-addressed e-mail message that opens, simply click "Send". Your e-mail 
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to