<?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 Discussion and Suggestions</title><link>http://forums.asp.net/1007.aspx</link><description>This forum is the place for ASP.NET AJAX 'getting started' questions, general questions that don't fit in one of the other forums about AJAX </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: textbox text change</title><link>http://forums.asp.net/thread/3290624.aspx</link><pubDate>Mon, 13 Jul 2009 16:47:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3290624</guid><dc:creator>bond_003</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3290624.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=3290624</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;am new to ajax and havent done any sort of javascipting prior to this&lt;/p&gt;
&lt;p&gt;i TOO have been searching everywhere for a solution to my problem but havent been able to come up with one. i want to reduce the results of a list i print to a page as i type text into a textbox something based on the results printed. &lt;/p&gt;
&lt;p&gt;i need to run a function each time the text changes. i tried to do this with OnTextChanged=&amp;quot;true&amp;quot; and AutoPostBack=&amp;quot;true&amp;quot; in the textbox but this only fires the event when i get out of the textbox. &lt;/p&gt;
&lt;p&gt;these controls lie in a user control.&lt;/p&gt;
&lt;p&gt;i have this a script as in the user control page:&lt;/p&gt;&lt;pre class="xhtml" name="code"&gt;function FilterDDL()
{
        if (Trim(txtAreaCode.Text))  != &amp;quot;&amp;quot;
        {
        var lb as new listbox
        var s int
        s = 0
        for(s = 0 ; s &amp;lt; lstAreaCode.Items.Count-1 ; s=s+1)
            { if (InStr(lstAreaCode.Items(s).ToString, txtAreaCode.Text) = true)
                {lb.Items.Add(ListBox1.Items(s)) ; }
            }
        lstAreaCode.Items.Clear();
        for(s = 0; s &amp;lt;lb.Items.Count - 1;s=s+1)
        { lstAreaCode.Items.Add(lb.Items(s).ToString); }
        lb.Dispose();
        }
}&lt;/pre&gt;
&lt;p&gt;i have installed ajax control toolkit and work on vs 2005. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: textbox text change</title><link>http://forums.asp.net/thread/1348454.aspx</link><pubDate>Fri, 21 Jul 2006 22:45:16 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1348454</guid><dc:creator>erickvch</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1348454.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1348454</wfw:commentRss><description>&lt;p&gt;Hi! I got a similar problem. &lt;/p&gt;
&lt;p&gt;I need that an atlas update panel refreshes when the text value in a textbox Controls changes. &lt;/p&gt;
&lt;p&gt;I have a trigger that works fine when I type text in the textbox. So far so good.&lt;/p&gt;
&lt;p&gt;However, the textbox can also be filled by a javascript function that runs on a calendar&amp;nbsp;popup. In this case no event is thrown and my panel isn't updated. So what can I do to handle that change on the text? &lt;/p&gt;
&lt;p&gt;Here is some of&amp;nbsp;the code:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&amp;lt;asp:TextBox ID="TextBoxDate" runat="server" OnTextChanged="TextBoxDate_TextChanged" Width="155" AutoPostBack="true" &amp;gt;&lt;br /&gt;&amp;lt;atlas:UpdatePanel runat="server" ID="pnlSchedule" Mode="Conditional"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;Triggers&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;lt;atlas:ControlValueTrigger ControlID="TextBoxDate" PropertyName="Text" /&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;atlas:ControlEventTrigger ControlID="TextBoxDate" EventName="TextChanged" /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/Triggers&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;ContentTemplate&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;lt;asp:Table ID="tabletoUpdate" runat="server"&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/asp:Table&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/ContentTemplate&amp;gt;&lt;br /&gt;&amp;lt;/atlas:UpdatePanel&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&amp;nbsp;</description></item><item><title>Re: textbox text change</title><link>http://forums.asp.net/thread/1252254.aspx</link><pubDate>Sun, 09 Apr 2006 07:34:37 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1252254</guid><dc:creator>Pluginbaby</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1252254.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1252254</wfw:commentRss><description>&lt;p&gt;&lt;font face=Arial&gt;Really really nice one!!&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font face=Arial&gt;Thanks for the code, and the explanations with it&amp;nbsp;!&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: textbox text change</title><link>http://forums.asp.net/thread/1209783.aspx</link><pubDate>Sat, 25 Feb 2006 18:46:26 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1209783</guid><dc:creator>dleffel</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1209783.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1209783</wfw:commentRss><description>This is EXCELLENT. Thanks!&lt;br /&gt;</description></item><item><title>Re: textbox text change</title><link>http://forums.asp.net/thread/1209606.aspx</link><pubDate>Sat, 25 Feb 2006 10:40:20 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1209606</guid><dc:creator>Garbin</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1209606.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1209606</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;&lt;BLOCKQUOTE&gt;&lt;div&gt;&lt;img src="/Themes/default/images/icon-quote.gif"&gt; &lt;strong&gt;dleffel wrote:&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;I'm curious, is there a way to use the onKeyPress method where it
wouldn't fire immediately, say wait 300 miliseconds to see if there are
further changes.&lt;br /&gt;&lt;/div&gt;&lt;/BLOCKQUOTE&gt;&lt;br /&gt;nice suggestion. I've coded an Atlas behavior based on your requirement. You'll find the code &lt;a href="http://aspadvice.com/blogs/garbin/archive/2006/02/25/15360.aspx"&gt;here&lt;/a&gt;.&lt;br /&gt;</description></item><item><title>Re: textbox text change</title><link>http://forums.asp.net/thread/1209079.aspx</link><pubDate>Fri, 24 Feb 2006 18:43:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1209079</guid><dc:creator>dleffel</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1209079.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1209079</wfw:commentRss><description>I'm curious, is there a way to use the onKeyPress method where it wouldn't fire immediately, say wait 300 miliseconds to see if there are further changes. I don't want it to fire in the midst of typing a word, only when the user is done or has paused.&lt;br /&gt;&lt;br /&gt;I'm basically trying to accomplish what "onChange" accomplishes without having to leave the control.&lt;br /&gt;</description></item><item><title>Re: textbox text change</title><link>http://forums.asp.net/thread/1208087.aspx</link><pubDate>Thu, 23 Feb 2006 22:13:41 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1208087</guid><dc:creator>leoguy</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1208087.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1208087</wfw:commentRss><description>&lt;p&gt;Jarred,&lt;/p&gt;
&lt;p&gt;I wanna call a server side method from a javascript funtion, would you pls help me that.&lt;/p&gt;
&lt;p&gt;When i call the following code from aspx file , i gets error TestSearch undefined whereas TestSearch.doSearch() is defined in codebehind, Make sure its not a webserivce call.&lt;/p&gt;
&lt;p&gt;I would really appreciate you.&lt;/p&gt;
&lt;p&gt;Note: I have script library and atlas.dll in the project.&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;
&lt;p&gt;&lt;font color=#000000 size=2&gt;&amp;lt;script type="text/javascript" &amp;gt; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#000000 size=2&gt;function callSearch() { this is called from a button.&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#000000 size=2&gt;&lt;font color=#0000ff&gt;TestSearch.doSearch(OnComplete,OnTimeOut);&lt;/font&gt;&amp;nbsp; &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#000000 size=2&gt;}&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#000000 size=2&gt;function OnComplete(result) {&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#000000 size=2&gt;alert(result);&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#000000 size=2&gt;}&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#000000 size=2&gt;function OnTimeOut() {&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#000000 size=2&gt;alert("Timed Out"); &lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#000000 size=2&gt;}&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font color=#000000 size=2&gt;&amp;lt;/script&amp;gt;&lt;/font&gt;&lt;font color=#008000 size=2&gt;&lt;font color=#0000ff size=2&gt;&lt;font size=2&gt;
&lt;p&gt;&lt;font color=#000000&gt;&lt;/font&gt;&amp;nbsp;&lt;/p&gt;&lt;/font&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;</description></item><item><title>Re: textbox text change</title><link>http://forums.asp.net/thread/1199324.aspx</link><pubDate>Wed, 15 Feb 2006 19:22:30 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1199324</guid><dc:creator>rupurt</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1199324.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1199324</wfw:commentRss><description>got it working!&lt;br /&gt;&lt;br /&gt;thanks for your help people. the onkeypressed is exactly what i needed&lt;br /&gt;</description></item><item><title>Re: textbox text change</title><link>http://forums.asp.net/thread/1199224.aspx</link><pubDate>Wed, 15 Feb 2006 18:20:08 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1199224</guid><dc:creator>jarrednicholls</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1199224.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1199224</wfw:commentRss><description>&lt;p&gt;I am confident he wants the former, w/ each character typed.&amp;nbsp; My solution is the way to accomplish this.&lt;/p&gt;
&lt;p&gt;Jarred&lt;/p&gt;</description></item><item><title>Re: textbox text change</title><link>http://forums.asp.net/thread/1199198.aspx</link><pubDate>Wed, 15 Feb 2006 18:07:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1199198</guid><dc:creator>Garbin</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1199198.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1199198</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;are you using an auto-complete TextBox or a simple TextBox to do this? I don't understand if you want to update the list each time a character is typed into the TextBox or when an item is chosen from the completion list.&lt;/p&gt;</description></item><item><title>Re: textbox text change</title><link>http://forums.asp.net/thread/1199092.aspx</link><pubDate>Wed, 15 Feb 2006 17:06:05 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1199092</guid><dc:creator>jarrednicholls</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1199092.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1199092</wfw:commentRss><description>&lt;p&gt;Don't use the "Atlas API".&amp;nbsp; Just use standard JavaScript, and add a handler for onkeypress to the input, as such:&lt;br /&gt;&lt;br /&gt;&amp;lt;input type="text" id="myTextBox" onkeypress="myJavaScriptHandlerFunction();" /&amp;gt;&lt;/p&gt;
&lt;p&gt;And you're done.&amp;nbsp; Inside that handler function, pass the textbox.value to an AJAX/Atlas callback function to get server results.&lt;/p&gt;
&lt;p&gt;Understand?&lt;/p&gt;
&lt;p&gt;Jarred&lt;/p&gt;</description></item><item><title>Re: textbox text change</title><link>http://forums.asp.net/thread/1198804.aspx</link><pubDate>Wed, 15 Feb 2006 13:40:51 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1198804</guid><dc:creator>rupurt</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1198804.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1198804</wfw:commentRss><description>how do i actually go about that? i find it very hard to understand the client side of atlas because there is no autocomplete or API&lt;br /&gt;</description></item><item><title>Re: textbox text change</title><link>http://forums.asp.net/thread/1196867.aspx</link><pubDate>Mon, 13 Feb 2006 20:02:56 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1196867</guid><dc:creator>jarrednicholls</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1196867.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1196867</wfw:commentRss><description>&lt;p&gt;You should handle the onkeypress client-side event of the textbox.&amp;nbsp; That should be all you need.&amp;nbsp; In that client-side event handler, get the current textbox.value and do an AJAX callback to your server-side method for results, then update your radio list according to what's returned.&lt;/p&gt;
&lt;p&gt;Hope that helps.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jarred&lt;/p&gt;</description></item><item><title>textbox text change</title><link>http://forums.asp.net/thread/1196313.aspx</link><pubDate>Mon, 13 Feb 2006 12:29:01 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:1196313</guid><dc:creator>rupurt</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/1196313.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=1007&amp;PostID=1196313</wfw:commentRss><description>i have been searching everywhere for a solution to my problem but havent been able to come up with one.&lt;br /&gt;&lt;br /&gt;i
want to reduce the results of a list i print to a page as i type text
into a textbox something based on the results printed. so i need to run
a function each time the text changes. i tried to do this with
OnTextChanged="true" and AutoPostBack="true" in the textbox but this
only fires the event when i get out of the textbox.&lt;br /&gt;&lt;br /&gt;I have been
trying to get to grips with the atlas beta and have used the
AutoCompleteExtender but it wont work for my purposes because i need
access to a radio list control which i cant pass into a WebService
Function.&lt;br /&gt;</description></item></channel></rss>