<?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 UI</title><link>http://forums.asp.net/1008.aspx</link><description>Here you can discuss UI-related issues with AJAX such as controls and client-side functionality including Silverlight controls for ASP.NET</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Update panel, wizard control and Javascript crash</title><link>http://forums.asp.net/thread/1747414.aspx</link><pubDate>Sun, 10 Jun 2007 08:25:06 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1747414</guid><dc:creator>orphicfireball</dc:creator><author>orphicfireball</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1747414.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1747414</wfw:commentRss><description>&lt;p&gt;The official documentation says this, &amp;quot;To make the validators compatible with an &lt;a href="http://ajax.asp.net/docs/mref/T_System_Web_UI_UpdatePanel.aspx"&gt;UpdatePanel&lt;/a&gt; control, set the &lt;a href="http://msdn2.microsoft.com/en-us/7t054e90"&gt;EnableClientScript&lt;/a&gt; property of the validators to &lt;span class="keyword"&gt;false&lt;/span&gt;.
This disables the client script that would ordinarily be used to
perform validation in the browser. As a result, during an asynchronous
postback, the validators perform validation on the server. However,
because only the content of the &lt;span class="nolink"&gt;UpdatePanel&lt;/span&gt; is refreshed, the validators can provide the kind of immediate feedback that is ordinarily provided by client script.&amp;quot; (&lt;a href="http://ajax.asp.net/docs/overview/UpdatePanelOverview.aspx" target="_blank"&gt;http://ajax.asp.net/docs/overview/UpdatePanelOverview.aspx&lt;/a&gt;)&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;
Does this mean there will never be an update?&lt;br /&gt;
&lt;/p&gt;</description></item><item><title>Re: Update panel, wizard control and Javascript crash</title><link>http://forums.asp.net/thread/1552420.aspx</link><pubDate>Sun, 28 Jan 2007 23:14:48 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1552420</guid><dc:creator>bobothebugbear</dc:creator><author>bobothebugbear</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1552420.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1552420</wfw:commentRss><description>I found out about the validators.dll a couple days ago and this was the solution for my problem as well.&amp;nbsp; Nice to know that 1.0 was pushed out before the validators DLL was included with an update with windows as mentioned.&amp;nbsp; Makes you wonder if any place that includes the DLL will stop working once the window update is made available and applied. :)&lt;br /&gt;</description></item><item><title>Re: Update panel, wizard control and Javascript crash</title><link>http://forums.asp.net/thread/1549548.aspx</link><pubDate>Fri, 26 Jan 2007 03:19:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1549548</guid><dc:creator>dmose</dc:creator><author>dmose</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1549548.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1549548</wfw:commentRss><description>&lt;p&gt;I had some drama today when I installed 1.0 however there is a fix posted by Scott G today regarding Validation controls inside Updae panels.&amp;nbsp; I installed the patch and everything is working fine.&amp;nbsp; FYI I don't put my whole wizard in a panel I have multiple update panels for each wizard step and I also trap the navigate event and check if(!Page.IsValid) property.&lt;/p&gt;
&lt;p&gt;You need to get the Validators.dll and reference it, then add back the Tag mapping to your web.config ..clear you browser history/delete all files etc and go from there.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://blogs.msdn.com/mattgi/archive/2007/01/23/asp-net-ajax-validators.aspx"&gt;http://blogs.msdn.com/mattgi/archive/2007/01/23/asp-net-ajax-validators.aspx&lt;/a&gt;&lt;/p&gt;</description></item><item><title>Re: Update panel, wizard control and Javascript crash</title><link>http://forums.asp.net/thread/1549261.aspx</link><pubDate>Thu, 25 Jan 2007 22:52:33 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1549261</guid><dc:creator>bobothebugbear</dc:creator><author>bobothebugbear</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1549261.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1549261</wfw:commentRss><description>&lt;p&gt;Seemed like a great idea and when I tried it I still received the error message.&amp;nbsp; I have similar to what others said yet same error.&amp;nbsp; I have an update panel around a wizard control.&amp;nbsp; Nothing fancy. Step 1 has required fields, no problem with validation.&amp;nbsp; Step 2 has validation control.&amp;nbsp; Error identical to 1st post.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;Made the validationgroup for the validationsummary and set this in the requiredfieldvalidator control.&amp;nbsp; Tried what Matt wrote but this didn't work. This is all with the latest release v1.0.&lt;/p&gt;
&lt;p&gt;Anyone have an idea of what may be causing this and a possible solution?&lt;/p&gt;
&lt;p&gt;thanks ^_^&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;blockquote&gt;&lt;div&gt;&lt;img src="http://forums.asp.net/Themes/default/images/icon-quote.gif" /&gt; &lt;strong&gt;Matt M:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;/blockquote&gt;&lt;/p&gt;
&lt;p&gt;If you make the validators group validators, the error will disappear and the wizard will work as expected.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This will work fine:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class=coloredcode&gt;&amp;lt;&lt;span class=tag&gt;asp:TextBox&lt;/span&gt;&lt;span class=attr&gt; runat=&lt;/span&gt;&lt;span class=attrv&gt;"server"&lt;/span&gt;&lt;span class=attr&gt; ID=&lt;/span&gt;&lt;span class=attrv&gt;"AddressLine1TextBox"&lt;/span&gt;&lt;span class=attr&gt; Width=&lt;/span&gt;&lt;span class=attrv&gt;"90%"&lt;/span&gt; /&amp;gt;
                                        &amp;lt;&lt;span class=tag&gt;asp:RequiredFieldValidator&lt;/span&gt;&lt;span class=attr&gt; ID=&lt;/span&gt;&lt;span class=attrv&gt;"RequiredFieldValidator1"&lt;/span&gt;&lt;span class=attr&gt; runat=&lt;/span&gt;&lt;span class=attrv&gt;"server"&lt;/span&gt; 
&lt;span class=attr&gt;                                            ErrorMessage=&lt;/span&gt;&lt;span class=attrv&gt;"An address is required."&lt;/span&gt;&lt;span class=attr&gt; ValidationGroup=&lt;/span&gt;&lt;span class=attrv&gt;"page1"&lt;/span&gt;
&lt;span class=attr&gt;                                            ControlToValidate=&lt;/span&gt;&lt;span class=attrv&gt;"AddressLine1TextBox"&lt;/span&gt;&lt;span class=attr&gt; SetFocusOnError=&lt;/span&gt;&lt;span class=attrv&gt;"true"&lt;/span&gt; /&amp;gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;While this will crash and burn:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class=coloredcode&gt;&amp;lt;&lt;span class=tag&gt;asp:TextBox&lt;/span&gt;&lt;span class=attr&gt; runat=&lt;/span&gt;&lt;span class=attrv&gt;"server"&lt;/span&gt;&lt;span class=attr&gt; ID=&lt;/span&gt;&lt;span class=attrv&gt;"AddressLine1TextBox"&lt;/span&gt;&lt;span class=attr&gt; Width=&lt;/span&gt;&lt;span class=attrv&gt;"90%"&lt;/span&gt; /&amp;gt;
                                        &amp;lt;&lt;span class=tag&gt;asp:RequiredFieldValidator&lt;/span&gt;&lt;span class=attr&gt; ID=&lt;/span&gt;&lt;span class=attrv&gt;"RequiredFieldValidator1"&lt;/span&gt;&lt;span class=attr&gt; runat=&lt;/span&gt;&lt;span class=attrv&gt;"server"&lt;/span&gt; 
&lt;span class=attr&gt;                                            ErrorMessage=&lt;/span&gt;&lt;span class=attrv&gt;"An address is required."&lt;/span&gt;&lt;span class=attr&gt; ControlToValidate=&lt;/span&gt;&lt;span class=attrv&gt;"AddressLine1TextBox"&lt;/span&gt;&lt;span class=attr&gt; SetFocusOnError=&lt;/span&gt;&lt;span class=attrv&gt;"true"&lt;/span&gt; /&amp;gt;&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To make sure they fire as required, modify the ActiveStepChanged or SideBarButtonClick functions.&amp;nbsp; For example:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class=coloredcode&gt;&lt;span class=kwd&gt;Protected Sub&lt;/span&gt; NewFormWizard_SideBarButtonClick(&lt;span class=kwd&gt;ByVal&lt;/span&gt; sender &lt;span class=kwd&gt;As Object&lt;/span&gt;, &lt;span class=kwd&gt;ByVal&lt;/span&gt; e &lt;span class=kwd&gt;As&lt;/span&gt; System.Web.UI.WebControls.WizardNavigationEventArgs) _
        &lt;span class=kwd&gt;Handles&lt;/span&gt; NewFormWizard.SideBarButtonClick

        &lt;span class=kwd&gt;If&lt;/span&gt; e.NextStepIndex &amp;gt; e.CurrentStepIndex &lt;span class=kwd&gt;Then&lt;/span&gt;
            Validate(&lt;span class=st&gt;"page1"&lt;/span&gt;)
            &lt;span class=kwd&gt;If Not&lt;/span&gt; Page.IsValid() &lt;span class=kwd&gt;Then&lt;/span&gt;
                e.Cancel = &lt;span class=kwd&gt;True
            Else&lt;/span&gt;
                &lt;span class=cmt&gt;' we need to explicitly set this to false&lt;/span&gt;
                e.Cancel = &lt;span class=kwd&gt;False
            End If
        End If
    End Sub&lt;/span&gt;&lt;/pre&gt;&amp;nbsp; The first IF statement is to allow users to go backwards in the wizard without forcing them to fill out the current page.&amp;nbsp; Most of the info here was gathered from a post on the forums: http://forums.asp.net/thread/1385194.aspx .&lt;br /&gt;</description></item><item><title>Re: Update panel, wizard control and Javascript crash</title><link>http://forums.asp.net/thread/1430118.aspx</link><pubDate>Mon, 16 Oct 2006 14:48:21 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1430118</guid><dc:creator>Matt M</dc:creator><author>Matt M</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1430118.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1430118</wfw:commentRss><description>&lt;p&gt;If you make the validators group validators, the error will disappear and the wizard will work as expected.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;This will work fine:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&amp;lt;&lt;span class="tag"&gt;asp:TextBox&lt;/span&gt;&lt;span class="attr"&gt; runat=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;server&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; ID=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;AddressLine1TextBox&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Width=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;90%&amp;quot;&lt;/span&gt; /&amp;gt;
                                        &amp;lt;&lt;span class="tag"&gt;asp:RequiredFieldValidator&lt;/span&gt;&lt;span class="attr"&gt; ID=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;RequiredFieldValidator1&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; runat=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;server&amp;quot;&lt;/span&gt; 
&lt;span class="attr"&gt;                                            ErrorMessage=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;An address is required.&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; ValidationGroup=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;page1&amp;quot;&lt;/span&gt;
&lt;span class="attr"&gt;                                            ControlToValidate=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;AddressLine1TextBox&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; SetFocusOnError=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;true&amp;quot;&lt;/span&gt; /&amp;gt;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;While this will crash and burn:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&amp;lt;&lt;span class="tag"&gt;asp:TextBox&lt;/span&gt;&lt;span class="attr"&gt; runat=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;server&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; ID=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;AddressLine1TextBox&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; Width=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;90%&amp;quot;&lt;/span&gt; /&amp;gt;
                                        &amp;lt;&lt;span class="tag"&gt;asp:RequiredFieldValidator&lt;/span&gt;&lt;span class="attr"&gt; ID=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;RequiredFieldValidator1&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; runat=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;server&amp;quot;&lt;/span&gt; 
&lt;span class="attr"&gt;                                            ErrorMessage=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;An address is required.&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; ControlToValidate=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;AddressLine1TextBox&amp;quot;&lt;/span&gt;&lt;span class="attr"&gt; SetFocusOnError=&lt;/span&gt;&lt;span class="attrv"&gt;&amp;quot;true&amp;quot;&lt;/span&gt; /&amp;gt;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;p&gt;To make sure they fire as required, modify the ActiveStepChanged or SideBarButtonClick functions.&amp;nbsp; For example:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre class="coloredcode"&gt;&lt;span class="kwd"&gt;Protected Sub&lt;/span&gt; NewFormWizard_SideBarButtonClick(&lt;span class="kwd"&gt;ByVal&lt;/span&gt; sender &lt;span class="kwd"&gt;As Object&lt;/span&gt;, &lt;span class="kwd"&gt;ByVal&lt;/span&gt; e &lt;span class="kwd"&gt;As&lt;/span&gt; System.Web.UI.WebControls.WizardNavigationEventArgs) _
        &lt;span class="kwd"&gt;Handles&lt;/span&gt; NewFormWizard.SideBarButtonClick

        &lt;span class="kwd"&gt;If&lt;/span&gt; e.NextStepIndex &amp;gt; e.CurrentStepIndex &lt;span class="kwd"&gt;Then&lt;/span&gt;
            Validate(&lt;span class="st"&gt;&amp;quot;page1&amp;quot;&lt;/span&gt;)
            &lt;span class="kwd"&gt;If Not&lt;/span&gt; Page.IsValid() &lt;span class="kwd"&gt;Then&lt;/span&gt;
                e.Cancel = &lt;span class="kwd"&gt;True
            Else&lt;/span&gt;
                &lt;span class="cmt"&gt;&amp;#39; we need to explicitly set this to false&lt;/span&gt;
                e.Cancel = &lt;span class="kwd"&gt;False
            End If
        End If
    End Sub&lt;/span&gt;&lt;/pre&gt;&amp;nbsp; The first IF statement is to allow users to go backwards in the wizard without forcing them to fill out the current page.&amp;nbsp; Most of the info here was gathered from a post on the forums: http://forums.asp.net/thread/1385194.aspx .&lt;br /&gt;</description></item><item><title>Re: Update panel, wizard control and Javascript crash</title><link>http://forums.asp.net/thread/1429673.aspx</link><pubDate>Mon, 16 Oct 2006 04:01:44 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1429673</guid><dc:creator>Sindol</dc:creator><author>Sindol</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1429673.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1429673</wfw:commentRss><description>I&amp;#39;m having the same exact problem, same exact error message. Removing all the Validators in the wizard solves the problem, as does removing the Atlas update panel. Oddly enough, this error doesn&amp;#39;t occur on Firefox, only in IE. Has anyone come up with a fix, I tried adding a control and validator to my steps but all that did was prevent the Next button from working, but the error went away.&lt;br /&gt;</description></item><item><title>Update panel, wizard control and Javascript crash</title><link>http://forums.asp.net/thread/1366825.aspx</link><pubDate>Thu, 10 Aug 2006 12:19:52 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1366825</guid><dc:creator>zebigbuild</dc:creator><author>zebigbuild</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1366825.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1008&amp;PostID=1366825</wfw:commentRss><description>&lt;p&gt;Hi everybody!&lt;/p&gt;
&lt;p&gt;I have an issue with the July CTP. I have a page with an update panel that contains a wizard control, and each wizard step is a web user control. These user controls contains form fields (text boxes, lists, ...) and most of them use validator control to enable the wizard going to next step.&lt;/p&gt;
&lt;p&gt;It works well for the first steps, but i get a javascript error "Microsoft JScript runtime error: 'null' is null or not an object" as soon I reach a step that does not use validator control. Here is the call stack when the error occurs:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;ValidatorGetValue&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;CustomValidatorEvaluateIsValid&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;ValidatorValidate&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Page_ClientValidate&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;WebForm_DoPostBackWithOptions&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;JScript - aspnetForm anonymous function&lt;/p&gt;
&lt;p&gt;All of these have "JScript" as language value.&lt;/p&gt;
&lt;p&gt;Going forward (F5), Visual Studio shows me a JavaScript source code related to &lt;a href="http://localhost:3464/MyWebSite/WebResource.axd"&gt;http://localhost:3464/MyWebSite/WebResource.axd&lt;/a&gt;. The crashing function is:&lt;/p&gt;&lt;font size=2&gt;
&lt;p&gt;function ValidatorGetValue(id) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var control;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;control = document.getElementById(id);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color=#ff0000&gt;if (typeof(control.value) == "string") {&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;&amp;lt;&amp;lt;&amp;lt; crash here&lt;/font&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;return control.value;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return ValidatorGetValueRecursive(control);&lt;br /&gt;}&lt;/p&gt;&lt;/font&gt;
&lt;p&gt;... isn't it some missing "control" null value checking??? ;-)&lt;/p&gt;
&lt;p&gt;Searching for a workaround, it seems clear to me that the exception is due to the fact I do not have a validator on the related wizard step, when there was validators on the preceding steps.&lt;/p&gt;
&lt;p&gt;One solution might be to disable page validation for steps that does not use validators... But I've tried something else: putting a fake textbox and validator on this page... it works, I am now able to move to next step..... but I have now a textbox and a validator I do not need&amp;nbsp;on my page :-)))&lt;/p&gt;
&lt;p&gt;Do you ave another idea to go around this issue?&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Phil.&lt;/p&gt;</description></item></channel></rss>