Handling Postback within a Webpart in Sharepoint RRS feed

  • Question

  • I am adding a text box and a button via code to a Webpart - in CreateChildControls()

    Also, I've given the handler for button click. The handler function is supposed to work as a search - perform some operations on the content entered in the textbox, load the results in a Gridview, display the Gridview

    I've also given EnsureChildControls() within a method that 

    Handles Me.Load

    When I type something in the text box and hit the button, the same controls load again - I do not see the grid at all. Am sure the event handler is creating the grid and displaying it.


    Any ideas what I might be missing?

    Monday, September 27, 2010 12:56 PM