MVC action loading view page twice
-
Hi all. I have an action result in a controller which is hooked up to a view. This view loads twice when i refresh the page and inserts a viwed counter into the DB twice (which is wrong). Is there any reason for this multiple load? Or a way i can check and then bypass it? I have looked through all img src attributes, as this is one of the causes, but the problem still persistss. Any help would be awesome. :thumbsup:
-
Hi all. I have an action result in a controller which is hooked up to a view. This view loads twice when i refresh the page and inserts a viwed counter into the DB twice (which is wrong). Is there any reason for this multiple load? Or a way i can check and then bypass it? I have looked through all img src attributes, as this is one of the causes, but the problem still persistss. Any help would be awesome. :thumbsup:
-
Hi all. I have an action result in a controller which is hooked up to a view. This view loads twice when i refresh the page and inserts a viwed counter into the DB twice (which is wrong). Is there any reason for this multiple load? Or a way i can check and then bypass it? I have looked through all img src attributes, as this is one of the causes, but the problem still persistss. Any help would be awesome. :thumbsup: