Gridview rowdatabound event firing twice on content page

J

Julia B

I wonder if anyone can help.

I've got a content page within a master page with a gridview on it. It's
populated with an objectdatasource. The content page's autoeventwireup
property is set to false but the gridview rowdatabound event still fires
twice, which is causing real problems.

This is the order of what happens:

1 - the content page loads first
2 - the gridview loads firing the rowdatabound event the first time
3 - then the master page loads
4 - then the gridview reloads firing the rowdatabound event the second time
(the content page's load event doesn't fire twice)

Does this make sense? Has anyone any suggestions on how to stop this
happening?

Julia
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top