Re: asp:button firing and not supposed to ShowModalDialog

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



It is null, but even though it has this code return false, it fired.
That was the cause of the OP. Even though my code has return false it
fires.

My actual code is var retval = showModalDialog(....)
if (retval.myid !=null)
do stuff
else
return false.

in the else I had to manually set the ValidatorEnable to true to stop
the PostBack.

.



Relevant Pages

  • Re: GridView TemplateFields DataBinding event not raised on postback
    ... Microsoft MVP http://msmvps.com/blogs/egoldin ... the InstantiateInmethod fires EVERY time, ... necessary binding on Postback. ... I did try to databind on postback (either in the OnInit or OnLoad ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: GridView TemplateFields DataBinding event not raised on postback
    ... the InstantiateInmethod fires EVERY time, ... necessary binding on Postback. ... I did try to databind on postback (either in the OnInit or OnLoad ... the RowCommand event will fire but not the DataBinding ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: event firing
    ... PostBack events are always processed after the Load event. ... > See, in Page_Load, i need the data that is set in the event code. ... In other words,if your event handler is ... >>> event fires. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Persist Page Location
    ... On 8/4/2004 10:45 AM, Demetri wrote: ... > Because link button fires a postback, which is what is needed in order to add the next row to the table it brings the user back to the top of the page afterwards. ... SmartNavigation was the way to overcome some of this 'page viewing ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: textbox control question
    ... I'm still a little confused on the behavior of hitting ENTER. ... fires when hitting ENTER when the focus is in a text box? ... postback may confuse the user. ...
    (microsoft.public.dotnet.framework.aspnet)