Comment Problem Solved

Site news Comments

As I posted, no postbacks on my site were possible. Though I'm running the same application at home and on my site, the onsubmit tag was rendered differently. At home I get

<form name="Form1" method="post" action="CommentsBroken.aspx" 
    language="javascript" onsubmit="ValidatorOnSubmit();" id="Form1">

while my public blog is rendered

<form name="Form1" method="post" action="CommentsBroken.aspx" 
    language="javascript"
    onsubmit="if (DefaultButton_RequireOwnPostback(this) ) { return false; }; if (!ValidatorOnSubmit()) return false;" 
    id="Form1">

Notice that the resultĀ of ValidatorOnSubmit is analysed.

Well, I've found some hints in the ASP.NET forum. This issue seems to be caused by an ASP.NET hotfix as described on KB 818803.

Ok, how did I solve this issue? I've just edited my WebUIValidation.js, more precisely, I added the line return true; to ValidatorCommonOnSubmit:

function ValidatorCommonOnSubmit() {
    event.returnValue = !Page_BlockSubmit;
    Page_BlockSubmit = false;
    return true;
}

Now comments are possible again and I'm happy.

Comments