Rank: Member
Joined: 3/15/2007(UTC) Posts: 126
|
I am receiving the following errors when I try to connect to any of the myaccount pages.
The Controls collection cannot be modified because the control contains code blocks (i.e. <% ... %>).
Line 26: Line 27: Sub Page_Load(ByVal Sender As Object, ByVal E As EventArgs) Handles MyBase.Load Line 28: Utilities.WebForms.MakePageNonCacheable(Me) Line 29: bvinField.Value = SessionManager.GetCurrentUserId
If I comment out line 28 the pages will load. Any ideas would be helpful?
Thanks, |
|
|
|
|
Rank: Member
Joined: 3/15/2007(UTC) Posts: 126
|
I just discovered that this error is being thrown for the cart pages also. Actually any page that requires HTTPS. I should have added that the site I am experiencing the problem is up to SP3 and hotfixes up to "I". |
|
|
|
|
Rank: Member
Joined: 3/1/2006(UTC) Posts: 1,142
|
It is because you have "<% %>" tags in the head section of the page. In asp.net you can not programmatically modify the "head" section (which MakePageNonCacheable is trying to do) if you have <% %> tags in the head. |
Justin Etheredge Senior Software Engineer BVSoftware |
|
|
|
Rank: Member
Joined: 3/15/2007(UTC) Posts: 126
|
I found the problem. Thanks Justin and have a Merry Christmas! |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.