<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/1.5.1.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: A couple of small gems</title>
	<link>http://dave.sunwheeltech.com/wordpress/2006/03/31/a-couple-of-small-gems/</link>
	<description>Dave Crane's weblog</description>
	<pubDate>Thu, 29 Jul 2010 13:03:31 +0000</pubDate>
	<generator>http://wordpress.org/?v=1.5.1.2</generator>

	<item>
		<title>by: dave</title>
		<link>http://dave.sunwheeltech.com/wordpress/2006/03/31/a-couple-of-small-gems/#comment-20877</link>
		<pubDate>Fri, 04 May 2007 06:43:21 +0000</pubDate>
		<guid>http://dave.sunwheeltech.com/wordpress/2006/03/31/a-couple-of-small-gems/#comment-20877</guid>
					<description>Hi, Dev,

I'm not an expert with ASP.Net, I'm afraid - I don't know if I can be much help.

What sort of control are you trying to validate? Text? Numeric? Date? An entire form? Your question doesn't give me much information to go on. 

One golden rule that I can offer - if you validate in the JavaScript, then make sure you validate again on the server, for security reasons.

All the best,

Dave</description>
		<content:encoded><![CDATA[	<p>Hi, Dev,</p>
	<p>I&#8217;m not an expert with ASP.Net, I&#8217;m afraid - I don&#8217;t know if I can be much help.</p>
	<p>What sort of control are you trying to validate? Text? Numeric? Date? An entire form? Your question doesn&#8217;t give me much information to go on. </p>
	<p>One golden rule that I can offer - if you validate in the JavaScript, then make sure you validate again on the server, for security reasons.</p>
	<p>All the best,</p>
	<p>Dave
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Devnarayan Yadav</title>
		<link>http://dave.sunwheeltech.com/wordpress/2006/03/31/a-couple-of-small-gems/#comment-20745</link>
		<pubDate>Thu, 03 May 2007 06:53:47 +0000</pubDate>
		<guid>http://dave.sunwheeltech.com/wordpress/2006/03/31/a-couple-of-small-gems/#comment-20745</guid>
					<description>Hello sir I want to use  js validation on webcontrol of webuserControl of asp.net 


please give me some tips

THANKS
Regards
Dev</description>
		<content:encoded><![CDATA[	<p>Hello sir I want to use  js validation on webcontrol of webuserControl of asp.net </p>
	<p>please give me some tips</p>
	<p>THANKS<br />
Regards<br />
Dev
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Phil McCarthy</title>
		<link>http://dave.sunwheeltech.com/wordpress/2006/03/31/a-couple-of-small-gems/#comment-135</link>
		<pubDate>Mon, 03 Apr 2006 21:36:15 +0000</pubDate>
		<guid>http://dave.sunwheeltech.com/wordpress/2006/03/31/a-couple-of-small-gems/#comment-135</guid>
					<description>Seconded, you *need* to install FireBug, and never look back. It does all the Ajax-related stuff you could only previously get if you had the JS console, Web Developer Toolbar, DOM Inspector and Live HTTP Headers open simultaneously.

Oh, and you can log to it from JS with the printFire() call, and it has a commandline to evaluate JS statements.

-- Phil</description>
		<content:encoded><![CDATA[	<p>Seconded, you *need* to install FireBug, and never look back. It does all the Ajax-related stuff you could only previously get if you had the JS console, Web Developer Toolbar, DOM Inspector and Live HTTP Headers open simultaneously.</p>
	<p>Oh, and you can log to it from JS with the printFire() call, and it has a commandline to evaluate JS statements.</p>
	<p>&#8211; Phil
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Jim</title>
		<link>http://dave.sunwheeltech.com/wordpress/2006/03/31/a-couple-of-small-gems/#comment-134</link>
		<pubDate>Mon, 03 Apr 2006 09:16:59 +0000</pubDate>
		<guid>http://dave.sunwheeltech.com/wordpress/2006/03/31/a-couple-of-small-gems/#comment-134</guid>
					<description>Hi, 

I need your help with this and I hope you can tell me what I must do to 
fix this. 
I have AJAXPRO setup and running fine with 3 linked dropdowns 
(countries,states,towns) 
I'm using this in the CreateUserWizard control, in a web user control, 
in a content page from a non-nested masterpage. I created a step called 
userprofile, added a text control Zip code/Postal town with a regex 
validation, added the 3 dropdown controls and it's working fine getting 
the data with AJAXPRO BUT when I click the finish button or previous 
button it generates the following error: 


Invalid postback or callback argument.  Event validation is enabled 
using  in configuration or  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. 
Description: 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. 


Exception Details: System.ArgumentException: Invalid postback or 
callback argument.  Event validation is enabled using  in configuration or  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. 


Source Error: 


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. 


Stack Trace: 


[ArgumentException: Invalid postback or callback argument.  Event 
validation is enabled using  in 
configuration or  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) +367 
   System.Web.UI.Control.ValidateEvent(String uniqueID, String 
eventArgument) +83 
   System.Web.UI.WebControls.DropDownList.LoadPostData(String 
postDataKey, NameValueCollection postCollection) +89 


System.Web.UI.WebControls.DropDownList.System.Web.UI.IPostBackDataHandler.L­oadPostData(String 
postDataKey, NameValueCollection postCollection) +36 
   System.Web.UI.Page.ProcessPostData(NameValueCollection postData, 
Boolean fBeforeLoad) +479 
   System.Web.UI.Page.ProcessRequestMain(Boolean 
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) 
+2549</description>
		<content:encoded><![CDATA[	<p>Hi, </p>
	<p>I need your help with this and I hope you can tell me what I must do to<br />
fix this.<br />
I have AJAXPRO setup and running fine with 3 linked dropdowns<br />
(countries,states,towns)<br />
I&#8217;m using this in the CreateUserWizard control, in a web user control,<br />
in a content page from a non-nested masterpage. I created a step called<br />
userprofile, added a text control Zip code/Postal town with a regex<br />
validation, added the 3 dropdown controls and it&#8217;s working fine getting<br />
the data with AJAXPRO BUT when I click the finish button or previous<br />
button it generates the following error: </p>
	<p>Invalid postback or callback argument.  Event validation is enabled<br />
using  in configuration or  in a page.  For security purposes,<br />
this feature verifies that arguments to postback or callback events<br />
originate from the server control that originally rendered them.  If<br />
the data is valid and expected, use the<br />
ClientScriptManager.RegisterForEventValidation method in order to<br />
register the postback or callback data for validation.<br />
Description: An unhandled exception occurred during the execution of<br />
the current web request. Please review the stack trace for more<br />
information about the error and where it originated in the code. </p>
	<p>Exception Details: System.ArgumentException: Invalid postback or<br />
callback argument.  Event validation is enabled using  in configuration or  in a page.  For security purposes, this<br />
feature verifies that arguments to postback or callback events<br />
originate from the server control that originally rendered them.  If<br />
the data is valid and expected, use the<br />
ClientScriptManager.RegisterForEventValidation method in order to<br />
register the postback or callback data for validation. </p>
	<p>Source Error: </p>
	<p>An unhandled exception was generated during the execution of the<br />
current web request. Information regarding the origin and location of<br />
the exception can be identified using the exception stack trace below. </p>
	<p>Stack Trace: </p>
	<p>[ArgumentException: Invalid postback or callback argument.  Event<br />
validation is enabled using  in<br />
configuration or  in a page.<br />
For security purposes, this feature verifies that arguments to postback<br />
or callback events originate from the server control that originally<br />
rendered them.  If the data is valid and expected, use the<br />
ClientScriptManager.RegisterForEventValidation method in order to<br />
register the postback or callback data for validation.]<br />
   System.Web.UI.ClientScriptManager.ValidateEvent(String uniqueId,<br />
String argument) +367<br />
   System.Web.UI.Control.ValidateEvent(String uniqueID, String<br />
eventArgument) +83<br />
   System.Web.UI.WebControls.DropDownList.LoadPostData(String<br />
postDataKey, NameValueCollection postCollection) +89 </p>
	<p>System.Web.UI.WebControls.DropDownList.System.Web.UI.IPostBackDataHandler.L­oadPostData(String<br />
postDataKey, NameValueCollection postCollection) +36<br />
   System.Web.UI.Page.ProcessPostData(NameValueCollection postData,<br />
Boolean fBeforeLoad) +479<br />
   System.Web.UI.Page.ProcessRequestMain(Boolean<br />
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)<br />
+2549
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Jim Plush</title>
		<link>http://dave.sunwheeltech.com/wordpress/2006/03/31/a-couple-of-small-gems/#comment-133</link>
		<pubDate>Sat, 01 Apr 2006 19:13:14 +0000</pubDate>
		<guid>http://dave.sunwheeltech.com/wordpress/2006/03/31/a-couple-of-small-gems/#comment-133</guid>
					<description>Might I suggest the FireBug firefox extension which you can use instead of the JS console, it even has support for debugging xmlHTTPRequests. Its invaluable. 

that and venkman debugger are two extensions I cannot live without for ajax development

Jim</description>
		<content:encoded><![CDATA[	<p>Might I suggest the FireBug firefox extension which you can use instead of the JS console, it even has support for debugging xmlHTTPRequests. Its invaluable. </p>
	<p>that and venkman debugger are two extensions I cannot live without for ajax development</p>
	<p>Jim
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
