<?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>Web Forms</title><link>http://forums.asp.net/18.aspx</link><description>All about building ASP.NET Pages - server controls, events, validation, etc.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: EnableEvenValidation to false on a .ascx</title><link>http://forums.asp.net/thread/3334920.aspx</link><pubDate>Fri, 07 Aug 2009 07:49:53 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3334920</guid><dc:creator>Monalisa1</dc:creator><author>Monalisa1</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3334920.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=3334920</wfw:commentRss><description>&lt;p&gt;I had the same issue and it is fixed now.&lt;/p&gt;
&lt;p&gt;I was using update panel with update mode=&amp;quot;conditional&amp;quot; in my page and also having trigeer thn that update panel.&lt;/p&gt;
&lt;p&gt;Previously i was having enable viewstate=&amp;quot;false&amp;#39; for update panel.When i make it true (or removed it ) then the page worked very nicely&lt;/p&gt;
&lt;p&gt;No Need to disable EnableEventValidation. As this not safe to use.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description></item><item><title>Re: EnableEvenValidation to false on a .ascx</title><link>http://forums.asp.net/thread/3281222.aspx</link><pubDate>Wed, 08 Jul 2009 12:40:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3281222</guid><dc:creator>shahed.kazi</dc:creator><author>shahed.kazi</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3281222.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=3281222</wfw:commentRss><description>&lt;p&gt;You will need to disable this from the page that is using the use control. Add this in the page declaration.&lt;/p&gt;&lt;p&gt;&amp;lt;%@ Page Language=&amp;quot;C#&amp;quot; AutoEventWireup=&amp;quot;true&amp;quot; CodeBehind=&amp;quot;Default.aspx.cs&amp;quot; Inherits=&amp;quot;_Default&amp;quot; EnableEventValidation=&amp;quot;false&amp;quot;&amp;nbsp; %&amp;gt;&lt;/p&gt;</description></item><item><title>Re: EnableEvenValidation to false on a .ascx</title><link>http://forums.asp.net/thread/3281194.aspx</link><pubDate>Wed, 08 Jul 2009 12:30:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3281194</guid><dc:creator>sirdneo</dc:creator><author>sirdneo</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3281194.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=3281194</wfw:commentRss><description>&lt;p&gt;I personally recommended that do not disable event validation. If
you want to disable event validation, ensure that no postback could be
constructed that could have an unintended effect on your application.&lt;/p&gt;&lt;p&gt;Also if you have multple controls on your page , you can&amp;#39;t set &lt;b&gt;EnableEventValidation&lt;/b&gt; for individual controls.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;This error generally comes when you modify the contents of page using javascripts, such as add new values in combobox using javascript. Try to figure out why the problem is comming.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>EnableEvenValidation to false on a .ascx</title><link>http://forums.asp.net/thread/3275169.aspx</link><pubDate>Sun, 05 Jul 2009 07:21:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3275169</guid><dc:creator>savior14</dc:creator><author>savior14</author><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3275169.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=18&amp;PostID=3275169</wfw:commentRss><description>&lt;p&gt;is there a way to turn this off on a .ascx?&lt;/p&gt;&lt;p&gt;&lt;img src="http://www.vbforums.com/attachment.php?attachmentid=71755&amp;amp;stc=1&amp;amp;d=1246777352" width="800" height="139" alt="" /&gt;&lt;/p&gt;&lt;p&gt;afaik its only for aspx. and the alternative way is setting it off on web.config.&lt;br /&gt;but in my situation i cannot do that, it&amp;#39;ll affect all the pages on the project im on.&lt;br /&gt;&lt;br /&gt;there&amp;#39;s also another way that ive read on a blog is using the &amp;quot;&lt;b&gt;RegisterForEventValidation&lt;/b&gt;&amp;quot;. but using this, you need to register all the &lt;b&gt;POSSIBLE VALUES&lt;/b&gt; that a user can input. (thats totally insane) tried this but, but as ive said, need to register all the possible values. so this is no use.&lt;/p&gt;&lt;pre name="code" class="vb.net"&gt;        Protected Overrides Sub Render(ByVal writer As HtmlTextWriter)
            For j As Integer = 0 To Session(&amp;quot;grdSubCore&amp;quot;).Items.Count - 1
                For i As Integer = 0 To Session(&amp;quot;grdSubCore&amp;quot;).Items.Item(j).FindControl(&amp;quot;grdSkillsets&amp;quot;).Items.Count - 1
                    Dim lblskillid As Label = DirectCast(Me.Session(&amp;quot;grdSubCore&amp;quot;).Items.Item(j).FindControl(&amp;quot;grdSkillsets&amp;quot;).Items.Item(i).FindControl(&amp;quot;lblskillid&amp;quot;), Label)
                    Page.ClientScript.RegisterForEventValidation(lblskillid.UniqueID, lblskillid.Text)
                    Dim txtYear As TextBox = DirectCast(Session(&amp;quot;grdSubCore&amp;quot;).Items.Item(j).FindControl(&amp;quot;grdSkillsets&amp;quot;).Items.Item(i).FindControl(&amp;quot;txtYear&amp;quot;), TextBox)
                    Page.ClientScript.RegisterForEventValidation(txtYear.UniqueID, txtYear.Text)
                    Dim txtMonth As TextBox = DirectCast(Session(&amp;quot;grdSubCore&amp;quot;).Items.Item(j).FindControl(&amp;quot;grdSkillsets&amp;quot;).Items.Item(i).FindControl(&amp;quot;txtMonth&amp;quot;), TextBox)
                    Page.ClientScript.RegisterForEventValidation(txtMonth.UniqueID, txtMonth.Text)
                    Dim txtWeek As TextBox = DirectCast(Session(&amp;quot;grdSubCore&amp;quot;).Items.Item(j).FindControl(&amp;quot;grdSkillsets&amp;quot;).Items.Item(i).FindControl(&amp;quot;txtWeek&amp;quot;), TextBox)
                    Page.ClientScript.RegisterForEventValidation(txtWeek.UniqueID, txtWeek.Text)
                    Dim txtDay As TextBox = DirectCast(Session(&amp;quot;grdSubCore&amp;quot;).Items.Item(j).FindControl(&amp;quot;grdSkillsets&amp;quot;).Items.Item(i).FindControl(&amp;quot;txtDay&amp;quot;), TextBox)
                    Page.ClientScript.RegisterForEventValidation(txtDay.UniqueID, txtDay.Text)
                    Dim cbAble As CheckBox = DirectCast(Session(&amp;quot;grdSubCore&amp;quot;).Items.Item(j).FindControl(&amp;quot;grdSkillsets&amp;quot;).Items.Item(i).FindControl(&amp;quot;cbAble&amp;quot;), CheckBox)
                    Page.ClientScript.RegisterForEventValidation(cbAble.UniqueID, cbAble.Text)
                    Dim imgUpdate As ImageButton = DirectCast(Session(&amp;quot;grdSubCore&amp;quot;).Items.Item(j).FindControl(&amp;quot;grdSkillsets&amp;quot;).Items.Item(i).FindControl(&amp;quot;ImageButton2&amp;quot;), ImageButton)
                    Page.ClientScript.RegisterForEventValidation(imgUpdate.UniqueID, imgUpdate.AlternateText)
                Next
            Next
            Page.ClientScript.RegisterForEventValidation(Me.Page.UniqueID)
            Dim upgrdSubCore As UpdatePanel = DirectCast(FindControl(&amp;quot;upgrdSubCore&amp;quot;), UpdatePanel)
            Page.ClientScript.RegisterForEventValidation(upgrdSubCore.UniqueID)
            Dim UpdatePanelSkillsets As UpdatePanel = DirectCast(FindControl(&amp;quot;UpdatePanelSkillsets&amp;quot;), UpdatePanel)
            Page.ClientScript.RegisterForEventValidation(UpdatePanelSkillsets.UniqueID)
            Dim dgSubCore As DataGrid = DirectCast(FindControl(&amp;quot;grdSubCore&amp;quot;), DataGrid)
            Page.ClientScript.RegisterForEventValidation(dgSubCore.UniqueID)
            &amp;#39;Dim dgSkillset As DataGrid = DirectCast(dgSubCore.FindControl(&amp;quot;grdSkillsets&amp;quot;), DataGrid)
            &amp;#39;Page.ClientScript.RegisterForEventValidation(Session(&amp;quot;grdSkillset&amp;quot;).UniqueID.ToString())
            Dim btnSave As Button = DirectCast(FindControl(&amp;quot;btnSave&amp;quot;), Button)
            Page.ClientScript.RegisterForEventValidation(btnSave.UniqueID, btnSave.Text)
            Dim label3 As Label = DirectCast(FindControl(&amp;quot;Label3&amp;quot;), Label)
            Page.ClientScript.RegisterForEventValidation(label3.UniqueID, label3.Text)
            Dim btnCancel As Button = DirectCast(FindControl(&amp;quot;btnCancel&amp;quot;), Button)
            Page.ClientScript.RegisterForEventValidation(btnCancel.UniqueID, btnCancel.Text)
            MyBase.Render(writer)
        End Sub&lt;/pre&gt;&lt;p&gt;errr, ive got alot of textboxes on nested datagrids on a datagrid ~.~.&lt;/p&gt;&lt;p&gt;&lt;img src="http://img136.imageshack.us/img136/7465/whyonlyhere.png" width="921" height="414" alt="" /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;anything i can to make this possible? like setting it on web.config but for a certain page only? i also cant turn it off using &lt;b&gt;Page.EnableEventValidation = False&lt;/b&gt; on page init, it says i need to set it on page directively. (T_T)&lt;br /&gt;&lt;br /&gt;any help pls? help is very very much appreciated. tnx!&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>