We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Javascript Error with multiple callbackpanel

Thread ID:

Created:

Updated:

Platform:

Replies:

45687 Jun 27,2006 02:58 AM Jun 30,2006 06:39 AM ASP.NET Web Forms (Classic) 6
loading
Tags: Tools
manoj singh
Asked On June 27, 2006 02:58 AM

Hi, Given below is the code snippet which is giving error. When I am trying to execute this page in browser,while loading the page its giving me javascript error "''hdnField'' is null or not an object". And when I chagne the value in dropdown its showing error as "''__sfCallbackMultiplexer1'' is undefined". So when I remove my conditional callback and have only dropdown control, it works fine. But I want to achive this functionality, so what can I do regarding this. As I am having multiple dropdowns and if any of dropdown has single value then it should be replaced by Lable control. <%If Session("bOrgDisplay") = 1 Then%> <% Else%> <%End If%> Thanks & Regards, Manoj Singh.

Administrator [Syncfusion]
Replied On June 28, 2006 01:59 AM

Hi manoj, Could you please resend the code snippet as we were not able to find any code attached with your post. Also i was unable to reproduce the issue you had reported and hence it would more helpful if you provide more information or a sample. Thanks and Regards, Sharmila

Administrator [Syncfusion]
Replied On June 28, 2006 07:00 PM

Hi Manoj, I have modified our existing CallbackConrols/ListBox select sample with ''DropDownList'' instead of ''ListBox'' control to meet your specifications. Binding the DropDowns ---------------------- The DropDown controls are bounded to the ''continents'' database that ships with our ''EssentialTools'' install and points to the syncfusion virtual directory. Functionalities in this sample: -------------------------------- a) Sample uses 3 drop down controls and by selecting any of the ''Continents'' from this dropdown the countries and cities dropdown''s/label gets updated which are interdependent on each others selection b) If the cities dropdown has single value then it will be replaced by ''Label control''.(Eg. Try select the Australia Continent, then select the NewZeland Countries in it. This will display the ''Wellington'' inside a label.) Click here to download the sample Hope this sample explains what you were looking for. Best Regards, A.Sivakumar

manoj singh
Replied On June 29, 2006 12:25 AM

Hi Siva, I have done in similer way, now i would like to know that, in the given example you have used ViewState for maintaining States of various dropdowns. But what should i do if i want to distroy viewstate. For Example :- I am checking for HTTP_Referer, so if user is coming from specific page then it is showing Fresh entry for the page, otherwise if he is coming from any other page then user is getting all the selected value which he has. So in this case i am using viewstate to maintain the state, but i am not able to refresh or reset the value to their original state. So please tell me how to do so. Regards, Manoj Singh.

Administrator [Syncfusion]
Replied On June 29, 2006 07:52 AM

Hi manoj, "otherwise if he is coming from any other page then user is getting all the selected value which he has selected earlier” - We would like to know how this is possible. When the user clicks on a link referring to your page from a different page, won''t your page load WITHOUT any ViewState information? Unless there is some kind of caching going on that we are not aware of. Or are you using Session state instead of ViewState? Could you let us know what we might be missing? Regards and Thanks Sharmila

manoj singh
Replied On June 30, 2006 01:34 AM

Hi Sharmila, I guess its related to session only. Regards, Manoj Singh.

Administrator [Syncfusion]
Replied On June 30, 2006 06:39 AM

Hi Manoj, I have attached a simple sample that explains the usage of session to maintain state in the dropdown control. Regards, Sharmila

DropDown_Session_33ad32f0.zip

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;