I’m filling some labels using jQuery AJAX and it’s working properly (i’m getting the values through webservices). But after that, i’m firing and Button click to get that values but in debugging the labels are empty.
I think it’s because the values are losing in PostBack.
Is there anyway to keep those labels values on Postback?
Since the labels are just text in the HTML, there is no data being sent back in the Post that tells ASP.NET that the labels have changed.
You may need to include a Hidden field to track the text of the labels.
That being said (and since you are already using jQuery), I would recommend using a call-back rather than a post-back for this particular scenario.