i am creating another topic which is an continuation of the existing topic http://forums.asp.net/t/1790122.aspx/1?Jquery+Doesnt+Work+After+Partial+Postback+in+UpdatePanel
i however was able to get the button worked...
but all my controls are in a updatepanel..and i have around 6 image controls, 6 button to remove the picture...and oncomplete of the asyncfileupload control i am setting the image source using the javascript..
but when i click a Remove Button..it removes that particular image...but the problem is ...when the postback is done in the update panel..all the image controls are getting resetted to the default source..and i am loosing all the changes i have made using
the javascript..
so friends please help me..i am stucked on this since last 2 days...
The changes you have made on the client side with javascript are not included in the postback to the server, i.e. the server doesn't know anything about these changes. You will have to do your javascript modifications each time the page loads.
Evolutionz
Member
261 Points
95 Posts
Loosing values after partial postback Javascript and updatepanel
Apr 07, 2012 08:29 AM|LINK
hello friends,
i am creating another topic which is an continuation of the existing topic http://forums.asp.net/t/1790122.aspx/1?Jquery+Doesnt+Work+After+Partial+Postback+in+UpdatePanel
i however was able to get the button worked...
but all my controls are in a updatepanel..and i have around 6 image controls, 6 button to remove the picture...and oncomplete of the asyncfileupload control i am setting the image source using the javascript..
but when i click a Remove Button..it removes that particular image...but the problem is ...when the postback is done in the update panel..all the image controls are getting resetted to the default source..and i am loosing all the changes i have made using the javascript..
so friends please help me..i am stucked on this since last 2 days...
mm10
Contributor
6445 Points
1187 Posts
Re: Loosing values after partial postback Javascript and updatepanel
Apr 07, 2012 08:38 AM|LINK
The changes you have made on the client side with javascript are not included in the postback to the server, i.e. the server doesn't know anything about these changes. You will have to do your javascript modifications each time the page loads.
Evolutionz
Member
261 Points
95 Posts
Re: Loosing values after partial postback Javascript and updatepanel
Apr 07, 2012 08:56 AM|LINK
isnt there any other option with which we can make it work...
like what if i use 5-6 update panels...
like.. one update panel for Image,Asyncfileupload and Remove
and other for other Image,Asynfileupload and Remove...
so can i use something like that..
Evolutionz
Member
261 Points
95 Posts
Re: Loosing values after partial postback Javascript and updatepanel
Apr 07, 2012 09:40 AM|LINK
well i guess.. i have used the multiple update panels and i have set the UpdateMode="Conditional"
so that solves my issue..
thanks for the replies ...