update panel,gridview and update progress

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Garima12
    New Member
    • Mar 2007
    • 58

    #1

    update panel,gridview and update progress

    There is a update panel,gridview and update progress. fetching the data from database and filling in gridview. at the time of processing update progress is working and showing processing..... ...
    My problem is : when once data is not found and i display in emptydatatext=" no result" and again i search something, then updateprogreee shows processing..... ......as well as "no result" is displayed. I want to remove this "no result" as returned by prior search and creates confusion.
    How to do that,guide me.
    thks
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Originally posted by Garima12
    There is a update panel,gridview and update progress. fetching the data from database and filling in gridview. at the time of processing update progress is working and showing processing..... ...
    My problem is : when once data is not found and i display in emptydatatext=" no result" and again i search something, then updateprogreee shows processing..... ......as well as "no result" is displayed. I want to remove this "no result" as returned by prior search and creates confusion.
    How to do that,guide me.
    thks
    For the control that causes the update to happen add an "onclick" event (or the appropriate JavaScript event for the control that you're using) which calls JavaScript that sets your emptyDataText=" ".

    Eg
    [code=vbnet]
    myBtnThatDoesUp date.Attributes .Add("onclick", "document.getEl ementById('" + emptyDataText.C lientID + "').innerHTML=" "" + " """ + ";")
    [/code]

    The JavaScript
    [code=javascript]
    document.getEle mentById('empty DataText').inne rHTML=" ";[/code]
    Will set the emptyDataText to be " " when you click the button...this will remove your message.

    Be sure to also reset your emptyDataText=" " in your server side code (because the text may be saved in the ViewState and redisplayed upon posting back).

    Cheers!
    -Frinny

    Comment

    • Garima12
      New Member
      • Mar 2007
      • 58

      #3
      thks for reply.

      is there any onclick method of collapsible panel extender? currently, I put imagebutton on it and on click of that button I am handling event but just wondering if I can do that on the click on panel extender itself?

      thks

      Comment

      • Frinavale
        Recognized Expert Expert
        • Oct 2006
        • 9749

        #4
        Originally posted by Garima12
        thks for reply.

        is there any onclick method of collapsible panel extender? currently, I put imagebutton on it and on click of that button I am handling event but just wondering if I can do that on the click on panel extender itself?

        thks

        I don't think that the CollapsiblePane lExtender has an "onclick", however the image (or other control) that you are using to collapse and expand the panel does. Apply it to that control and see what happens (I've never tried this before).

        -Frinny

        Comment

        • Garima12
          New Member
          • Mar 2007
          • 58

          #5
          thks Frinny
          you helped me a lot

          I also didn't find click event, tht's y asked. handling event with putting imagebutton on it.

          thks

          Comment

          • Frinavale
            Recognized Expert Expert
            • Oct 2006
            • 9749

            #6
            Originally posted by Garima12
            thks Frinny
            you helped me a lot

            I also didn't find click event, tht's y asked. handling event with putting imagebutton on it.

            thks
            Did it work?
            Did you apply the onclick to the ImageButton?

            -Frinny

            Comment

            • Garima12
              New Member
              • Mar 2007
              • 58

              #7
              Yes, I applied on onclientclick event.

              Comment

              Working...