Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. problem in update panel

problem in update panel

Scheduled Pinned Locked Moved ASP.NET
cssdatabasedebugginghelpannouncement
5 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    souravghosh18
    wrote on last edited by
    #1

    Hi all, I am facing a problem using update panel. I have an update panel in a page with UpdateMode="Conditional" the update panel contains a grid view.I want to fetch a particular row's value from that grid view and put it in to a label which is out side the update panel on select index change event.My code is running.I can debug it.But label's value is not changing.on the select index change method of the grid view.

    J A N 3 Replies Last reply
    0
    • S souravghosh18

      Hi all, I am facing a problem using update panel. I have an update panel in a page with UpdateMode="Conditional" the update panel contains a grid view.I want to fetch a particular row's value from that grid view and put it in to a label which is out side the update panel on select index change event.My code is running.I can debug it.But label's value is not changing.on the select index change method of the grid view.

      J Offline
      J Offline
      Jamil Hallal
      wrote on last edited by
      #2

      Hi, The label should be added inside the UpdatePanel in order to be updated.

      Regards, Jamil

      1 Reply Last reply
      0
      • S souravghosh18

        Hi all, I am facing a problem using update panel. I have an update panel in a page with UpdateMode="Conditional" the update panel contains a grid view.I want to fetch a particular row's value from that grid view and put it in to a label which is out side the update panel on select index change event.My code is running.I can debug it.But label's value is not changing.on the select index change method of the grid view.

        A Offline
        A Offline
        Abhijit Jana
        wrote on last edited by
        #3

        souravghosh18 wrote:

        label which is out side the update panel

        Here is the problem. You have two solutions for the same. 1. Put the Label control with in the same UpdatePanel of Gridview. 2. Put Lable control into a different updatepanel ( Say updatepanel2 ), Change the UpdateMode="Conditional" . On Gridview Selected Index Change Event along with set value to lable, you need to do UpdatePanel2.Update() Hope this will help you :)

        Cheers ! Abhijit Jana | MVP Web Site : abhijitjana.net | Follow Me @ twitter Don't forget to click "Good Answer" on the post(s) that helped you.

        N 1 Reply Last reply
        0
        • S souravghosh18

          Hi all, I am facing a problem using update panel. I have an update panel in a page with UpdateMode="Conditional" the update panel contains a grid view.I want to fetch a particular row's value from that grid view and put it in to a label which is out side the update panel on select index change event.My code is running.I can debug it.But label's value is not changing.on the select index change method of the grid view.

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          Place the label in an update panel and set a postback trigger for the grid.


          I know the language. I've read a book. - _Madmatt

          1 Reply Last reply
          0
          • A Abhijit Jana

            souravghosh18 wrote:

            label which is out side the update panel

            Here is the problem. You have two solutions for the same. 1. Put the Label control with in the same UpdatePanel of Gridview. 2. Put Lable control into a different updatepanel ( Say updatepanel2 ), Change the UpdateMode="Conditional" . On Gridview Selected Index Change Event along with set value to lable, you need to do UpdatePanel2.Update() Hope this will help you :)

            Cheers ! Abhijit Jana | MVP Web Site : abhijitjana.net | Follow Me @ twitter Don't forget to click "Good Answer" on the post(s) that helped you.

            N Offline
            N Offline
            Not Active
            wrote on last edited by
            #5

            Abhijit Jana wrote:

            need to do UpdatePanel2.Update()

            Not necessary. Using a postback trigger is all that is needed.


            I know the language. I've read a book. - _Madmatt

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups