Jun 05, 2010, 4:12 PM
AddScript is not working after DirectEventArgs.Success = false
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal">Hi,</p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal"> </p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal">I'm adding a
script thru the ResourceManager.AddScript method.</p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal">Everything is
fine (the script is executed), if I don't have any validation error (business
logic validation). </p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal">Take into
account that if there is a validation error, I'm setting the success property
to false and the ErrorMessage to display at the client side thru a message
box. </p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal">When a
validation error occurs, the message box is showed ok, but the script is not
executed.</p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal"> </p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal">Thanks,
Ariel</p>
normal">Hi,</p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal"> </p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal">I'm adding a
script thru the ResourceManager.AddScript method.</p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal">Everything is
fine (the script is executed), if I don't have any validation error (business
logic validation). </p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal">Take into
account that if there is a validation error, I'm setting the success property
to false and the ErrorMessage to display at the client side thru a message
box. </p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal">When a
validation error occurs, the message box is showed ok, but the script is not
executed.</p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal"> </p>
<p class="MsoNormal" style="margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal">Thanks,
Ariel</p>