30 Nisan 2015 Perşembe

Visual Studio 2013 de YAVAŞ SAVE OLAYI ÇÖZÜMÜ

http://stackoverflow.com/questions/26609093/visual-studio-2013-extremely-slow-at-saving-files

11 Nisan 2015 Cumartesi

Visual Studio Save Geç oluyorsa

alıntıdır:

http://blog.geocortex.com/2007/12/07/slow-visual-studio-performance-solved/

C:\Users\krintoul\AppData\Local\Microsoft\WebSiteCache klasöründeki tüm dosyaları ZİP leyip başka bir klasöre taşıyın.

29 Mart 2015 Pazar

SQL server 2012 Reset identity and start from 1

use EYECLINIC
go
TRUNCATE TABLE tblMusteriler // Tabloyu Sıfırla
go
DBCC CHECKIDENT ('tblMusteriler',RESEED,1);  // ID 1 den başla

23 Mart 2015 Pazartesi

C:\Program Files\Java\jdk1.6.0_22\bin\keytool.exe -list -keystore c:\users\selvin\desktop\selvin.kp

http://tomeko.net/online_tools/hex_to_base64.php?lang=en Convert SHA1 to base64

21 Mart 2015 Cumartesi

Client Tarafından Server'a bağlantıyı kontrol etmek

Eğer aspx web sayfasında Client tarafından Server bağlantınızın kesildiğini test etmek istiyorsanız , sayfanın en altına bu kodu ekleyebilirsiniz. Böylece Client tarafında Server a bağlantınızın aktif olup olmadığını veya bir hata durumunde ne olduğunu anlayabilir siniz.

 <script type="text/javascript">
        Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
        function EndRequestHandler(sender, args) {
            alert(args.get_error());
            if (args.get_error() != undefined) {
                args.set_errorHandled(true);
                alert("Server Bağlantısı Kesildi");
            }
        }
    </script>


17 Kasım 2014 Pazartesi

TemplateField içinde Row Index Öğrenme

<asp:TemplateField HeaderText="IsPolicyHolder">
<ItemTemplate>
<asp:CheckBox ID="chkBox1" runat="server" AutoPostBack="true" Checked="false" OnCheckedChanged="chkBox1_CheckedChanged"/>
</ItemTemplate>
</asp:TemplateField>
şeklinde bir check box tıklandığında hangi row olduğunu öğrenebilmek için
protected void chkBox1_CheckedChanged(object sender, EventArgs e) 
{
CheckBox chkbox = (CheckBox)sender;
GridViewRow Grow = (GridViewRow)chkbox.NamingContainer; // HANGİ ROW İÇİNDE
if (chkbox.Checked)
{
.........
}
}

27 Ağustos 2014 Çarşamba

Attempt by security transparent method to access security critical method failed.

Attempt by security transparent method 'package_block_control.SetInfo(Int32, System.String, System.String, System.String, System.String, Int32, System.String)' to access security critical method 'dsPackagesTableAdapters.tblPackagesTableAdapter..ctor()' failed.

Assembly 'App_Web_hvja3wp0, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null' is marked with the AllowPartiallyTrustedCallersAttribute, and uses the level 2 security transparency model.  Level 2 transparency causes all methods in AllowPartiallyTrustedCallers assemblies to become security transparent by default, which may be the cause of this exception.


.NET 4.0 ve üstü site yayınlarında karşılaşılan bir durum:

Çözüm:


belirtilen FONKSİYON sütüne 

[SecuritySafeCritical]

Ekleyin, Örn:

 [SecuritySafeCritical]
    public void SetInfo(Int32 _SpecialOfferID, String _Resim, String _Detail, String _Country, String _ClassName, Int32 _OtelID , String _Style)
    
{
...
}

using System.Security;

Tanımınıda sayfaya ekleyin

Tamamdır.