Results 1 to 2 of 2

Thread: problem with events!!

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602

    problem with events!!

    I have a user control(which contain one datagrid and a dropdown list) I have this in an infragistics web tab control (unimportant to this question..)

    Anyway When I klick on a button in the datagrid I want to switch tabs and load the data which I put in the session on the itemcommand event on the grid....


    BUT

    The problem is that the page_load event (where I check for session data, if there is any I will use it to fill the UI) fires BEFORE the

    VB Code:
    1. Private Sub dgResults_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles dgResults.ItemCommand

    This is the event where I check which item I pushed and store the information in session... so that means I have to click each item button twice before I can see the info in the other tab


    Anyone has any suggestion how to solve this?
    kind regairds
    Henrik

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    May 2002
    Posts
    1,602
    I solved it a minute ago, but I keep the post in case others want to learn...


    Instead of putting the logic in Page_Load I put it in Pre_Render instead.. figures...


    kind regards
    Henrik

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width