﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebInput - WebInput 4 Client Side Event OnChange does not fire</title><link>http://www.intersoftsolutions.com/Community/WebInput/WebInput-4-Client-Side-Event-OnChange-does-not-fire/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>WebInput 4 Client Side Event OnChange does not fire</title><link>http://www.intersoftsolutions.com/Community/WebInput/WebInput-4-Client-Side-Event-OnChange-does-not-fire/</link><pubDate>Thu, 07 Jan 2010 01:54:42 GMT</pubDate><dc:creator>Glayaar</dc:creator><description>&lt;p&gt;Since WebInput already been enhance to have OnBeforeValueChanged and OnAfterValueChanged, the OnChange client side function is deprecated.&lt;/p&gt;&lt;p&gt;The OnChange property will be removed in the next version of WebInput.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>WebInput 4 Client Side Event OnChange does not fire</title><link>http://www.intersoftsolutions.com/Community/WebInput/WebInput-4-Client-Side-Event-OnChange-does-not-fire/</link><pubDate>Wed, 06 Jan 2010 18:48:06 GMT</pubDate><dc:creator>DJBadin</dc:creator><description>&lt;p&gt;The Client Side Event OnChange does not fire.&lt;/p&gt;
&lt;p&gt;OnAfterValueChanged Event does fire.  Just change the OnChange Attribute Name to OnAfterValueChanged and it's value to WebInput1_OnAfterValueChanged.&lt;/p&gt;
&lt;p&gt;This code was taken from the C# WebInputSamples, WebInputEvents.aspx.&lt;/p&gt;&lt;pre&gt;&amp;lt;%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default3.aspx.cs" Inherits="_Test_InterSoft_WebInput_Default3" %&amp;gt;

&amp;lt;%@ Register Assembly="ISNet.WebUI.WebInput" Namespace="ISNet.WebUI.WebControls" TagPrefix="ISWebInput" %&amp;gt;

&amp;lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&amp;gt;

&amp;lt;html xmlns="http://www.w3.org/1999/xhtml"&amp;gt;
&amp;lt;head runat="server"&amp;gt;
	&amp;lt;title&amp;gt;&amp;lt;/title&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
	&amp;lt;form id="form1" runat="server"&amp;gt;
	&amp;lt;div&amp;gt;

		&amp;lt;ISWebInput:WebInput
			ID="WebInput1"
			runat="server"
			Text="1.0"
			MaxLength="5"
			Width="40px"
			CssClass="StandardFont"
			NumericInput="True"
		&amp;gt;
			&amp;lt;CultureInfo CultureName="en-US"&amp;gt;&amp;lt;/CultureInfo&amp;gt;
			&amp;lt;DisplayFormat
				ErrorMessage="Enter a Valid Quantity"
				ErrorText="Enter a Valid Quantity"
				IsEnabled="True"
				Type="Number"
				Format="#,###.0"
			&amp;gt;
			&amp;lt;/DisplayFormat&amp;gt;
			&amp;lt;TextBoxStyle&amp;gt;
				&amp;lt;Normal
					Font-Names="Times New Roman"
					Font-Size="10pt"
					HorizontalAlign="Right"
				&amp;gt;
				&amp;lt;/Normal&amp;gt;
				&amp;lt;Over BaseStyle="Normal" /&amp;gt;
				&amp;lt;Active BaseStyle="Normal" &amp;gt;
				&amp;lt;/Active&amp;gt;
			&amp;lt;/TextBoxStyle&amp;gt;
			&amp;lt;ClientSideEvents
				OnChange="WebInput1_OnChange"
			&amp;gt;
			&amp;lt;/ClientSideEvents&amp;gt;
		&amp;lt;/ISWebInput:WebInput&amp;gt;

	&amp;lt;script language="javascript"&amp;gt;
		function WebInput1_OnAfterValueChanged(controlId)
		{
			alert("WebInput1_OnAfterValueChanged");
			var dv = document.getElementById("divStatus");
			dv.innerHTML = "OnAfterValueChanged event is triggered";
		}

		function WebInput1_OnChange(controlId)
		{
			alert("WebInput1_OnChange");
			var dv = document.getElementById("divStatus");
			dv.innerHTML = "OnChange event is triggered";
		}
	&amp;lt;/script&amp;gt;

	&amp;lt;div class="text"&amp;gt;
		&amp;lt;br /&amp;gt;
		Current Event : 
		&amp;lt;span id="divStatus" style="font-style:italic"&amp;gt;
		&amp;lt;/span&amp;gt;
	&amp;lt;/div&amp;gt;



	&amp;lt;/div&amp;gt;
	&amp;lt;/form&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/pre&gt;
</description></item></channel></rss>