Script execute twice

Jan 3, 2012 at 4:29 PM

Whiy my script are executed twice

2 times the onload of the view.cs.aspx class?

I have modified the AutoEventWireup="true" to AutoEventWireup="false" but this doesen't change nothing?

can you help me?



Jan 3, 2012 at 5:15 PM

Which script are you referring to?

Jan 4, 2012 at 1:03 PM

Hi Chris thanks for your reply!

I'm referring to the control loaded from the view file.
I start from simple Articles for develop my module, i use your procedure for load control in function of query string parameter, but i discover that each control is execute 2 times.

For example, I install your module in a new DNN installation, replace the source, open the solution with VS, and put 2 breakpoints, 1 in the View.ascx.cs file on the InitializeComponent() function and one in the  ArticleList.ascx.cs file in the Page_Load function.

When I debug the project the system stop 2 times in each break point.

to resolve the problem, I'll try to change the AutoEventWireup="true" to AutoEventWireup="false" , but never change

Do you have a solution?



Jan 9, 2012 at 9:42 AM


Jan 9, 2012 at 6:34 PM

Are you sure you don't have the module on the page twice? 

I just tested this module out and breakpoints on Page_Load or InitializeComponent only get hit once, as expected.

Jan 10, 2012 at 11:04 AM

oh! today I retry to verify but now it run only one time!!!!!
Excuse mi Chris! Sorry! But I was sure that the module run 2 times!!!!
I investigate in the next day and if i found a solution I'll write you! Sorry for the disturb!