Re: list of raised events

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

From: Tim Mulholland (TimMulholland_at_nospamaddress.com)
Date: 03/22/04


Date: Mon, 22 Mar 2004 11:37:59 -0500

I've replied to your response in my other thread and used the suggestions
from you and Kevin in my analysis for that answer.
Thanks for your help,

Tim

"Steven Cheng[MSFT]" <v-schang@online.microsoft.com> wrote in message
news:kjB9AkiDEHA.2956@cpmsftngxa06.phx.gbl...
> Hi Tim,
>
> I've mentioned that you've posted two threads on the same problem on the
> datagrid's sortcommand no fire. I've replied you in the former two ones.
> Also, I'll repaste my reply here:
> ------------------------------------------------------------------------
> Hi Tim,
>
> From the you description, you used a webform datagrid(with allowSorting as
> true) and you generate some columns which need sorting at runtime into the
> datagrid. However, you found that at runtime, when clicking the sorting
> link, the page was posted back ,but the datagrid's sort event wasn't be
> fired, yes?
>
> As for this problem, I doubt that whether it is caused by the event
handler
> not being registerd correctly. Do you register the
> datagrid 's sortcommand handler statically or dynamically at runtime? For
> example:
>
> this.dgFire.SortCommand += new
>
System.Web.UI.WebControls.DataGridSortCommandEventHandler(this.dgFire_SortCo
> mmand);
>
> If you add the event handler at runtime ( in page init or page_load), do
> you add it every time the page is loaded( not only firsttime)? If not ,
the
> event handler will be lost when the page is posted back. In other words,
> the page will still be posted back when clicking the sort link, but the
> serverside's handler will never be hited.
> I've attached a test page to show the behavior I mentioned above in this
> message, please refer to it to see whether this is the cause of your
> problem.
>
> In addition, if the problem is caused by anything else, would you please
> provide some further code on your page so that I can help to do some
> further research on my side? Thanks.
>
> --------------------------------------------------------------------------

--
> ------------------------
>
> In addition, I think Kevin's suggestion that check the form fields
> (__EVENTTARGET and __EVENTARGUMENT) is quite reasonable, besides check
them
> at clientside through html source, you can also check them at serverside
> when using F5 debug(checking the request's form collection).
>
> If you have anything unclear or have any further questions, please feel
> free to post here or in the former thread.
>
>
>
> Regards,
>
> Steven Cheng
> Microsoft Online Support
>
> Get Secure! www.microsoft.com/security
> (This posting is provided "AS IS", with no warranties, and confers no
> rights.)
>
> Get Preview at ASP.NET whidbey
> http://msdn.microsoft.com/asp.net/whidbey/default.aspx
>
>


Relevant Pages

  • Re: javascript custom object event handling and this
    ... > The method you are using to assign the event handler actually ... The value of instance's - HandleKeyDown - is a reference to a function ... to call an object instance method without ...
    (microsoft.public.scripting.jscript)
  • Re: javascript custom object event handling and this
    ... > The method you are using to assign the event handler actually ... The value of instance's - HandleKeyDown - is a reference to a function ... to call an object instance method without ...
    (microsoft.public.scripting.jscript)
  • Re: How to pass more than two parameters in the event handler
    ... That information is passed into the event handler ... curveArray data without passing parameters in. ... private void plotCurves(ZedGraphControl zgc, int[,] curveArray) ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Tcl bug?
    ... being substituted in the context of TraceOP. ... You don't show the event handler code, so one can't say how you get from ... when registering the handler, and keep a hash table of tkwin pointers back to the Lisp instance. ... specifying neither returns nothing but does not return an error. ...
    (comp.lang.tcl)
  • Re: disappearing exceptions on delegates...
    ... You have to add an handler for a ThreadException for each separate thread. ... "Tim Mackey" schrieb im Newsbeitrag ... any exceptions directly in the code. ...
    (microsoft.public.dotnet.framework.clr)