<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Gebze Web Tasarım &#187; Asp.Net</title>
	<atom:link href="http://hasangursoy.com.tr/category/programlama/aspnet/feed/" rel="self" type="application/rss+xml" />
	<link>http://hasangursoy.com.tr</link>
	<description></description>
	<lastBuildDate>Mon, 21 May 2012 16:08:22 +0000</lastBuildDate>
	<language>tr</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='hasangursoy.com.tr' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/ca833ba944afdcd9a5199f9a29361595?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Gebze Web Tasarım &#187; Asp.Net</title>
		<link>http://hasangursoy.com.tr</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://hasangursoy.com.tr/osd.xml" title="Gebze Web Tasarım" />
	<atom:link rel='hub' href='http://hasangursoy.com.tr/?pushpress=hub'/>
		<item>
		<title>C# ile metin sıralamalarını değiştirme</title>
		<link>http://hasangursoy.com.tr/2010/05/30/c-ile-metin-siralamalarini-degistirme/</link>
		<comments>http://hasangursoy.com.tr/2010/05/30/c-ile-metin-siralamalarini-degistirme/#comments</comments>
		<pubDate>Sun, 30 May 2010 08:51:14 +0000</pubDate>
		<dc:creator>Hasan Gürsoy</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Programlama]]></category>
		<category><![CDATA[metin tersine çevirme]]></category>
		<category><![CDATA[string çevirme]]></category>
		<category><![CDATA[string reverse]]></category>

		<guid isPermaLink="false">http://hasangursoy.com.tr/?p=1368</guid>
		<description><![CDATA[Veritabanından çektiğim kategori navigasyonu için tekrardan veritabanı işlemleri yapmamak adına pratik bir fonksiyon yazayım dedim. Fonksiyon Ürünler » Çikolatalar » Alpella gibi bir metinsel ifadeyi Alpella « Çikolatalar « Ürünler şekline çevirmekte kullanılabilir. Stackoverflow&#8217;da sorduğum soruya daha kısa alternatif ise Linq sınıfını kullanan bir kod tavsiye edildi. Onu da altta veriyorum. public static string ReverseString(string [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hasangursoy.com.tr&#038;blog=942496&#038;post=1368&#038;subd=xspgroup&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Veritabanından çektiğim kategori navigasyonu için tekrardan veritabanı işlemleri yapmamak adına pratik bir fonksiyon yazayım dedim. Fonksiyon <strong>Ürünler » Çikolatalar » Alpella</strong> gibi bir metinsel ifadeyi <strong>Alpella « Çikolatalar « Ürünler</strong> şekline çevirmekte kullanılabilir. Stackoverflow&#8217;da sorduğum <a href="http://stackoverflow.com/questions/2934936/suggestion-to-reverse-string-in-c" target="_blank">soruya</a> daha kısa alternatif ise Linq sınıfını kullanan bir kod tavsiye edildi. Onu da altta veriyorum.</p>
<p><code><br />
public static string ReverseString(string input, string separator, string outSeparator)<br />
{<br />
string result = String.Empty;<br />
string[] temp = Regex.Split(input, separator, RegexOptions.IgnoreCase);<br />
Array.Reverse(temp);<br />
for (int i = 0; i &lt; temp.Length; i++)<br />
{<br />
result += temp[i] + " " + outSeparator + " ";<br />
}<br />
return result;<br />
}<br />
</code><br />
Not: System.Text.RegularExpressions sınıfını kullanır.</p>
<p>Stackoverflow alternatifi:</p>
<p><code><br />
public static string ReverseString(string input, string separator, string outSeparator)<br />
{<br />
return String.Join(" " + outSeparator + " ", input.Split(new[] { " " + separator + " " }, StringSplitOptions.RemoveEmptyEntries).Reverse().ToArray());<br />
}<br />
</code><br />
Not: System.Linq sınıfını kullanır.</p>
<p>Ayrıca stackoverflow tavsiyelerine göre fonksiyonu StringBuilder ile kullanmak uzun metinsel ifadelerde performans sağlayacaktır:</p>
<p><code><br />
public static string ReverseString(string input, string separator, string outSeparator)<br />
{<br />
StringBuilder result = new StringBuilder();<br />
string[] temp = Regex.Split(input, separator, RegexOptions.IgnoreCase);<br />
Array.Reverse(temp);<br />
for (int i = 0; i &lt; temp.Length; i++)<br />
{<br />
result.Append(temp[i] + " " + outSeparator + " ");<br />
}<br />
return result.ToString();<br />
}<br />
</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xspgroup.wordpress.com/1368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xspgroup.wordpress.com/1368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xspgroup.wordpress.com/1368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xspgroup.wordpress.com/1368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xspgroup.wordpress.com/1368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xspgroup.wordpress.com/1368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xspgroup.wordpress.com/1368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xspgroup.wordpress.com/1368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xspgroup.wordpress.com/1368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xspgroup.wordpress.com/1368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xspgroup.wordpress.com/1368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xspgroup.wordpress.com/1368/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xspgroup.wordpress.com/1368/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xspgroup.wordpress.com/1368/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hasangursoy.com.tr&#038;blog=942496&#038;post=1368&#038;subd=xspgroup&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hasangursoy.com.tr/2010/05/30/c-ile-metin-siralamalarini-degistirme/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ef44f444d737c62ba6a047d7ccdf187c?s=96&#38;d=&#38;r=PG" medium="image">
			<media:title type="html">HasanG</media:title>
		</media:content>
	</item>
		<item>
		<title>Asp.Net ile Türkçe e-posta adresi doğrulama</title>
		<link>http://hasangursoy.com.tr/2010/03/31/asp-net-ile-turkce-e-posta-adresi-dogrulama/</link>
		<comments>http://hasangursoy.com.tr/2010/03/31/asp-net-ile-turkce-e-posta-adresi-dogrulama/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 07:00:48 +0000</pubDate>
		<dc:creator>Hasan Gürsoy</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Programlama]]></category>
		<category><![CDATA[asp.net türkçe e-posta]]></category>
		<category><![CDATA[asp.net validation]]></category>
		<category><![CDATA[türkçe e-posta doğrulama]]></category>

		<guid isPermaLink="false">http://hasangursoy.com.tr/?p=1329</guid>
		<description><![CDATA[Asp.Net&#8217;te normal olarak bir metin kutusuna e-posta adresi doğrulaması eklerseniz (regularExpressioVlidator) hasanöşiğüı@hasangürsoy.com.tr gibi bir e-posta adresini doğrulamayı geçemez. Bu da tasarladığımız web sitesindeki iletişim formuna Türkçe domain sahiplerinin e-postalarını girmemesine neden olacaktır. Son tasarladığım bir web projesinde bu nokta sonunda beni araştırmaya sevk etti. Fakat pek de istediğim gibi birşey bulamadığımdan ifadeyi (expression) kendim yazdım. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hasangursoy.com.tr&#038;blog=942496&#038;post=1329&#038;subd=xspgroup&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Asp.Net&#8217;te normal olarak bir metin kutusuna e-posta adresi doğrulaması eklerseniz (regularExpressioVlidator) hasanöşiğüı@hasangürsoy.com.tr gibi bir e-posta adresini doğrulamayı geçemez. Bu da tasarladığımız web sitesindeki iletişim formuna Türkçe domain sahiplerinin e-postalarını girmemesine neden olacaktır.</p>
<p><img class="aligncenter size-full wp-image-1332" title="İletişim formu" src="http://xspgroup.files.wordpress.com/2010/03/form.jpg?w=640" alt="İletişim formu"   /></p>
<p>Son tasarladığım bir web projesinde bu nokta sonunda beni araştırmaya sevk etti. Fakat pek de istediğim gibi birşey bulamadığımdan ifadeyi (expression) kendim yazdım. İfade şu şekilde:</p>
<p><code>\w*[\wçığöşü]+([-+.']\w+)*@\w*[\wçığöşü]+([-.]\w+)*\.\w+([-.]\w+)*</code></p>
<p>Bunu bir örnekte açıklayacak olursak formumuzda aşağıdaki kod yer almalı. Ayrıca bir de requiredFieldValidator koyuyorum ki e-posta kutucuğu boş da bırakılamasın.</p>
<p><code><br />
&lt;asp:TextBox ID="tEPosta" runat="server" CssClass="input" /&gt;<br />
&lt;asp:RequiredFieldValidator ID="rfvEPosta" runat="server" ControlToValidate="tEPosta" ErrorMessage="* zorunlu" Display="Dynamic" /&gt;<br />
&lt;asp:RegularExpressionValidator ID="revEPosta" runat="server" ControlToValidate="tEPosta" ErrorMessage="* geçersiz" Display="Dynamic" ValidationExpression="\w*[\wçığöşü]+([-+.']\w+)*@\w*[\wçığöşü]+([-.]\w+)*\.\w+([-.]\w+)*" /&gt;</code></p>
<p>Bu soruya <a title="Add special characters to Asp.net RegularExpressionValidator for E-Mail" href="http://stackoverflow.com/questions/2538040/add-special-characters-to-asp-net-regularexpressionvalidator-for-e-mail" target="_blank">stackoverflow</a>&#8216;da ve <a title="Add special characters to Asp.net RegularExpressionValidator for E-Mail" href="http://forums.asp.net/p/1542002/3759962.aspx" target="_blank">asp.net</a>&#8216;te yanıt aradım.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xspgroup.wordpress.com/1329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xspgroup.wordpress.com/1329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xspgroup.wordpress.com/1329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xspgroup.wordpress.com/1329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xspgroup.wordpress.com/1329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xspgroup.wordpress.com/1329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xspgroup.wordpress.com/1329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xspgroup.wordpress.com/1329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xspgroup.wordpress.com/1329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xspgroup.wordpress.com/1329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xspgroup.wordpress.com/1329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xspgroup.wordpress.com/1329/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xspgroup.wordpress.com/1329/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xspgroup.wordpress.com/1329/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hasangursoy.com.tr&#038;blog=942496&#038;post=1329&#038;subd=xspgroup&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hasangursoy.com.tr/2010/03/31/asp-net-ile-turkce-e-posta-adresi-dogrulama/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ef44f444d737c62ba6a047d7ccdf187c?s=96&#38;d=&#38;r=PG" medium="image">
			<media:title type="html">HasanG</media:title>
		</media:content>

		<media:content url="http://xspgroup.files.wordpress.com/2010/03/form.jpg" medium="image">
			<media:title type="html">İletişim formu</media:title>
		</media:content>
	</item>
		<item>
		<title>COM object that has been separated from its underlying RCW cannot be used</title>
		<link>http://hasangursoy.com.tr/2009/12/28/com-object-that-has-been-separated-from-its-underlying-rcw-cannot-be-used/</link>
		<comments>http://hasangursoy.com.tr/2009/12/28/com-object-that-has-been-separated-from-its-underlying-rcw-cannot-be-used/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 17:21:39 +0000</pubDate>
		<dc:creator>Hasan Gürsoy</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[underlying RCW]]></category>

		<guid isPermaLink="false">http://hasangursoy.com.tr/?p=1190</guid>
		<description><![CDATA[Today I got this error while I was coding a cms panel. I&#8217;ve researched for solution but there was nothing to do with most of them. Then I&#8217;ve looked up my code and I&#8217;ve realized that I haven&#8217;t closed my reader. After I added rdr.Close(); to my code block before closing using statement, problem was [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hasangursoy.com.tr&#038;blog=942496&#038;post=1190&#038;subd=xspgroup&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I got this error while I was coding a cms panel. I&#8217;ve researched for solution but there was nothing to do with most of them. Then I&#8217;ve looked up my code and I&#8217;ve realized that I haven&#8217;t closed my reader. After I added rdr.Close(); to my code block before closing <span style="text-decoration:underline;">using</span> statement, problem was solved.</p>
<p>Also you can add rdr.Dispose(); In my code I delete previous uploaded files and sometimes it gives error when the file that needs to be deleted is already deleted. And this is the reason why command cannot be closed. So close and dispose the reader. Problemo solved <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Error:</strong><br />
<em>COM object that has been separated from its underlying RCW cannot be used.</em></p>
<p><span style="font-family:Arial,Helvetica,Geneva,SunSans-Regular,sans-serif;"><strong>Description: </strong>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.</span></p>
<p><strong> Exception Details: </strong>System.Runtime.InteropServices.InvalidComObjectException: COM object that has been separated from its underlying RCW cannot be used.</p>
<p><strong> </strong><strong>Stack Trace:</strong></p>
<pre>[InvalidComObjectException: COM object that has been separated from its underlying RCW cannot be used.]
   System.Data.Common.IAccessor.ReleaseAccessor(IntPtr hAccessor, Int32&amp; pcRefCount) +0
   System.Data.OleDb.RowBinding.Dispose() +86
   System.Data.OleDb.Bindings.Dispose() +30
   System.Data.OleDb.OleDbCommand.CloseInternalParameters() +18
   System.Data.OleDb.OleDbCommand.ResetConnection() +23
   System.Data.OleDb.OleDbCommand.Dispose(Boolean disposing) +27
   System.ComponentModel.Component.Dispose() +17
   Admin_addContent.LoadCategory() in z:\siteRoot\*.com\Admin\addContent.aspx.cs:223
   Admin_addContent.Page_Load(Object sender, EventArgs e) in z:\siteRoot\*.com\Admin\addContent.aspx.cs:29
   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14
   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xspgroup.wordpress.com/1190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xspgroup.wordpress.com/1190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xspgroup.wordpress.com/1190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xspgroup.wordpress.com/1190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xspgroup.wordpress.com/1190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xspgroup.wordpress.com/1190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xspgroup.wordpress.com/1190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xspgroup.wordpress.com/1190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xspgroup.wordpress.com/1190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xspgroup.wordpress.com/1190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xspgroup.wordpress.com/1190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xspgroup.wordpress.com/1190/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xspgroup.wordpress.com/1190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xspgroup.wordpress.com/1190/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hasangursoy.com.tr&#038;blog=942496&#038;post=1190&#038;subd=xspgroup&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hasangursoy.com.tr/2009/12/28/com-object-that-has-been-separated-from-its-underlying-rcw-cannot-be-used/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ef44f444d737c62ba6a047d7ccdf187c?s=96&#38;d=&#38;r=PG" medium="image">
			<media:title type="html">HasanG</media:title>
		</media:content>
	</item>
		<item>
		<title>Button click event runs twice in Asp.net</title>
		<link>http://hasangursoy.com.tr/2009/06/18/button-click-event-runs-twice-in-asp-net/</link>
		<comments>http://hasangursoy.com.tr/2009/06/18/button-click-event-runs-twice-in-asp-net/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 21:09:13 +0000</pubDate>
		<dc:creator>Hasan Gürsoy</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Programlama]]></category>

		<guid isPermaLink="false">http://xspgroup.wordpress.com/?p=1090</guid>
		<description><![CDATA[I had encountered with this problem twice. Solution of the problem is simple: If your aspx page has AutoEventWireup = &#8220;true&#8221; property and the button has onclick = &#8220;Upload_Click&#8221; property and at the same time the procedure has Handles Upload.Click that will cause code run twice when the button is clicked. Solution: Set AutoEventWireup = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hasangursoy.com.tr&#038;blog=942496&#038;post=1090&#038;subd=xspgroup&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had encountered with this problem twice. Solution of the problem is simple:</p>
<p>If your aspx page has AutoEventWireup = &#8220;true&#8221; property and the button has onclick = &#8220;Upload_Click&#8221; property and at the same time the procedure has Handles Upload.Click that will cause code run twice when the button is clicked.</p>
<p>Solution: Set AutoEventWireup = &#8220;false&#8221; and remove onclick property from the button or leave AutoEventWireup = &#8220;true&#8221; and remove Handles Upload.Click from the related event&#8217;s procedure.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xspgroup.wordpress.com/1090/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xspgroup.wordpress.com/1090/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xspgroup.wordpress.com/1090/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xspgroup.wordpress.com/1090/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xspgroup.wordpress.com/1090/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xspgroup.wordpress.com/1090/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xspgroup.wordpress.com/1090/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xspgroup.wordpress.com/1090/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xspgroup.wordpress.com/1090/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xspgroup.wordpress.com/1090/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xspgroup.wordpress.com/1090/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xspgroup.wordpress.com/1090/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xspgroup.wordpress.com/1090/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xspgroup.wordpress.com/1090/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hasangursoy.com.tr&#038;blog=942496&#038;post=1090&#038;subd=xspgroup&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hasangursoy.com.tr/2009/06/18/button-click-event-runs-twice-in-asp-net/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ef44f444d737c62ba6a047d7ccdf187c?s=96&#38;d=&#38;r=PG" medium="image">
			<media:title type="html">HasanG</media:title>
		</media:content>
	</item>
		<item>
		<title>Asp.net&#8217;te buton tıklama olayı iki defa çalışıyor</title>
		<link>http://hasangursoy.com.tr/2009/06/18/asp-nette-buton-tiklama-olayi-iki-defa-calisiyor/</link>
		<comments>http://hasangursoy.com.tr/2009/06/18/asp-nette-buton-tiklama-olayi-iki-defa-calisiyor/#comments</comments>
		<pubDate>Wed, 17 Jun 2009 21:07:44 +0000</pubDate>
		<dc:creator>Hasan Gürsoy</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Programlama]]></category>

		<guid isPermaLink="false">http://xspgroup.wordpress.com/?p=1088</guid>
		<description><![CDATA[Bu problemle iki defa karşılaşmıştım. Sorunun çozümü gayet basit: Eğer aspx sayfanızda AutoEventWireup=&#8221;true&#8221; olarak belirtilmişse se butonunuzda onclick=&#8221;Upload_Click&#8221; yordamını çağırma varsa ve aynı zamanda Upload_Click yordamında da Handles Upload.Click eki varsa bu butonunuza iki defa basılmış gibi bir sonuç verecektir. Çözüm: AutoEventWireup=&#8221;false&#8221; yapıp onclick özelliğini silin ya da AutoEventWireup=&#8221;true&#8221; iken ilgili yordamdaki Handles Upload.Click olayını [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hasangursoy.com.tr&#038;blog=942496&#038;post=1088&#038;subd=xspgroup&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Bu problemle iki defa karşılaşmıştım. Sorunun çozümü gayet basit:</p>
<p>Eğer aspx sayfanızda AutoEventWireup=&#8221;true&#8221; olarak belirtilmişse se butonunuzda onclick=&#8221;Upload_Click&#8221; yordamını çağırma varsa ve aynı zamanda Upload_Click yordamında da Handles Upload.Click eki varsa bu butonunuza iki defa basılmış gibi bir sonuç verecektir.</p>
<p>Çözüm: AutoEventWireup=&#8221;false&#8221; yapıp onclick özelliğini silin ya da AutoEventWireup=&#8221;true&#8221; iken ilgili yordamdaki Handles Upload.Click olayını silin.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xspgroup.wordpress.com/1088/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xspgroup.wordpress.com/1088/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xspgroup.wordpress.com/1088/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xspgroup.wordpress.com/1088/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xspgroup.wordpress.com/1088/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xspgroup.wordpress.com/1088/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xspgroup.wordpress.com/1088/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xspgroup.wordpress.com/1088/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xspgroup.wordpress.com/1088/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xspgroup.wordpress.com/1088/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xspgroup.wordpress.com/1088/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xspgroup.wordpress.com/1088/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xspgroup.wordpress.com/1088/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xspgroup.wordpress.com/1088/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hasangursoy.com.tr&#038;blog=942496&#038;post=1088&#038;subd=xspgroup&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hasangursoy.com.tr/2009/06/18/asp-nette-buton-tiklama-olayi-iki-defa-calisiyor/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ef44f444d737c62ba6a047d7ccdf187c?s=96&#38;d=&#38;r=PG" medium="image">
			<media:title type="html">HasanG</media:title>
		</media:content>
	</item>
		<item>
		<title>ASP.Net &#8220;Invalid postback or callback argument.&#8221; hatası</title>
		<link>http://hasangursoy.com.tr/2009/04/05/aspnet-invalid-postback-or-callback-argument-hatasi/</link>
		<comments>http://hasangursoy.com.tr/2009/04/05/aspnet-invalid-postback-or-callback-argument-hatasi/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 16:22:51 +0000</pubDate>
		<dc:creator>Hasan Gürsoy</dc:creator>
				<category><![CDATA[Asp.Net]]></category>

		<guid isPermaLink="false">http://xspgroup.wordpress.com/?p=914</guid>
		<description><![CDATA[ReklamIC projesi üzerinde uğraşırken birkaç sayfada bu hatayla karşılaştım. Hata genellikle bir sayfadaki url&#8217;den yine aynı sayfadaki bir bağlantıdan aynı sayfaya veri gönderince gerçekleşmekte. Mesela ReklamGoruntule.aspx&#8217;te ReklamGoruntule.aspx?deger=1 şeklinde bir bağlantıya tıklarsanız böyle bir hata meydana gelir. Hatayı meydana getiren kısım ViewZones.aspx sayfasındaki nesne idi: &#60;asp:ImageButton AlternateText="Yayın Kodunu Al" ToolTip="Yayın Kodunu Al" ID="ImageButton3" runat="server" ImageUrl="~/images/code.png" Width="32" [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hasangursoy.com.tr&#038;blog=942496&#038;post=914&#038;subd=xspgroup&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>ReklamIC projesi üzerinde uğraşırken birkaç sayfada bu hatayla karşılaştım. Hata genellikle bir sayfadaki url&#8217;den yine aynı sayfadaki bir bağlantıdan aynı sayfaya veri gönderince gerçekleşmekte. Mesela ReklamGoruntule.aspx&#8217;te ReklamGoruntule.aspx?deger=1 şeklinde bir bağlantıya tıklarsanız böyle bir hata meydana gelir.</p>
<p>Hatayı meydana getiren kısım ViewZones.aspx sayfasındaki nesne idi:</p>
<p><code>&lt;asp:ImageButton AlternateText="Yayın Kodunu Al" ToolTip="Yayın Kodunu Al" ID="ImageButton3" runat="server" ImageUrl="~/images/code.png" Width="32" Height="32" PostBackUrl='&lt;%# Eval("ZoneID","ViewZones.aspx?zid={0}") %&gt;' /&gt;<br />
</code></p>
<p>Ben sorunu page_load&#8217;daki veri yükleme kodlarını If Not Page.IsPostBack Then &#8230;veri yüklemeleri&#8230; End If şeklie getirerek çözdüm. Çeşitli kaynaklarda söylenen pages validateRequest=&#8221;false&#8221; veya enableEventValidation=&#8221;false&#8221; şeklindeki düzenlemeler sorununuzu çözer belki ama benim tavsiyem bunu kullanmamanız. Çünkü saldırılara bir kapı açmış olursunuz.</p>
<p>Tam Hata :<br />
<code>Invalid postback or callback argument.  Event validation is enabled using<br />
in configuration or &lt;%@ Page EnableEventValidation="true" %&gt; 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.</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xspgroup.wordpress.com/914/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xspgroup.wordpress.com/914/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xspgroup.wordpress.com/914/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xspgroup.wordpress.com/914/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xspgroup.wordpress.com/914/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xspgroup.wordpress.com/914/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xspgroup.wordpress.com/914/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xspgroup.wordpress.com/914/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xspgroup.wordpress.com/914/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xspgroup.wordpress.com/914/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xspgroup.wordpress.com/914/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xspgroup.wordpress.com/914/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xspgroup.wordpress.com/914/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xspgroup.wordpress.com/914/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hasangursoy.com.tr&#038;blog=942496&#038;post=914&#038;subd=xspgroup&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hasangursoy.com.tr/2009/04/05/aspnet-invalid-postback-or-callback-argument-hatasi/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ef44f444d737c62ba6a047d7ccdf187c?s=96&#38;d=&#38;r=PG" medium="image">
			<media:title type="html">HasanG</media:title>
		</media:content>
	</item>
		<item>
		<title>Yeni ASP.NET Charting Kontrolleri</title>
		<link>http://hasangursoy.com.tr/2009/03/02/yeni-aspnet-charting-kontrolleri/</link>
		<comments>http://hasangursoy.com.tr/2009/03/02/yeni-aspnet-charting-kontrolleri/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 16:36:39 +0000</pubDate>
		<dc:creator>Hasan Gürsoy</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[yazılım]]></category>

		<guid isPermaLink="false">http://xspgroup.wordpress.com/?p=842</guid>
		<description><![CDATA[Microsoft, geçtiğimiz günlerde harika bir ASP.NET sunucu kontrolü yayımladı. Bu ASP.NET 3,5 kontrolü zengin içerikler için kullanılabilir: Microsoft&#8217;un Bedava Chart Kontrollerini İndir VS 2008 için Chart Kontrolleri Eklentilerini İndir Örnek Chart Kontrolleri Uygulamalarını İndir Chart Kontrolleri Dökümantasyonunu İndir Microsoft Chart Kontrolleri Forumunu Ziyaret Edin Yüklendiğinde &#60;asp:chart/&#62; kontrolü Toolbox&#8217;ta Data kategorisi altında gözükür ve Asp.Net&#8217;te sunucu [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hasangursoy.com.tr&#038;blog=942496&#038;post=842&#038;subd=xspgroup&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Microsoft, geçtiğimiz günlerde harika bir ASP.NET sunucu kontrolü yayımladı. Bu ASP.NET 3,5 kontrolü zengin içerikler için kullanılabilir:</p>
<ul>
<li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=130f7986-bf49-4fe5-9ca8-910ae6ea442c&amp;DisplayLang=en" target="_blank">Microsoft&#8217;un Bedava Chart Kontrollerini İndir<br />
</a></li>
<li><a href="http://www.microsoft.com/downloads/details.aspx?familyid=1D69CE13-E1E5-4315-825C-F14D33A303E9&amp;displaylang=en" target="_blank">VS 2008 için Chart Kontrolleri Eklentilerini İndir<br />
</a></li>
<li><a href="http://code.msdn.microsoft.com/mschart/Release/ProjectReleases.aspx?ReleaseId=1591" target="_blank">Örnek Chart Kontrolleri Uygulamalarını İndir<br />
</a></li>
<li><a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=EE8F6F35-B087-4324-9DBA-6DD5E844FD9F&amp;displaylang=en" target="_blank">Chart Kontrolleri Dökümantasyonunu İndir<br />
</a></li>
<li><a href="http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/threads/" target="_blank">Microsoft Chart Kontrolleri Forumunu Ziyaret Edin<br />
</a></li>
</ul>
<p>Yüklendiğinde &lt;asp:chart/&gt; kontrolü Toolbox&#8217;ta Data kategorisi altında gözükür ve Asp.Net&#8217;te sunucu kontrolü olarak kolayca tanımlanabilir duruma gelir:</p>
<p style="text-align:center;"><img class="aligncenter" src="http://www.scottgu.com/blogposts/chart/step0.png" alt="http://www.scottgu.com/blogposts/chart/step0.png" /></p>

<a href='http://hasangursoy.com.tr/2009/03/02/yeni-aspnet-charting-kontrolleri/step3/' title='step3'><img data-liked='0' data-reblogged='0'data-attachment-id='843' data-orig-size='824,584' data-image-meta='{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}' width="128" height="90" src="http://xspgroup.files.wordpress.com/2009/03/step3.png?w=128&h=90" class="attachment-thumbnail" alt="step3" title="step3" /></a>
<a href='http://hasangursoy.com.tr/2009/03/02/yeni-aspnet-charting-kontrolleri/step1/' title='step1'><img data-liked='0' data-reblogged='0'data-attachment-id='844' data-orig-size='803,607' data-image-meta='{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}' width="128" height="96" src="http://xspgroup.files.wordpress.com/2009/03/step1.png?w=128&h=96" class="attachment-thumbnail" alt="step1" title="step1" /></a>
<a href='http://hasangursoy.com.tr/2009/03/02/yeni-aspnet-charting-kontrolleri/step2/' title='step2'><img data-liked='0' data-reblogged='0'data-attachment-id='845' data-orig-size='800,633' data-image-meta='{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}' width="121" height="96" src="http://xspgroup.files.wordpress.com/2009/03/step2.png?w=121&h=96" class="attachment-thumbnail" alt="step2" title="step2" /></a>

<p style="text-align:right;"><a href="http://weblogs.asp.net/scottgu/archive/2008/11/24/new-asp-net-charting-control-lt-asp-chart-runat-quot-server-quot-gt.aspx" target="_blank">kaynak</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xspgroup.wordpress.com/842/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xspgroup.wordpress.com/842/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xspgroup.wordpress.com/842/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xspgroup.wordpress.com/842/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xspgroup.wordpress.com/842/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xspgroup.wordpress.com/842/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xspgroup.wordpress.com/842/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xspgroup.wordpress.com/842/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xspgroup.wordpress.com/842/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xspgroup.wordpress.com/842/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xspgroup.wordpress.com/842/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xspgroup.wordpress.com/842/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xspgroup.wordpress.com/842/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xspgroup.wordpress.com/842/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hasangursoy.com.tr&#038;blog=942496&#038;post=842&#038;subd=xspgroup&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hasangursoy.com.tr/2009/03/02/yeni-aspnet-charting-kontrolleri/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ef44f444d737c62ba6a047d7ccdf187c?s=96&#38;d=&#38;r=PG" medium="image">
			<media:title type="html">HasanG</media:title>
		</media:content>

		<media:content url="http://www.scottgu.com/blogposts/chart/step0.png" medium="image">
			<media:title type="html">http://www.scottgu.com/blogposts/chart/step0.png</media:title>
		</media:content>

		<media:content url="http://xspgroup.files.wordpress.com/2009/03/step3.png?w=128" medium="image">
			<media:title type="html">step3</media:title>
		</media:content>

		<media:content url="http://xspgroup.files.wordpress.com/2009/03/step1.png?w=128" medium="image">
			<media:title type="html">step1</media:title>
		</media:content>

		<media:content url="http://xspgroup.files.wordpress.com/2009/03/step2.png?w=121" medium="image">
			<media:title type="html">step2</media:title>
		</media:content>
	</item>
		<item>
		<title>Asp.Net&#8217;te MySQL ile Kimlik Doğrulama ve Yetkilendirme</title>
		<link>http://hasangursoy.com.tr/2008/09/09/aspnette-mysql-ile-kimlik-dogrulama-ve-yetkilendirme/</link>
		<comments>http://hasangursoy.com.tr/2008/09/09/aspnette-mysql-ile-kimlik-dogrulama-ve-yetkilendirme/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 09:10:44 +0000</pubDate>
		<dc:creator>Hasan Gürsoy</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Programlama]]></category>
		<category><![CDATA[web tasarımı]]></category>

		<guid isPermaLink="false">http://xspgroup.wordpress.com/?p=682</guid>
		<description><![CDATA[Dün Asp.NET Login Kontrollerinie MySQL ile kullanabilmek için tüm gün araştırdım durdum. Şimdi de bu bilgileri paylaşmak istedim. Eğer benim gibi asp.net&#8217;te yeni iseniz bu bilgiler illaki lazım olur. Çünkü genellikle SQL Server kullanılmak istenmez. İlk önce yapmanız gereken Mysql.Data 5.2.2&#8216;yi yüklemek(5.2.3 şu an son versiyon fakat ilerde göreceğiniz bir işlemi otomatik olarak yapmıyor). 5.2.2&#8242;i [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hasangursoy.com.tr&#038;blog=942496&#038;post=682&#038;subd=xspgroup&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="snap_preview">
<p>Dün Asp.NET Login Kontrollerinie MySQL ile kullanabilmek için tüm gün araştırdım durdum. Şimdi de bu bilgileri paylaşmak istedim. Eğer benim gibi asp.net&#8217;te yeni iseniz bu bilgiler illaki lazım olur. Çünkü genellikle SQL Server kullanılmak istenmez.</p>
<p>İlk önce yapmanız gereken <strong>Mysql.Data 5.2.2</strong>&#8216;yi yüklemek(5.2.3 şu an son versiyon fakat ilerde göreceğiniz bir işlemi otomatik olarak yapmıyor). 5.2.2&#8242;i <a href="http://mirror.csclub.uwaterloo.ca/mysql/Downloads/Connector-Net/mysql-connector-net-5.2.2.zip" target="_blank">buradan</a> bulabilirsiniz.</p>
<p>Projenizin web.config dosyasını açıp bağlantı cümlelerine aşağıdaki gibi bir bağlantı ekleyin:</p>
<p><code><strong>&lt;connectionStrings&gt;<br />
&lt;remove name=”LocalMySqlServer”/&gt;<br />
&lt;add name=”LocalMySqlServer” connectionString=”server=localhost; user id=root; password=toor; persist security info=true; database=dorknozzle;” providerName=”MySql.Data.MySqlClient”/&gt;<br />
&lt;/ connectionStrings&gt;</strong></code></p>
<p>Proje referanslarına (Projeye sağ tıklayıp&gt;Property Pages&#8217;dan) MySQL.Data&#8217;yı eklemeniz tavsiye edilir.</p>
<p><strong>Mysql.Data</strong> ve <strong>Mysql.Web</strong> dll&#8217;lerini projenizin içindeki <strong>Bin</strong> klasörüne kopyalayın. Sonra da Solution Explorer&#8217;ı tazeleyin.</p>
<p><em>Dikkat machine.config dosyasında değişiklik yapmanız pek tavsiye edilmeyen birşeydir. Ama mysql için bunları eklememiz gerekiyor. Ve unutmayın ki asp.net servis sağlayıcınız MySQL&#8217;i desteklemeyebilir. Bunu en başta sorun.</em></p>
<p>machine.config dosyasını açıp aşağıda belirtildiği yere <strong>autogenerateschema=”true” </strong>niteliğini ekleyin:</p>
<p><code>&lt;membership&gt;<br />
&lt;providers&gt;<br />
&lt;add name=”MySQLMembershipProvider” <strong>autogenerateschema=”true” </strong>type=”MySql.Web.Security.MySQLMembershipProvider, MySql.Web, Version=5.2.2.0, … /&gt;<br />
&lt;/providers&gt;<br />
&lt;/membership&gt;</code></p>
<p>Sitenizin konfigurasyon sayfasını açın (Açılmış olan projede, Website &gt; ASP.NET Configuration yolunu izleyin, ya da Solution Explorer&#8217;daki çekik ve dünya ikonuna tıklayın). Provider sekmesinde Membership Provide listesinden <strong>MySQLMembershipProvider</strong>&#8216;ı<strong></strong> ve Role Provider listesinden de <strong>MySQLRoleProvider</strong>&#8216;ı seçin. İsterseniz test linklerine basıp bağlantıları kontrol edebilirsiniz.</p>
<p>Ben eğitim süresince aşağıdaki hatalarla karşılaştım (en azından hatırladıklarım ve kaydettiklerim bunlar)  <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  /&gt; :</p>
<p><code>There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.</code></p>
<p><code>The following message may help in diagnosing the problem: <strong>Unable to initialize provider. Missing or incorrect schema. (c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config line 145)</strong></code></p>
<p>Ayrıca aşağıdaki linkler çok faydalı oldu. Ortadaki link en faydalısı (tümü İngilizce kaynaklardır):</p>
<p><a href="http://www.dotnetsurfers.com/Blog/2007/12/12/UsingMySQLWithAspnetForAuthenticationauthorization.aspx" target="_blank">www.dotnetsurfers.com</a><br />
<a href="http://blog.nolanbailey.com/2008/03/08/mysql-aspnet-membership-and-role-provider/194" target="_blank">blog.nolanbailey.com</a><br />
<a href="http://forums.asp.net/t/1270199.aspx" target="_blank">forums.asp.net</a></p>
</div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xspgroup.wordpress.com/682/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xspgroup.wordpress.com/682/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xspgroup.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xspgroup.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xspgroup.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xspgroup.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xspgroup.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xspgroup.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xspgroup.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xspgroup.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xspgroup.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xspgroup.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xspgroup.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xspgroup.wordpress.com/682/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xspgroup.wordpress.com/682/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xspgroup.wordpress.com/682/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hasangursoy.com.tr&#038;blog=942496&#038;post=682&#038;subd=xspgroup&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hasangursoy.com.tr/2008/09/09/aspnette-mysql-ile-kimlik-dogrulama-ve-yetkilendirme/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ef44f444d737c62ba6a047d7ccdf187c?s=96&#38;d=&#38;r=PG" medium="image">
			<media:title type="html">HasanG</media:title>
		</media:content>
	</item>
		<item>
		<title>Asp.Net Authorization &amp; Authentication with MySQL</title>
		<link>http://hasangursoy.com.tr/2008/09/09/aspnet-authorization-authentication-with-mysql/</link>
		<comments>http://hasangursoy.com.tr/2008/09/09/aspnet-authorization-authentication-with-mysql/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 08:36:48 +0000</pubDate>
		<dc:creator>Hasan Gürsoy</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[asp.net login controls]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[Authorization]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[visual web developer]]></category>

		<guid isPermaLink="false">http://xspgroup.wordpress.com/?p=678</guid>
		<description><![CDATA[I&#8217;ve been googling all day to find out how to use the ASP.NET Login Controls with MySQL. And finaly I did it. I&#8217;m sharing this knowledge here. Firstly I&#8217;ve installed Mysql.Data 5.2.2 (version 5.2.3 doesn&#8217;t auto generate schema). You can download it from here. Add connection string in your web.config file for the database connection: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hasangursoy.com.tr&#038;blog=942496&#038;post=678&#038;subd=xspgroup&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been googling all day to find out how to use the ASP.NET Login Controls with MySQL. And finaly I did it. I&#8217;m sharing this knowledge here.</p>
<p>Firstly I&#8217;ve installed <strong>Mysql.Data 5.2.2</strong> (version 5.2.3 doesn&#8217;t auto generate schema). You can download it from <a href="http://mirror.csclub.uwaterloo.ca/mysql/Downloads/Connector-Net/mysql-connector-net-5.2.2.zip" target="_blank">here</a>.</p>
<p>Add connection string in your web.config file for the database connection:</p>
<p><code><strong>&lt;connectionStrings&gt;<br />
&lt;remove name="LocalMySqlServer"/&gt;<br />
&lt;add name="LocalMySqlServer" connectionString="server=localhost; user id=root; password=pwd; persist security info=true; database=your_database;" providerName="MySql.Data.MySqlClient"/&gt;<br />
&lt;/ connectionStrings&gt;</strong></code></p>
<p>I have copied dll&#8217;s from MySql Program Files folder <strong>Mysql.Data</strong> and <strong>Mysql.Web</strong> into my application&#8217;s <strong>Bin</strong> folder and refreshed the Solution Explorer from Visual Studio.</p>
<p>Then edited my machine.config file and added <strong>autogenerateschema=&#8221;true&#8221; </strong>attribute<strong> </strong>at this line:</p>
<p><code>&lt;membership&gt;<br />
&lt;providers&gt;<br />
&lt;add name="MySQLMembershipProvider" <strong>autogenerateschema="true" </strong>type="MySql.Web.Security.MySQLMembershipProvider, MySql.Web, Version=5.2.2.0, ... /&gt;<br />
&lt;/providers&gt;<br />
&lt;/membership&gt;</code></p>
<p>Finaly opened my ASP.Net Site Configuration (With the web site project loaded in Visual Web Developer, select Website › ASP.NET Configuration). Selected <strong>MySQLMembershipProvider </strong>from Membership Provide&#8217;s list and <strong>MySQLRoleProvider </strong>from Role Provider at <strong>Provider </strong>Tab. You can also do a test if the connection is ok.</p>
<p>I had these errors during the learning process :</p>
<p><code>There is a problem with your selected data store. This can be caused by an invalid server name or credentials, or by insufficient permission. It can also be caused by the role manager feature not being enabled. Click the button below to be redirected to a page where you can choose a new data store.</code></p>
<p><code>The following message may help in diagnosing the problem: <strong>Unable to initialize provider. Missing or incorrect schema. (C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Config\machine.config line 145)</strong></code></p>
<p>You could also see these pages. They got really helpfull to me:</p>
<p><a href="http://www.dotnetsurfers.com/Blog/2007/12/12/UsingMySQLWithAspnetForAuthenticationauthorization.aspx" target="_blank">www.dotnetsurfers.com</a><br />
<a href="http://blog.nolanbailey.com/2008/03/08/mysql-aspnet-membership-and-role-provider/194" target="_blank">blog.nolanbailey.com</a><br />
<a href="http://forums.asp.net/t/1270199.aspx" target="_blank">forums.asp.net</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xspgroup.wordpress.com/678/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xspgroup.wordpress.com/678/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xspgroup.wordpress.com/678/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xspgroup.wordpress.com/678/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xspgroup.wordpress.com/678/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xspgroup.wordpress.com/678/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xspgroup.wordpress.com/678/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xspgroup.wordpress.com/678/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xspgroup.wordpress.com/678/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xspgroup.wordpress.com/678/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xspgroup.wordpress.com/678/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xspgroup.wordpress.com/678/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xspgroup.wordpress.com/678/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xspgroup.wordpress.com/678/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xspgroup.wordpress.com/678/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xspgroup.wordpress.com/678/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hasangursoy.com.tr&#038;blog=942496&#038;post=678&#038;subd=xspgroup&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hasangursoy.com.tr/2008/09/09/aspnet-authorization-authentication-with-mysql/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ef44f444d737c62ba6a047d7ccdf187c?s=96&#38;d=&#38;r=PG" medium="image">
			<media:title type="html">HasanG</media:title>
		</media:content>
	</item>
		<item>
		<title>asp.Net Mysql Connection</title>
		<link>http://hasangursoy.com.tr/2008/07/29/aspnet-mysql-connection/</link>
		<comments>http://hasangursoy.com.tr/2008/07/29/aspnet-mysql-connection/#comments</comments>
		<pubDate>Mon, 28 Jul 2008 23:10:29 +0000</pubDate>
		<dc:creator>Hasan Gürsoy</dc:creator>
				<category><![CDATA[Asp.Net]]></category>
		<category><![CDATA[Programlama]]></category>
		<category><![CDATA[VB.Net]]></category>
		<category><![CDATA[Error]]></category>

		<guid isPermaLink="false">http://xspgroup.wordpress.com/?p=668</guid>
		<description><![CDATA[Attempted to read or write protected memory. This is often an indication that other memory is corrupt. I get this error while I’m using “MySQL ODBC 5.1 Driver” to connect asp.net with MySQL instead of “MySQL ODBC 3.51 Driver” Code below works great with “MySQL ODBC 3.51 Driver” Dim sConString As String = "DRIVER={MySQL ODBC [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hasangursoy.com.tr&#038;blog=942496&#038;post=668&#038;subd=xspgroup&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div class="entry">
<div class="snap_preview">
<p><code>Attempted to read or write protected memory. This is often an indication that other memory is corrupt.</code></p>
<p>I get this error while I’m using “MySQL ODBC 5.1 Driver” to connect asp.net with MySQL instead of “MySQL ODBC 3.51 Driver”</p>
<p>Code below works great with “MySQL ODBC 3.51 Driver”</p>
<p><code>Dim sConString As String = "DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost; DATABASE=hasan;USER=root;PASSWORD=toor; OPTION=3;"<br />
Dim oConnection As OdbcConnection = New OdbcConnection(sConString)<br />
Dim sSQL As String = “SELECT * FROM deneme”<br />
Dim oDataAdapter As OdbcDataAdapter = New OdbcDataAdapter(sSQL, oConnection)<br />
Dim oDataSet As DataSet = New DataSet()<br />
oDataAdapter.Fill(oDataSet)<br />
GridView1.DataSource = oDataSet<br />
GridView1.DataBind()</code></div>
</div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/xspgroup.wordpress.com/668/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/xspgroup.wordpress.com/668/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xspgroup.wordpress.com/668/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xspgroup.wordpress.com/668/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xspgroup.wordpress.com/668/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xspgroup.wordpress.com/668/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xspgroup.wordpress.com/668/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xspgroup.wordpress.com/668/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xspgroup.wordpress.com/668/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xspgroup.wordpress.com/668/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xspgroup.wordpress.com/668/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xspgroup.wordpress.com/668/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xspgroup.wordpress.com/668/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xspgroup.wordpress.com/668/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xspgroup.wordpress.com/668/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xspgroup.wordpress.com/668/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hasangursoy.com.tr&#038;blog=942496&#038;post=668&#038;subd=xspgroup&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hasangursoy.com.tr/2008/07/29/aspnet-mysql-connection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ef44f444d737c62ba6a047d7ccdf187c?s=96&#38;d=&#38;r=PG" medium="image">
			<media:title type="html">HasanG</media:title>
		</media:content>
	</item>
	</channel>
</rss>
