Hi Team,
I am getting error "Object reference not set to an instace of a object" error when I am trying to access any control on the aspx page after adding or deleting a row from a WebDataGrid. Can somebody please let me know what might be the issue?
What is the issur in the below function?
public
void GetDropdownCategories()
{_db =
DatabaseFactory.CreateDatabase("ISDBConnectionString");
_user =
WindowsIdentity.GetCurrent().Name;
cmd.CommandType =
CommandType.StoredProcedure;
cmd.Connection = GetISDBConnection();
oDs = _db.ExecuteDataSet(cmd);
wddCategory.DataSource = oDs;
wddCategory.TextField =
"Category";
wddCategory.ValueField =
"CategoryId";
}
The ASPX page is shown below:
<
body>
<!--#BEGIN SNIPPET#-->
="UpdateCategory"
="AddCategory"
="TechnologyServies.Maintenance.ApplicationService">
>
/>
="true">
="5"/>
="Multiple"/>
="90px"/>
<!--#END SNIPPET#-->
: 350px">
</
Thanks,
pufftuff
Hi pufftuff,
Thank you for posting in the community.
From what I can see in your code WebDataGrid is inside an updatePanel. I suggest that you try disabling the grid's AJAX in order to check if that makes a difference. In order to investigate this further I would need to know your exact product version. A small working sample illustrating the matter would be greatly appreciated and would help isolate the matter.
Hi puffpuff,
Please feel free to contact me if you still need assistance with this matter.