<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>ASP.NET AJAX Control Toolkit</title><link>http://forums.asp.net/1022.aspx</link><description>Here's your place to discuss everything in and about the AJAX Control Toolkit</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Inconsistencies in Ajax tutorial</title><link>http://forums.asp.net/thread/3289373.aspx</link><pubDate>Mon, 13 Jul 2009 07:06:17 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3289373</guid><dc:creator>sunny74</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3289373.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1022&amp;PostID=3289373</wfw:commentRss><description>&lt;p&gt;Hi Zhi-Qiang,&lt;/p&gt;&lt;p&gt;Thanks for ur reply.&lt;/p&gt;&lt;p&gt;I think the above problem will be solved.I will confirm shortly.&lt;/p&gt;&lt;p&gt;But there a few other problems dogging me.&lt;/p&gt;&lt;p&gt;1) I am unable to get the selected value of the Features dropdown using javascript.&lt;/p&gt;&lt;p&gt;I hav wriiten the following code:&lt;/p&gt;&lt;p&gt;var IndexValue = $get(&amp;#39;&amp;lt;%=Features.ClientID %&amp;gt;&amp;#39;).selectedIndex;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var SelectedVal = $get(&amp;#39;&amp;lt;%=Features.ClientID %&amp;gt;&amp;#39;).options[IndexValue].value;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(SelectedVal);&lt;/p&gt;&lt;p&gt;It didn&amp;#39;t work.It doesn&amp;#39;t get the object.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Then I changed my code to:&lt;/p&gt;&lt;p&gt;var featuresdd = $find(&amp;#39;&amp;lt;%=Features.ClientID %&amp;gt;&amp;#39;,qbuild);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(featuresdd);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var IndexValue = $get(&amp;#39;featuresdd&amp;#39;).selectedIndex;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var SelectedVal = $get(&amp;#39;&amp;lt;%=Features.ClientID %&amp;gt;&amp;#39;).options[IndexValue].value;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; alert(SelectedVal);&lt;/p&gt;&lt;p&gt;&lt;br /&gt;here featuresdd is coming null so again I am getting error &amp;quot;object required&amp;quot; in the next line.&lt;/p&gt;&lt;p&gt;&amp;nbsp; 2) &lt;b&gt;You hav not answered my query regarding use of namespace in the web service for the cascading dropdowns. &amp;nbsp; &lt;/b&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Inconsistencies in Ajax tutorial</title><link>http://forums.asp.net/thread/3288962.aspx</link><pubDate>Mon, 13 Jul 2009 02:33:42 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3288962</guid><dc:creator>Zhi-Qiang Ni - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3288962.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1022&amp;PostID=3288962</wfw:commentRss><description>&lt;p&gt;Hi sunny74,&lt;/p&gt;
&lt;p&gt;Now, I know where the problem lies. The UpdatePanel is different to a Panel. We need to place controls into the UpdatePanel’s ContentTemplate Tag:&lt;br /&gt;&lt;/p&gt;&lt;pre class="xhtml:nogutter" name="code"&gt;    &amp;lt;asp:UpdatePanel ID=&amp;quot;UpdatePanel1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;
        &amp;lt;ContentTemplate&amp;gt;
        &amp;lt;YourControls&amp;gt;
        &amp;lt;/ContentTemplate&amp;gt;
    &amp;lt;/asp:UpdatePanel&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;The documentations:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.asp.net/AJAX/Documentation/Live/overview/UpdatePanelOverview.aspx"&gt;http://www.asp.net/AJAX/Documentation/Live/overview/UpdatePanelOverview.aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.asp.net/AJAX/Documentation/Live/tutorials/UsingUpdatePanelControls.aspx"&gt;http://www.asp.net/AJAX/Documentation/Live/tutorials/UsingUpdatePanelControls.aspx&lt;/a&gt;&lt;br /&gt;&lt;a class="" href="http://www.asp.net/learn/ajax-videos/video-78.aspx"&gt;Understanding Partial Page Updates with ASP.NET AJAX&lt;br /&gt;How Do I:Implement Dynamic Partial-Page Updates with ASP.NET AJAX?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Every time I provide a link, I believe it is helpful. If you have seen my&amp;nbsp;sample in my last reply,&amp;nbsp;you will understand how to place the DropDownList inside UpdatePanel.&amp;nbsp;So, please be patient to refer to the detailed information inside.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Zhi-Qiang Ni&lt;/p&gt;</description></item><item><title>Re: Inconsistencies in Ajax tutorial</title><link>http://forums.asp.net/thread/3285967.aspx</link><pubDate>Fri, 10 Jul 2009 12:50:46 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3285967</guid><dc:creator>sunny74</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3285967.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1022&amp;PostID=3285967</wfw:commentRss><description>&lt;p&gt;Hi Zhi-Qiang,&lt;/p&gt;&lt;p&gt;Thanks for ur reply.&lt;/p&gt;&lt;p&gt;If I put table inside UpdatePanel I get an error which says &amp;quot;table cannot be an element of updatepanel&amp;quot;.&lt;/p&gt;&lt;p&gt;If I put UpdatePanel inside table around the Features DropDown I get 2 errors which &amp;quot;the name Features does not exist in the current context&amp;quot;.&lt;/p&gt;&lt;p&gt;There is another problem.&lt;/p&gt;&lt;p&gt;If I put a namespace in my webservice it stops working even though all other code remains the same. What change shud I make in the markup for the cascading ones so that it accepts the webservice with a namespace.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;How to tackle these issues?&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Inconsistencies in Ajax tutorial</title><link>http://forums.asp.net/thread/3285281.aspx</link><pubDate>Fri, 10 Jul 2009 06:22:24 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3285281</guid><dc:creator>Zhi-Qiang Ni - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3285281.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1022&amp;PostID=3285281</wfw:commentRss><description>&lt;p&gt;Hi sunny74,&lt;/p&gt;
&lt;p&gt;No, this code is just a simple client javascript code, the $find method is belong to the ASP.NET Ajax.&lt;br /&gt;&lt;a href="http://www.asp.net/AJAX/Documentation/Live/ClientReference/Global/default.aspx"&gt;http://www.asp.net/AJAX/Documentation/Live/ClientReference/Global/default.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p style="PADDING-LEFT:30px;"&gt;Thus using a &amp;lt;asp:Button/&amp;gt; would cause both the server side as well as client side code to fail.&lt;/p&gt;
&lt;p&gt;In my last reply, I have already said that the server side event can not change the DropDownList’s selection. So, you just need to use the Client Click event to achieve this goal. Do not let the button do a Post Back, OK??&lt;/p&gt;
&lt;p&gt;I can’t understand why your table will crash in the UpdatePanel, you can refer to my client code in this thread:&lt;br /&gt;&lt;a href="http://forums.asp.net/p/1256084/2344897.aspx#2344897"&gt;http://forums.asp.net/p/1256084/2344897.aspx#2344897&lt;/a&gt;&lt;br /&gt;What error would be raised in your code?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Zhi-Qiang Ni&lt;/p&gt;</description></item><item><title>Re: Inconsistencies in Ajax tutorial</title><link>http://forums.asp.net/thread/3285218.aspx</link><pubDate>Fri, 10 Jul 2009 05:36:32 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3285218</guid><dc:creator>sunny74</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3285218.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1022&amp;PostID=3285218</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;Thanks for ur reply.&lt;/p&gt;&lt;ol start="1"&gt;
&lt;li&gt;&lt;span&gt;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;asp:Button&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;ID&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;btnReset&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;Text&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;Reset&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;runat&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;server&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;OnClientClick&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;resetClicked();return&amp;nbsp;false;&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;/&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&amp;lt;&lt;/span&gt;&lt;span&gt;script&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;type&lt;/span&gt;&lt;span&gt;=&lt;/span&gt;&lt;span&gt;&amp;quot;text/javascript&amp;quot;&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;function&amp;nbsp;resetClicked()&amp;nbsp;{&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var&amp;nbsp;&lt;span&gt;cdd&lt;/span&gt;&lt;span&gt;&amp;nbsp;=&amp;nbsp;$find(&amp;#39;the&amp;nbsp;CascadingDropDown’s&amp;nbsp;BehaviorID&amp;#39;);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;cdd.set_SelectedValue(cdd._promptText);&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span&gt;&amp;lt;/&lt;/span&gt;&lt;span&gt;script&lt;/span&gt;&lt;span&gt;&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Is this Jquery code? If so I think I need to add Reference to the Jquery Library.&lt;/p&gt;&lt;p&gt;But I have already achieved this using Client side code js code, but it works only if the control is a HTML control not server side Button bec&amp;#39; a server Button causes a postback,and on the postback the values are set to their original ones and not to the default ones.&lt;/p&gt;&lt;p&gt;&lt;b&gt;Thus using a &amp;lt;asp:Button/&amp;gt; would cause both the server side as well as client side code to fail.&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;b&gt;Regarding 3&lt;/b&gt;,&lt;/p&gt;&lt;p&gt;I think u r putting the DropDowns directly on the web page and putting the Dropdowns within Update panel.&lt;/p&gt;&lt;p&gt;But that is not possible in my case because I have a div within which a table and within that all the dropdowns i.e within&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/TD&amp;gt;&amp;lt;/tr&amp;gt; tags.&lt;b&gt; But I cannot put the update panel within a the table or the table within the Update Panel. So this is my problem.&lt;/b&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Inconsistencies in Ajax tutorial</title><link>http://forums.asp.net/thread/3285027.aspx</link><pubDate>Fri, 10 Jul 2009 03:08:35 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3285027</guid><dc:creator>Zhi-Qiang Ni - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3285027.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1022&amp;PostID=3285027</wfw:commentRss><description>&lt;p&gt;Hi sunny74,&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;1.&lt;/strong&gt; Let’s clarify the function of the CascadingDropDown. In the description of the CascadingDropDown, it is mentioned that: CascadingDropDown enables a common scenario in which the contents of one list depends on the selection of another list and does so without having to embed the entire data set in the page or transfer it to the client at all. All the logic about the contents of the set of DropDownList controls lives on the server in a web service.&lt;/p&gt;
&lt;p&gt;This means the CascadingDropDown would help us build the DropDownList’s options based on the service method’s returned value in the web service instead of we build the options manually at the client side. That’s why the DropDownList is only a blank tag without any ListItem:&lt;/p&gt;&lt;pre class="xhtml:nogutter" name="code"&gt;&amp;lt;asp:DropDownList ID=&amp;quot;ddlColors&amp;quot; runat=&amp;quot;server&amp;quot; Width=&amp;quot;240px&amp;quot; /&amp;gt;
&amp;lt;ajaxToolkit:CascadingDropDown ID=&amp;quot;cddColors&amp;quot; 
                                       runat=&amp;quot;server&amp;quot; 
                                       TargetControlID=&amp;quot;ddlColors&amp;quot; 
                                       ParentControlID=&amp;quot;ddlModels&amp;quot;
                                       Category=&amp;quot;Color&amp;quot; 
                                       PromptText=&amp;quot;Choose a Color....&amp;quot; 
                                       LoadingText=&amp;quot;Please wait ...&amp;quot; 
                                       ServicePath=&amp;quot;CarsService.asmx&amp;quot; 
                                       ServiceMethod=&amp;quot;GetColors&amp;quot;&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Besides, all the events of calling web service and changing the child’s options are dynamically client event. We can not control these events from the code-behind but client side. So, in the Button server click event, we can not change the DropDownList’s SelectedItem’s text. To set the DropDownList’s selection to the initialize value, we can use this client&amp;nbsp;method:&lt;br /&gt;&lt;/p&gt;&lt;pre class="xhtml" name="code"&gt;&amp;lt;asp:Button ID=&amp;quot;btnReset&amp;quot; Text=&amp;quot;Reset&amp;quot; runat=&amp;quot;server&amp;quot; OnClientClick=&amp;quot;resetClicked();return false;&amp;quot; /&amp;gt;
    &amp;lt;script type=&amp;quot;text/javascript&amp;quot;&amp;gt;
        function resetClicked() {
            var cdd = $find(&amp;#39;the CascadingDropDown’s BehaviorID&amp;#39;);
            cdd.set_SelectedValue(cdd._promptText);
        }
    &amp;lt;/script&amp;gt;&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&lt;strong&gt;2.&lt;/strong&gt; Most of the AjaxControlToolkit extenders only fire their events from the client side, but some extenders enable us to handle their server side events, such as TabContainer’s ActiveTabChanged (Event), Rating control’s AutoPostBack can be set as true, and so on.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;3. &lt;/strong&gt;To achieve your goal without the CascadingDropDown extenders, you can follow these steps:&lt;/p&gt;
&lt;p&gt;.Build a new web site with your DropDownLists and DataBase.&lt;br /&gt;.Set all the DropDownLists’ AutoPostBack property with true.&lt;br /&gt;.In PageLoad function, bind the first DropDownList with the DataBase.&lt;br /&gt;.In each DropDownList’s SelectedIndexChanged event, rebind the child DropDownList’s Data by the selection of their parent’s selection.&lt;br /&gt;&amp;nbsp;&amp;nbsp; For example:&lt;/p&gt;&lt;pre class="vb.net:nogutter" name="code"&gt;    Protected Sub ddlModels_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles ddlModels.SelectedIndexChanged
        Dim carMakeAdapter As New dsCarsTableAdapters.CarsTableAdapter()
        ddlMakes.Enabled = True

        &amp;#39;Please modify the DataAdapter&amp;#39;s method by yourself
        ddlMakes.DataSource = carMakeAdapter.GetCarsByModel(ddlModels.SelectedItem.Text)
        ddlMakes.DataValueField = &amp;quot;CarId&amp;quot;
        ddlMakes.DataTextField = &amp;quot;CarName&amp;quot;
        ddlMakes.DataBind()
    End Sub&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;.At the client side, place all the controls into an UpdatePanel. &lt;/p&gt;
&lt;p&gt;The difference between this method and using the CascadingDropDown is: &lt;br /&gt;In this method, the UpdatePanel helps us change the classic server events of the DropDownLists to dynamic events.&lt;br /&gt;The CascadingDropDown extender is an Ajax control, it would achieve the partial-refresh cascading function automatically.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Zhi-Qiang Ni&lt;/p&gt;</description></item><item><title>Re: Inconsistencies in Ajax tutorial</title><link>http://forums.asp.net/thread/3283765.aspx</link><pubDate>Thu, 09 Jul 2009 13:19:43 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3283765</guid><dc:creator>sunny74</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3283765.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1022&amp;PostID=3283765</wfw:commentRss><description>&lt;p&gt;Hi Zhi-Qiang,&lt;/p&gt;&lt;p&gt;Thanks for ur reply.&lt;/p&gt;&lt;p&gt;I found that when I try to reset the cascading dropdowns to their default values the server side code does not work.&lt;/p&gt;&lt;p&gt;My code is:&lt;/p&gt;&lt;p&gt;protected void Button8_Click(object sender, EventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Features.SelectedItem.Text = &amp;quot;Select a Feature&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Attributes.SelectedItem.Text = &amp;quot;Select an Attribute&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; @operator.SelectedItem.Text = &amp;quot;Select One&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Values.SelectedItem.Text = &amp;quot;Select a Value&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; btnOR.Visible = false;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; btnADD.Text = &amp;quot;ADD&amp;quot;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;1)Do u hav an explanation as to why this happens?&lt;/p&gt;&lt;p&gt;2)Does this happen with all Ajax controls?&lt;/p&gt;&lt;p&gt;&lt;b&gt;3)You have not given an answer to your other suggestion of putting all Dropdowns in a Update Panel for giving them Ajax functionality.It does not work in my case.What to do?&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Warm Regards.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Inconsistencies in Ajax tutorial</title><link>http://forums.asp.net/thread/3282968.aspx</link><pubDate>Thu, 09 Jul 2009 08:03:31 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3282968</guid><dc:creator>Zhi-Qiang Ni - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3282968.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1022&amp;PostID=3282968</wfw:commentRss><description>&lt;p&gt;Hi sunny74,&lt;/p&gt;
&lt;p&gt;I think you have noticed my suggestion about fixing this error in your last reply. So, would you please try to test it firstly?&lt;/p&gt;
&lt;p&gt;And, I think finding out the cause ourselves is better than asking others. The documentation about this attribute is as below:&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/system.web.ui.page.enableeventvalidation.aspx"&gt;http://msdn.microsoft.com/en-us/library/system.web.ui.page.enableeventvalidation.aspx&lt;/a&gt; &lt;/p&gt;
&lt;p&gt;Of course, the code would be executed in the event after adding this attribute. It just disables the event validation.&lt;/p&gt;
&lt;p&gt;Finally, I would recommend you download the tutorial video’s sample code and test it once again. I believe all these notes are already included in the video. &lt;br /&gt;&lt;a href="http://www.asp.net/learn/ajax-videos/video-77.aspx"&gt;http://www.asp.net/learn/ajax-videos/video-77.aspx&lt;/a&gt; &lt;br /&gt;&lt;a href="http://www.asp.net/learn/ajax-videos/video-278.aspx"&gt;http://www.asp.net/learn/ajax-videos/video-278.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Zhi-Qiang Ni&lt;/p&gt;</description></item><item><title>Re: Inconsistencies in Ajax tutorial</title><link>http://forums.asp.net/thread/3282911.aspx</link><pubDate>Thu, 09 Jul 2009 07:34:59 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3282911</guid><dc:creator>sunny74</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3282911.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1022&amp;PostID=3282911</wfw:commentRss><description>&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Hi Zhi-Qiang,&lt;/p&gt;&lt;p&gt;I am now facing a new problem.&lt;/p&gt;&lt;p&gt;After converting my 3 DropDowns to AJAX Cascading ones all the events of the DropDowns have ceased to work. I have written some code in the SelectedIndexChanged event of the DropDowns but they aren&amp;#39;t working.&lt;/p&gt;&lt;p&gt;I have a ADD button on the page, when I press it I get the following error:&lt;/p&gt;&lt;p&gt;Invalid postback or callback argument. &amp;nbsp;Event validation is enabled using &amp;lt;pages enableEventValidation=&amp;quot;true&amp;quot;/&amp;gt; in configuration or &amp;lt;%@ Page EnableEventValidation=&amp;quot;true&amp;quot; %&amp;gt; in a page. &amp;nbsp;For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. &amp;nbsp;If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

&lt;span&gt;
&lt;h1&gt;Server Error in &amp;#39;/WrMapTracking&amp;#39; Application.
&lt;hr /&gt;
&lt;/h1&gt;
&lt;h2&gt;&lt;i&gt;Invalid postback or callback argument. &amp;nbsp;Event validation is enabled using 
&amp;lt;pages enableEventValidation=&amp;quot;true&amp;quot;/&amp;gt; in configuration or &amp;lt;%@ Page 
EnableEventValidation=&amp;quot;true&amp;quot; %&amp;gt; in a page. &amp;nbsp;For security purposes, this 
feature verifies that arguments to postback or callback events originate from 
the server control that originally rendered them. &amp;nbsp;If the data is valid and 
expected, use the ClientScriptManager.RegisterForEventValidation method in order 
to register the postback or callback data for validation.&lt;/i&gt; &lt;/h2&gt;
&lt;/span&gt;&lt;font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif "&gt;&lt;b&gt;Description: 
&lt;/b&gt;An unhandled exception occurred during the execution of the current web 
request. Please review the stack trace for more information about the error and 
where it originated in the code. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Exception Details: 
&lt;/b&gt;System.ArgumentException: Invalid postback or callback argument. &amp;nbsp;Event 
validation is enabled using &amp;lt;pages enableEventValidation=&amp;quot;true&amp;quot;/&amp;gt; in 
configuration or &amp;lt;%@ Page EnableEventValidation=&amp;quot;true&amp;quot; %&amp;gt; in a page. &amp;nbsp;For 
security purposes, this feature verifies that arguments to postback or callback 
events originate from the server control that originally rendered them. &amp;nbsp;If the 
data is valid and expected, use the 
ClientScriptManager.RegisterForEventValidation method in order to register the 
postback or callback data for validation.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Source Error:&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;
&lt;table bgcolor="#ffffcc"&gt;

&lt;tr&gt;
&lt;td&gt;&lt;code&gt;An unhandled exception was generated during the execution of the 
current web request. Information regarding the origin and location of the 
exception can be identified using the exception stack trace below.&lt;/code&gt; 
&lt;/td&gt;
&lt;/tr&gt;

&lt;/table&gt;
&lt;br /&gt;&lt;b&gt;Stack Trace:&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;
&lt;table bgcolor="#ffffcc"&gt;

&lt;tr&gt;
&lt;td&gt;&lt;code&gt;&lt;/code&gt;
&lt;pre&gt;[ArgumentException: Invalid postback or callback argument.  Event validation is enabled using &amp;lt;pages enableEventValidation=&amp;quot;true&amp;quot;/&amp;gt; in configuration or &amp;lt;%@ Page EnableEventValidation=&amp;quot;true&amp;quot; %&amp;gt; in a page.  For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them.  If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.]
   System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId, String argument) +8620921
   System.Web.UI.Control.ValidateEvent(String uniqueID, String eventArgument) +72
   System.Web.UI.WebControls.DropDownList.LoadPostData(String postDataKey, NameValueCollection postCollection) +53
   System.Web.UI.WebControls.DropDownList.System.Web.UI.IPostBackDataHandler.LoadPostData(String postDataKey, NameValueCollection postCollection) +13
   System.Web.UI.Page.ProcessPostData(NameValueCollection postData, Boolean fBeforeLoad) +346
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1743
&lt;/pre&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;/table&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;b&gt;Version Information:&lt;/b&gt;&amp;nbsp;Microsoft .NET Framework Version:2.0.50727.3053; 
ASP.NET Version:2.0.50727.3053 &lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;So it seems server side event validation has gone crazy.How to set things right?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;If I add the code “EnableEventValidation=&amp;quot;false&amp;quot; will the code in the events get executed?&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks for your reply.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Inconsistencies in Ajax tutorial</title><link>http://forums.asp.net/thread/3282854.aspx</link><pubDate>Thu, 09 Jul 2009 07:01:58 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3282854</guid><dc:creator>Zhi-Qiang Ni - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3282854.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1022&amp;PostID=3282854</wfw:commentRss><description>&lt;p&gt;Hi sunny74,&lt;/p&gt;
&lt;p&gt;The ServicePath should be “XXX.asmx” rather than “XXX.cs.asmx”, I believe the code in the tutorial is a careless mistake.&lt;/p&gt;
&lt;p&gt;For the third DropDownList, because the two parameters can be sent by the CascadingDropDown’s service method, I would recommend you use this method:&lt;br /&gt;&lt;/p&gt;&lt;pre class="c-sharp:nogutter" name="code"&gt;        StringDictionary kv = CascadingDropDown.ParseKnownCategoryValuesString(knownCategoryValues);
        //int FeaturesID;
        //DictionaryEntry[] myArr = new DictionaryEntry[kv.Count];
        //kv.CopyTo(myArr, 0);
        string ddval1 = myArr[0].Value.ToString();//you should use the kv[&amp;quot;the first Category&amp;quot;], for example: kv[“Make”].
        string ddval2 = myArr[1].Value.ToString();//you should use the kv[&amp;quot;the second Category&amp;quot;], for example: kv[“Modal”].
        //Then, send the two selected value into the GetData method, for example:
        colorTable = carColorAdapter.GetColorByModelAndMake(ddval1, ddval2);&lt;/pre&gt;
&lt;p&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please copy and test my sample code of how to control parent by child locally, you will understand the relationship&amp;nbsp;between each&amp;nbsp;of these&amp;nbsp;CascadingDropDowns:&lt;br /&gt;&lt;a href="http://forums.asp.net/p/1319523/2626490.aspx#2626490"&gt;http://forums.asp.net/p/1319523/2626490.aspx#2626490&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Zhi-Qiang Ni&lt;/p&gt;</description></item><item><title>Re: Inconsistencies in Ajax tutorial</title><link>http://forums.asp.net/thread/3282771.aspx</link><pubDate>Thu, 09 Jul 2009 06:10:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3282771</guid><dc:creator>sunny74</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3282771.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1022&amp;PostID=3282771</wfw:commentRss><description>&lt;p&gt;Hi Zhi_Qiang,&lt;/p&gt;&lt;p&gt;Thanks for ur reply.&lt;/p&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;Zhi-Qiang Ni - MSFT:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;/p&gt;&lt;p&gt;1.The constructor function of CascadingDropDownNameValue class is like this:&lt;br /&gt;New CascadingDropDownNameValue(name, value)&lt;/p&gt;
&lt;p&gt;So, you can set both the “value” as the parameters: &lt;br /&gt;values.Add(new CascadingDropDownNameValue(features, features));&lt;/p&gt;&lt;p&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;The above suggestion of yours works.&lt;/p&gt;&lt;p&gt;if i put values.Add(new CascadingDropDownNameValue(features, features));&lt;/p&gt;&lt;p&gt;I get the actual DropDownList text which is what i need because my query doesn&amp;#39;t have Id&amp;#39;s with the features or attributes.&lt;/p&gt;&lt;p&gt;But for getting this value from knownCategoryValues if I use&lt;/p&gt;&lt;p&gt;string ddval1 = kv[knownCategoryValues]; &lt;/p&gt;&lt;p&gt;I get ddval1 as null.&lt;/p&gt;&lt;p&gt;Then on searching the net I found that StringDictionary can be converted into DictionaryEntry array. &lt;/p&gt;&lt;p&gt;In regard to the webservice function for the 3rd Dropdown knownCategoryValues has the Key,value pair for both the 1st and 2nd DropDowns and I am getting their values in the following way.&lt;/p&gt;&lt;p&gt;StringDictionary kv = CascadingDropDown.ParseKnownCategoryValuesString(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; knownCategoryValues);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //int FeaturesID;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DictionaryEntry[] myArr = new DictionaryEntry[kv.Count];&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; kv.CopyTo(myArr, 0);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string ddval1 = myArr[0].Value.ToString();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string ddval2 = myArr[1].Value.ToString();&lt;/p&gt;&lt;p&gt;But there are still some problems with regard to the 4 tuturials in this site.The mark up as given there is:&lt;/p&gt;&lt;p&gt;&amp;lt;ajaxToolkit:CascadingDropDown ID=&amp;quot;ccd1&amp;quot; runat=&amp;quot;server&amp;quot; ServicePath=&amp;quot;CascadingDropdown0.cs.asmx&amp;quot; ServiceMethod=&amp;quot;GetVendors&amp;quot; TargetControlID=&amp;quot;VendorsList&amp;quot; Category=&amp;quot;Vendor&amp;quot; /&amp;gt;&lt;/p&gt;&lt;p&gt;Now the webservice file given in service path is .cs.asmx. But I have created so many web services but didn&amp;#39;t get any file with that extension.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/fan/images/icon-quote.gif"&gt; &lt;strong&gt;Zhi-Qiang Ni - MSFT:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;Please refer to my reply carefully: &lt;a href="http://forums.asp.net/p/1274181/2427806.aspx#2427806"&gt;http://forums.asp.net/p/1274181/2427806.aspx#2427806&lt;/a&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;/p&gt;&lt;p&gt;I went thru&amp;#39; the post given in the link above and your suggestion:&lt;/p&gt;&lt;p&gt;&amp;quot;2.&amp;nbsp;&amp;nbsp; There is no relation between them
&lt;/p&gt;&lt;p&gt;Each of the two DropDownLists – the ddlMake, theddlYear could get
data from the DataBase separately. Then, we simply need to tie both of
them to the DataBase. And, in the SelectedChange events of them, tie
the filtered Data to the ddlStyle. There is no need to use the
CascadingDropDown Control if more than one parent can control the child
control.&amp;quot;&lt;/p&gt;&lt;p&gt;U r saying that if that if a child dropdown has to depend on 2 or more parents for its value then there is no need to make it a Cascading DropDown. But in my case the situation is the same but I have made the second dropdown as the parent of third one but its getting the value of both the first and second thru&amp;#39; knownCategoryValues. So I think it can work for more than 2 dropdowns also.&amp;#39;&lt;/p&gt;&lt;p&gt;Ur another suggestion:&lt;/p&gt;&lt;p&gt;&amp;quot;&amp;nbsp; &lt;/p&gt;&lt;p&gt;Note:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;div&gt;Place all of the Controls into an UpdatePanel, and set the
property AutoPostBack as true. Then, the behavior of selection change
would seem more smooth.&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;div&gt;Add this code “EnableEventValidation=&amp;quot;false&amp;quot;” into the page code,
otherwise, an error
“Sys.WebForms.PageRequestManagerServerErrorException: Invalid postback
or callback argument.” would be thrown. &amp;quot;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;I tried to do that but I get error in the HTML mark up itself.It doesn&amp;#39;t allow me to put the UpdatePanel. My mark is given in the previous reply.&lt;/p&gt;&lt;p&gt;How to overcome this problem? &lt;/p&gt;&lt;p&gt;Warm Regards.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Inconsistencies in Ajax tutorial</title><link>http://forums.asp.net/thread/3280607.aspx</link><pubDate>Wed, 08 Jul 2009 07:33:29 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3280607</guid><dc:creator>Zhi-Qiang Ni - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3280607.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1022&amp;PostID=3280607</wfw:commentRss><description>&lt;p&gt;Hi sunny74,&lt;/p&gt;
&lt;p&gt;1.The constructor function of CascadingDropDownNameValue class is like this:&lt;br /&gt;New CascadingDropDownNameValue(name, value)&lt;/p&gt;
&lt;p&gt;So, you can set both the “value” as the parameters: &lt;br /&gt;values.Add(new CascadingDropDownNameValue(features, features));&lt;/p&gt;
&lt;p&gt;2.For the third CascadingDropDown&lt;br /&gt;We can’t set two parents on one CacadingDropDown extender. The logic of the cascading is: the second DropDownList’s options are searched by the first one’s selection, the third one is depend on the second one, and so on. The Data in the DB should also be&amp;nbsp;in this relationship:&lt;br /&gt;For example: Make-Modal-Color.&lt;br /&gt;So, when the first two values are selected, the third options&amp;nbsp;have already been&amp;nbsp;searched by this: select * from db where Make=”make” and Modal=”Modal”.&lt;br /&gt;Please refer to my reply carefully: &lt;a href="http://forums.asp.net/p/1274181/2427806.aspx#2427806"&gt;http://forums.asp.net/p/1274181/2427806.aspx#2427806&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Zhi-Qiang Ni&lt;/p&gt;</description></item><item><title>Re: Inconsistencies in Ajax tutorial</title><link>http://forums.asp.net/thread/3278200.aspx</link><pubDate>Tue, 07 Jul 2009 06:29:26 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3278200</guid><dc:creator>sunny74</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3278200.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1022&amp;PostID=3278200</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;In a reply to one of the posts u had mentioned that if a child dropdown has multiple parents then the 3 dd&amp;#39;s should be placed in a update panel and on doing so it will get the Ajax functionality.&lt;/p&gt;&lt;p&gt;I tried to put all my my dropdowns within a update panel. My mark up is as below:&lt;/p&gt;&lt;p&gt;&amp;lt;table&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&amp;lt;td colspan=&amp;#39;4&amp;#39;&amp;gt;Choose the Options&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&amp;lt;th&amp;gt;&amp;lt;b&amp;gt;Features&amp;lt;/b&amp;gt;&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;&amp;lt;b&amp;gt;Attributes&amp;lt;/b&amp;gt;&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;&amp;lt;b&amp;gt;Operators&amp;lt;/b&amp;gt;&amp;lt;/th&amp;gt;&amp;lt;th&amp;gt;&amp;lt;b&amp;gt;Values&amp;lt;/b&amp;gt;&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:DropDownList ID=&amp;quot;DropDownList1&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:DropDownList&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt; &amp;lt;asp:DropDownList ID=&amp;quot;DropDownList2&amp;quot; runat=&amp;quot;server&amp;quot; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; onprerender=&amp;quot;DropDownList2_PreRender&amp;quot; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; onselectedindexchanged=&amp;quot;DropDownList2_SelectedIndexChanged&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:DropDownList&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt; &amp;lt;asp:DropDownList ID=&amp;quot;DropDownList3&amp;quot; runat=&amp;quot;server&amp;quot; Height=&amp;quot;16px&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:ListItem Value=&amp;quot;0&amp;quot;&amp;gt;Select One&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:ListItem Value=&amp;quot;1&amp;quot;&amp;gt;=&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:ListItem Value=&amp;quot;2&amp;quot;&amp;gt;!=&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:ListItem Value=&amp;quot;3&amp;quot;&amp;gt;&amp;amp;lt;&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:ListItem Value=&amp;quot;4&amp;quot;&amp;gt;&amp;amp;gt;&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:ListItem Value=&amp;quot;5&amp;quot;&amp;gt;&amp;amp;lt;=&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:ListItem Value=&amp;quot;6&amp;quot;&amp;gt;&amp;amp;gt;=&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:ListItem Value=&amp;quot;7&amp;quot;&amp;gt;Like&amp;lt;/asp:ListItem&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:DropDownList&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt; &amp;lt;asp:DropDownList ID=&amp;quot;DropDownList4&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/asp:DropDownList&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;Selected Value&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:TextBox ID=&amp;quot;TextBox3&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cc1:CascadingDropDown ID=&amp;quot;CascadingDropDown1&amp;quot; runat=&amp;quot;server&amp;quot; ServicePath=&amp;quot;FeatureService.asmx&amp;quot; ServiceMethod=&amp;quot;GetFeatures&amp;quot; PromptText=&amp;quot;Select a Feature&amp;quot; TargetControlID=&amp;quot;DropDownList1&amp;quot; Category=&amp;quot;Features&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/cc1:CascadingDropDown&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cc1:CascadingDropDown ID=&amp;quot;CascadingDropDown2&amp;quot; runat=&amp;quot;server&amp;quot; ServicePath=&amp;quot;FeatureService.asmx&amp;quot; ServiceMethod=&amp;quot;GetAttributes&amp;quot; PromptText=&amp;quot;Select an Attribute&amp;quot; TargetControlID=&amp;quot;Attributes&amp;quot; Category=&amp;quot;Column&amp;quot; ParentControlID=&amp;quot;Features&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/cc1:CascadingDropDown&amp;gt; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Button ID=&amp;quot;btnADD&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;quot;ADD&amp;quot; /&amp;gt;&amp;amp;nbsp;&amp;lt;asp:Button ID=&amp;quot;btnOR&amp;quot; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; runat=&amp;quot;server&amp;quot; Text=&amp;quot;OR&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;nbsp;&amp;lt;/td&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;nbsp;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&amp;lt;td colspan=&amp;quot;4&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:TextBox ID=&amp;quot;TextBox4&amp;quot; runat=&amp;quot;server&amp;quot; Height=&amp;quot;16px&amp;quot; Width=&amp;quot;437px&amp;quot;&amp;gt;&amp;lt;/asp:TextBox&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;nbsp;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;asp:Button ID=&amp;quot;Button7&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;quot;Submit&amp;quot; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; onclick=&amp;quot;Button7_Click&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Button ID=&amp;quot;Button8&amp;quot; runat=&amp;quot;server&amp;quot; Text=&amp;quot;Clear Selection&amp;quot; /&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;nbsp;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;asp:Label ID=&amp;quot;Label2&amp;quot; runat=&amp;quot;server&amp;quot;&amp;gt;&amp;lt;/asp:Label&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;amp;nbsp;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;nbsp;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;nbsp;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/table&amp;gt;&lt;/p&gt;&lt;p&gt;But if I put the table within the update panel I get error and also if i put update panel inside the table. &lt;/p&gt;&lt;p&gt;So this suggestion of yours doesn&amp;#39;t work in my case.Any other suggestions?&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Inconsistencies in Ajax tutorial</title><link>http://forums.asp.net/thread/3278145.aspx</link><pubDate>Tue, 07 Jul 2009 06:10:19 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3278145</guid><dc:creator>sunny74</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3278145.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1022&amp;PostID=3278145</wfw:commentRss><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Thanks for your reply.&lt;br /&gt;&lt;br /&gt;I had gone thru&amp;#39; the following tutorials before making this post ,I found the problems to which I am referring now.&lt;br /&gt;&lt;br /&gt;http://www.asp.net/learn/Ajax-Control-Toolkit/tutorial-14-cs.aspx&lt;br /&gt;http://www.asp.net/learn/Ajax-Control-Toolkit/tutorial-15-cs.aspx&lt;br /&gt;http://www.asp.net/learn/Ajax-Control-Toolkit/tutorial-16-cs.aspx&lt;br /&gt;http://www.asp.net/learn/Ajax-Control-Toolkit/tutorial-17-cs.aspx&lt;br /&gt;&lt;br /&gt;My scenario is like this: I have 3 DropDowns Features, Attributes and Values.Now Attributes is filled on the basis of Features but Values is filled on the basis of Features as well as Attributes.&lt;/p&gt;&lt;p&gt;Now I am having 2 problems:&lt;/p&gt;&lt;p&gt;1)The Features Dropdown is filled by the GetFeatures function of the webservice.You will see that the featureid is not coming from the database but I am adding it thru code in the values List. So&amp;nbsp; in the function for the next DropDown when I write the code:&lt;/p&gt;&lt;p&gt;StringDictionary kv =&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CascadingDropDown.ParseKnownCategoryValuesString(&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; knownCategoryValues);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int FeaturesID;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!kv.ContainsKey(&amp;quot;Features&amp;quot;) || !Int32.TryParse(kv[&amp;quot;Features&amp;quot;], out FeaturesID))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return null;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/p&gt;&lt;p&gt;I get the featureid value of 1,2 etc but I need the actual feature name&lt;/p&gt;&lt;p&gt;because then I can get the Attributes i.e Column names from the selected Feature table.&lt;/p&gt;&lt;p&gt;How can I get the actual dropdown texts?&lt;/p&gt;&lt;p&gt;2)For the third DropDown I hav 2 parents i.e Features and Attributes.&lt;/p&gt;&lt;p&gt;How to get their values in the function for the 3rd DD?&lt;/p&gt;&lt;p&gt;In the markup can I write multiple ParentControlID like&lt;/p&gt;&lt;p&gt;ParentControlID=&amp;quot;Features&amp;quot; ParentControlID=&amp;quot;Attributes&amp;quot;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thanks.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Inconsistencies in Ajax tutorial</title><link>http://forums.asp.net/thread/3277958.aspx</link><pubDate>Tue, 07 Jul 2009 04:13:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3277958</guid><dc:creator>Zhi-Qiang Ni - MSFT</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3277958.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1022&amp;PostID=3277958</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Firstly, I would recommend you refer to the tutorials of CascadingDropDown&amp;nbsp;and the download the sample code inside:&lt;/p&gt;
&lt;p&gt;&lt;a href="http://www.asp.net/learn/Ajax-Control-Toolkit/tutorial-14-cs.aspx"&gt;http://www.asp.net/learn/Ajax-Control-Toolkit/tutorial-14-cs.aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.asp.net/learn/Ajax-Control-Toolkit/tutorial-15-cs.aspx"&gt;http://www.asp.net/learn/Ajax-Control-Toolkit/tutorial-15-cs.aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.asp.net/learn/Ajax-Control-Toolkit/tutorial-16-cs.aspx"&gt;http://www.asp.net/learn/Ajax-Control-Toolkit/tutorial-16-cs.aspx&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.asp.net/learn/Ajax-Control-Toolkit/tutorial-17-cs.aspx"&gt;http://www.asp.net/learn/Ajax-Control-Toolkit/tutorial-17-cs.aspx&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;1. About the &lt;strong&gt;knownCategoryValues&lt;/strong&gt; parameter, I think this description is detailed enough:&lt;/p&gt;
&lt;p&gt;The &lt;strong&gt;knownCategoryValues&lt;/strong&gt; parameter will return a string containing the currently selected category values, as well as the category to retrieve values for. For example, if the extender is populating the &amp;quot;Color&amp;quot; field, you will be passed the values for the &amp;quot;Make&amp;quot; and &amp;quot;Model&amp;quot; fields, as well as &amp;quot;Color&amp;quot; to specify the field to return values for.&lt;/p&gt;
&lt;p&gt;The GetFeature method is the first CascadingDropDown&amp;#39;s service method, this control can not get any knownCategoryValues because there are no parents control&amp;#39;s options are selected. But&amp;nbsp;for your second CascadingDropDown, you can find its parent&amp;#39;s selection and category in its ServiceMethod&amp;#39;s &lt;strong&gt;knownCategoryValues&lt;/strong&gt; parameter.&lt;/p&gt;
&lt;p&gt;2. You can use any DataBase to get the Data in the ServiceMethod. The key is accessing the parent&amp;#39;s seleted value as the DataMethod&amp;#39;s&amp;nbsp;parameter. At last, we have to change the return&amp;nbsp;type to the &lt;span style="COLOR:teal;"&gt;CascadingDropDownNameValue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Here are some similar threads, you can understand the relationship between the parent and child after referring to these:&lt;br /&gt;&lt;a href="http://forums.asp.net/p/1274181/2429707.aspx#2429707" target="_blank"&gt;http://forums.asp.net/p/1274181/2429707.aspx#2429707&lt;/a&gt;&lt;br /&gt;&lt;a href="http://forums.asp.net/p/1319523/2626490.aspx#2626490" target="_blank"&gt;http://forums.asp.net/p/1319523/2626490.aspx#2626490&lt;/a&gt;&lt;br /&gt;&lt;a href="http://forums.asp.net/p/1424307/3178232.aspx#3178232" target="_blank"&gt;http://forums.asp.net/p/1424307/3178232.aspx#3178232&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Zhi-Qiang Ni&lt;/p&gt;</description></item></channel></rss>