Hi Mudassar Ahmed Khan
On your article Ajax control inside grid i'm facing an exception "Object reference not set to an instance of an object" on this line
int rowIndex = ((sender as Rating).NamingContainer as GridViewRow).RowIndex;
please help me
yes, im getting GridViewRow but there is the problem in inserting MID into database it's passing null value. can it be related to primary Key and foreign key ??
I have primary key in my main table and the foreign key where im inserting MID
As you are saying you are getting GridViewRow, so let me know are getting the rowIndex?
If you are getting rowIndex then check based on rowIndex and DataKeys are you getting MID value or not.
thats the problem actually, im not getting the MID
on rowindex it shows there is a null exception
still im wating for your answer
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.