This project is read-only.

Script execute twice

Jan 3, 2012 at 5: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?

thanks

Rmartin

Jan 3, 2012 at 6:15 PM

Which script are you referring to?

Jan 4, 2012 at 2: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?

thanks

Rmartin

Jan 9, 2012 at 10:42 AM

nothing?

Jan 9, 2012 at 7: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 12:04 PM

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!