Showing posts with label functionality. Show all posts
Showing posts with label functionality. Show all posts

Wednesday, March 28, 2012

ViewState and JavaScript

Hi guys,

I have two list boxes that I use for dual list box functionality, and there are four buttons that allow movement of the items from one box to another. All this is performed using javascript functions attached to buttons those 4 buttons. There is one more button that is supposed to get values from the right box and print reports. All controls are in update panel. In Pre-Reneder method I am checking to see if there are any items in the right box, and there aren't ever any. Is there something that I need to do so state of the controls would be maintained?

Are you adding the Right side listbox items in client side by JS/DHTML? If so the viewstate will not sync with the server.


Yes I am using javascript/dhtml. So is there other way to do it on client side that will sync up with server?


Hi

I'm afraid there is no way to do this.Please change it to using AJAX to do that at server side.

Good luck.


Hi,

Please refer to this article[ http://aspalliance.com/1071_Smart_ListControl_in_ASPNET_1x20 ], it explains the reason and gives a solution.

Hope this helps.

Saturday, March 24, 2012

want to use AJAX Control & .....

Hi everyone

I have developed web application without using AJAX.it is completed.

Now, I want to use AJAX functionality & tool kit controls.

SO, what are changes, I have to make in web.config or a particular web page.

Please help me out,

Regards,
ASIF

Hi,

you can take a look at this page:http://asp.net/AJAX/Documentation/Live/ConfiguringASPNETAJAX.aspx or you can create a new website based upon the AJAX web site template and use a tool like winmerge to copy over the needed differences in the web.config file.

Grz, Kris.


How Do I: Add ASP.NET AJAX Features to an Existing Web Application? : The Official Microsoft ASP.NET 2.0 Site

hope it helps./.