problem in update panel
-
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.
-
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.
Hi, The label should be added inside the UpdatePanel in order to be updated.
Regards, Jamil
-
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.
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 theUpdateMode="Conditional"
. On Gridview Selected Index Change Event along with set value to lable, you need to doUpdatePanel2.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.
-
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.
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
-
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 theUpdateMode="Conditional"
. On Gridview Selected Index Change Event along with set value to lable, you need to doUpdatePanel2.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.
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