Click here to Skip to main content
16,004,833 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a gridview contains an item template field holds label control. the value of the label control is set programatically. but the value missing from label when another post back happens. how can i hold the value in label control without losing after post back. Please note the label control not created dynamically..
Please anyone help me in this...


Thanks in advance....
Posted
Updated 27-Feb-14 23:57pm
v3
Comments
Nelek 28-Feb-14 5:35am    
Please use the "improve question" and add a piece of code envolved. If not we can only guess where the problem is, instead of telling you what the problem is
Raajkumar.b 1-Mar-14 5:08am    
in which event assigned text to a label control?
jeffin_ 3-Mar-14 5:54am    
gridview selected index changed event.
Raajkumar.b 3-Mar-14 7:10am    
can you post your code what have you tried before

and check binding grid code write not under (!Ispostback)
jeffin_ 3-Mar-14 7:22am    
i think it is the case of page post back causes some other actions from the same page.but should this grid hold the value which i assigned ? .i am not created the control in gridview dynamically...

hope this spray some light on this

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900