<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>Durgut &#187; Tag: AJAX - Recent Posts</title>
<link>http://www.durgut.com/forum/</link>
<description>C#,ASP.NET,Yazılım</description>
<language>en</language>
<pubDate>Wed, 08 Feb 2012 05:28:21 +0000</pubDate>

<item>
<title>elifayse konu: "AJAX Temelleri-3 ile ilgili video"</title>
<link>http://www.durgut.com/forum/topic/ajax-temelleri-3-ile-ilgili-video#post-60</link>
<pubDate>Pts, 11 Jan 2010 16:03:15 +0000</pubDate>
<dc:creator>elifayse</dc:creator>
<guid isPermaLink="false">60@http://www.durgut.com/forum/</guid>
<description>&#60;p&#62;Bu kadar kor oldugume inanmiyorum ya. Kafami nerelere vursam bilmiyorum ki:((&#60;/p&#62;
&#60;p&#62;Dedigin gibi &#34;DataSource&#34; u &#34;Data Source&#34; olarak denedim ve calisti. &#60;/p&#62;
&#60;p&#62;Cok tesekkur ederim onurtpl.&#60;br /&#62;
Sagol.
&#60;/p&#62;</description>
</item>
<item>
<title>onurtpl konu: "AJAX Temelleri-3 ile ilgili video"</title>
<link>http://www.durgut.com/forum/topic/ajax-temelleri-3-ile-ilgili-video#post-58</link>
<pubDate>Pts, 11 Jan 2010 03:48:57 +0000</pubDate>
<dc:creator>onurtpl</dc:creator>
<guid isPermaLink="false">58@http://www.durgut.com/forum/</guid>
<description>&#60;p&#62;&#34;DataSource&#34; u &#34;Data Source&#34; olarak dene.&#60;/p&#62;
&#60;p&#62;oda olmazsa Onu Server olarak değiştir.
&#60;/p&#62;</description>
</item>
<item>
<title>elifayse konu: "AJAX Temelleri-3 ile ilgili video"</title>
<link>http://www.durgut.com/forum/topic/ajax-temelleri-3-ile-ilgili-video#post-57</link>
<pubDate>Cum, 08 Jan 2010 13:17:33 +0000</pubDate>
<dc:creator>elifayse</dc:creator>
<guid isPermaLink="false">57@http://www.durgut.com/forum/</guid>
<description>&#60;p&#62;merhaba onurtpl,&#60;/p&#62;
&#60;p&#62;dediginiz gibi ilgili satiri sildim ama bu sefer de farkli bir exception firlatti. getcustomer.aspx dosyasindaki su satiri isaret ederek=&#60;br /&#62;
SqlConnection connection = new SqlConnection(connectionstring);&#60;/p&#62;
&#60;p&#62;Bu hata mesajini verdi=&#60;br /&#62;
Keyword not supported:'datasource'&#60;/p&#62;
&#60;p&#62;Customer.htm dosyasini calistirmadan once SQL Server'i acmistim. AYrica web.config dosyasindaki connectionString'i de su sekilde yazmistim=&#60;/p&#62;
&#60;p&#62;&#38;lt;connectionStrings&#38;gt;&#60;br /&#62;
    &#38;lt;add name=&#34;NorthwindConnectionString&#34; connectionString=&#34;DataSource=.; Initial Catalog=Northwind; Integrated Security=True&#34;/&#38;gt;&#60;br /&#62;
  &#38;lt;/connectionStrings&#38;gt;&#60;/p&#62;
&#60;p&#62;?:(
&#60;/p&#62;</description>
</item>
<item>
<title>onurtpl konu: "AJAX Temelleri-3 ile ilgili video"</title>
<link>http://www.durgut.com/forum/topic/ajax-temelleri-3-ile-ilgili-video#post-55</link>
<pubDate>Cum, 08 Jan 2010 04:11:15 +0000</pubDate>
<dc:creator>onurtpl</dc:creator>
<guid isPermaLink="false">55@http://www.durgut.com/forum/</guid>
<description>&#60;p&#62;&#34;function showCustomer&#34; satırının altındaki &#34;var xmlHttp&#34; satırını sil düzelmesi lazım.&#60;/p&#62;
&#60;p&#62;Bu şekilde bir aynı isimli bir xmlHttp objesi daha yaratılı ve bu durumlarda localdeki objeye öncelik verilir. yani xmlHttp = GetXMLHttpObject(); işlemi local objeye atanıyor.&#60;/p&#62;
&#60;p&#62;stateChanged de kullanılan global obje null olarak kullanılmaya çalışılıyor.
&#60;/p&#62;</description>
</item>
<item>
<title>elifayse konu: "AJAX Temelleri-3 ile ilgili video"</title>
<link>http://www.durgut.com/forum/topic/ajax-temelleri-3-ile-ilgili-video#post-54</link>
<pubDate>Pts, 04 Jan 2010 13:06:39 +0000</pubDate>
<dc:creator>elifayse</dc:creator>
<guid isPermaLink="false">54@http://www.durgut.com/forum/</guid>
<description>&#60;p&#62;Tabiki. Kod aynen soyle: &#60;/p&#62;
&#60;p&#62;Customer.htm&#60;/p&#62;
&#60;p&#62;&#38;lt;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&#38;gt;&#60;br /&#62;
&#38;lt;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34; &#38;gt;&#60;br /&#62;
&#38;lt;head&#38;gt;&#60;br /&#62;
    &#38;lt;title&#38;gt;&#38;lt;/title&#38;gt;&#60;br /&#62;
    &#38;lt;script type=&#34;text/javascript&#34;&#38;gt;&#60;br /&#62;
        var xmlHttp;&#60;br /&#62;
        function showCustomer(str) {&#60;br /&#62;
            var xmlHttp;&#60;br /&#62;
            if (str == &#34;-1&#34;) {&#60;br /&#62;
                document.getElementById(&#34;txtHint&#34;).innerHTML = &#34;&#34;;&#60;br /&#62;
                return;&#60;br /&#62;
            }&#60;/p&#62;
&#60;p&#62;            xmlHttp = GetXMLHttpObject();&#60;br /&#62;
            if (xmlHttp == null) {&#60;br /&#62;
                alert(&#34;browseriniz AJAX desteklemiyor&#34;);&#60;br /&#62;
                return;&#60;br /&#62;
            }&#60;/p&#62;
&#60;p&#62;            var url = &#34;getcustomer.aspx&#34;;&#60;br /&#62;
            url += &#34;?q=&#34; + str;&#60;br /&#62;
            xmlHttp.onreadystatechange = stateChanged;&#60;br /&#62;
            xmlHttp.open(&#34;GET&#34;, url, true);&#60;br /&#62;
            xmlHttp.send(null);&#60;br /&#62;
        }&#60;/p&#62;
&#60;p&#62;        function stateChanged() {&#60;br /&#62;
            if (xmlHttp.readyState == 4) {&#60;br /&#62;
                document.getElementById(&#34;txtHint&#34;).innerHTML = xmlHttp.responseText;&#60;br /&#62;
            }&#60;br /&#62;
            else {&#60;br /&#62;
                document.getElementById(&#34;txtHint&#34;).innerHTML = &#34;loading...&#34;;&#60;br /&#62;
            }&#60;br /&#62;
        }&#60;/p&#62;
&#60;p&#62;        function GetXMLHttpObject() {&#60;br /&#62;
            var xmlHttp = null;&#60;br /&#62;
            try {&#60;br /&#62;
                xmlHttp = new XMLHttpRequest();&#60;br /&#62;
            }&#60;br /&#62;
            catch (e) { &#60;/p&#62;
&#60;p&#62;                try{&#60;br /&#62;
                xmlHttp=new ActiveXObject(&#34;Msxml2.XMLHTTP&#34;);&#60;br /&#62;
                }&#60;br /&#62;
                catch(e){&#60;br /&#62;
                xmlHttp=new ActiveXObject(&#34;Microsoft.XMLHTTP&#34;);&#60;br /&#62;
                }&#60;br /&#62;
            }&#60;br /&#62;
            return xmlHttp;&#60;br /&#62;
        }&#60;/p&#62;
&#60;p&#62;    &#38;lt;/script&#38;gt;&#60;br /&#62;
&#38;lt;/head&#38;gt;&#60;br /&#62;
&#38;lt;body&#38;gt;&#60;/p&#62;
&#60;p&#62;    &#38;lt;select id=&#34;customer&#34; onchange=&#34;showCustomer(this.value)&#34;&#38;gt;&#60;br /&#62;
        &#38;lt;option value=&#34;-1&#34;&#38;gt;Select One&#38;lt;/option&#38;gt;&#60;br /&#62;
        &#38;lt;option value=&#34;ALFKI&#34;&#38;gt;Alfred&#38;lt;/option&#38;gt;&#60;br /&#62;
        &#38;lt;option value=&#34;NORTS&#34;&#38;gt;North&#38;lt;/option&#38;gt;&#60;br /&#62;
        &#38;lt;option value=&#34;WOLZA&#34;&#38;gt;Wolski&#38;lt;/option&#38;gt;&#60;br /&#62;
    &#38;lt;/select&#38;gt;&#60;br /&#62;
   &#38;lt;p&#38;gt;&#60;br /&#62;
        &#38;lt;div id=&#34;txtHint&#34;&#38;gt;&#60;br /&#62;
            &#38;lt;b&#38;gt;Customer info will be listed here&#38;lt;/b&#38;gt;&#60;br /&#62;
        &#38;lt;/div&#38;gt;&#60;br /&#62;
   &#38;lt;/p&#38;gt;&#60;br /&#62;
&#38;lt;/body&#38;gt;&#60;br /&#62;
&#38;lt;/html&#38;gt;&#60;/p&#62;
&#60;p&#62;getcustomer.aspx&#60;/p&#62;
&#60;p&#62;using System;&#60;br /&#62;
using System.Collections.Generic;&#60;br /&#62;
using System.Linq;&#60;br /&#62;
using System.Web;&#60;br /&#62;
using System.Web.UI;&#60;br /&#62;
using System.Web.UI.WebControls;&#60;br /&#62;
using System.Configuration;&#60;br /&#62;
using System.Data.SqlClient;&#60;br /&#62;
using System.Data;&#60;/p&#62;
&#60;p&#62;namespace AjaxOrnekleri&#60;br /&#62;
{&#60;br /&#62;
    public partial class getcustomer : System.Web.UI.Page&#60;br /&#62;
    {&#60;br /&#62;
        protected void Page_Load(object sender, EventArgs e)&#60;br /&#62;
        {&#60;br /&#62;
            string connectionstring = ConfigurationManager.ConnectionStrings[&#34;NorthwindConnectionString&#34;].ConnectionString;&#60;br /&#62;
            SqlConnection connection = new SqlConnection(connectionstring);&#60;br /&#62;
            string sql = &#34;SELECT * FROM CUSTOMERS WHERE CUSTOMERID='&#34;+Request.QueryString[&#34;q&#34;]+&#34;'&#34;;&#60;br /&#62;
            connection.Open();&#60;br /&#62;
            SqlCommand cmd= new SqlCommand(sql,connection);&#60;br /&#62;
            SqlDataReader dr= cmd.ExecuteReader(CommandBehavior.CloseConnection);&#60;br /&#62;
            Response.Write(&#34;&#38;lt;table&#38;gt;&#34;);&#60;br /&#62;
            while (dr.Read())&#60;br /&#62;
	{&#60;br /&#62;
        for (int i = 0; i &#38;lt; dr.FieldCount; i++)&#60;br /&#62;
			{&#60;br /&#62;
			Response.Write(&#34;&#38;lt;tr&#38;gt;&#38;lt;td&#38;gt;&#38;lt;b&#38;gt;&#34;+dr.GetName(i).ToString()+&#34;&#38;lt;b&#38;gt;&#38;lt;/td&#38;gt;&#34;);&#60;br /&#62;
            Response.Write(&#34;&#38;lt;td&#38;gt;&#34;+dr.GetValue(i).ToString()+&#34;&#38;lt;/td&#38;gt;&#38;lt;/tr&#38;gt;&#34;);&#60;br /&#62;
			}&#60;br /&#62;
	}&#60;br /&#62;
            Response.Write(&#34;&#38;lt;/table&#38;gt;&#34;);&#60;br /&#62;
            Response.End();&#60;br /&#62;
        }&#60;br /&#62;
    }&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;Web.config&#60;/p&#62;
&#60;p&#62;		&#38;lt;/sectionGroup&#38;gt;&#60;br /&#62;
		&#38;lt;/sectionGroup&#38;gt;&#60;br /&#62;
	&#38;lt;/configSections&#38;gt;&#60;br /&#62;
	&#38;lt;appSettings/&#38;gt;&#60;/p&#62;
&#60;p&#62;  &#38;lt;connectionStrings&#38;gt;&#60;br /&#62;
    &#38;lt;add name=&#34;NorthwindConnectionString&#34; connectionString=&#34;DataSource=.; Initial Catalog=Northwind; Integrated Security=True&#34;/&#38;gt;&#60;br /&#62;
  &#38;lt;/connectionStrings&#38;gt;&#60;/p&#62;
&#60;p&#62;	&#38;lt;system.web&#38;gt;&#60;br /&#62;
		&#38;lt;!--&#60;br /&#62;
            Set compilation....
&#60;/p&#62;</description>
</item>
<item>
<title>fatihdurgut konu: "AJAX Temelleri-3 ile ilgili video"</title>
<link>http://www.durgut.com/forum/topic/ajax-temelleri-3-ile-ilgili-video#post-52</link>
<pubDate>Pts, 04 Jan 2010 07:10:16 +0000</pubDate>
<dc:creator>fatihdurgut</dc:creator>
<guid isPermaLink="false">52@http://www.durgut.com/forum/</guid>
<description>&#60;p&#62;kodunuda gonderir misin ?
&#60;/p&#62;</description>
</item>
<item>
<title>elifayse konu: "AJAX Temelleri-3 ile ilgili video"</title>
<link>http://www.durgut.com/forum/topic/ajax-temelleri-3-ile-ilgili-video#post-49</link>
<pubDate>Çar, 30 Dec 2009 16:46:08 +0000</pubDate>
<dc:creator>elifayse</dc:creator>
<guid isPermaLink="false">49@http://www.durgut.com/forum/</guid>
<description>&#60;p&#62;Merhaba,&#60;/p&#62;
&#60;p&#62;AJAX ile ilgili konu basligi olmadigi icin buraya yaziyorum. Umarim yanlis yapmiyorumdur.&#60;/p&#62;
&#60;p&#62;AJAX Temelleri-3 ile ilgili video'dakini yapmaya calistigimda bana soyle bir hata verdi:&#60;/p&#62;
&#60;p&#62;Microsoft JScript runtime error: 'xmlHttp.readyState' is null or not an object&#60;/p&#62;
&#60;p&#62;Video'daki kodun tipkisinin aynisini yazdim. Neden boyle bir hata aldigimi anlayamadim? Konuyla ilgili google'da biraz arastirdim. Bu ajax'in IE7 ile ilgili bir bug'ymis ama ben IE8 kullaniyorum. &#60;/p&#62;
&#60;p&#62;Bu problemi nasil asacagim ile ilgili yardimda bulunacak arkadaslara simdiden tesekkur ederim..
&#60;/p&#62;</description>
</item>

</channel>
</rss>

