Bir GridView’da bir TemplateField sütunu nasıl gizlenir Asp.Net de gridview da bir alanı gizlemek için aşağıdaki kodu kullanabiliriz. protected void OnRowCreated(object sender, GridViewRowEventArgs e) { e.Row.Cells[columnIndex].Visible = false; }
Devamı »Programlama
Python sayı parçalama
Arkadaşlar merhaba,basit bir sorum olacak 3 saattir uğraşıyorum ufak bi yerde hata yapıyorum galiba Soru: 4343 Sayısını parçalayarak önce tek sayıları toplicam sonra hepsini toplicam ( yani a=4+3+4+3, b=3+3 olacak) sonra da a/b oranını ekrana yazdıracam. ben virgül atarak bölüp yaptım. sayıyı kendim değil kod içinde bölmem gerekiyormuş benim yaptığıma=2,1,2,1b=a[0]+a[1]+a[2]+a[3]c=a[2]+a[3]b/c
Devamı »Python Pandas Plot Bar color different
Merhaba pyhton da çalışırken her bar’ın rengi ayrı olsun istiyorum bunu nasıl yapabiliriz kaç saattir araştırıyorum ama bulamadım . Görseli yorumlara atıyorum, yardımcı olabilir misiniz. şeklinde bir soru ve cevabı aşağıdadır. Python Pandas Plot Bar color different ÇÖZÜLDÜ! SOLVED Merhaba arkadaşlar, kolay gelsin pandas plot ile elimdeki verileri aşağıdaki kod …
Devamı »How do I format a Microsoft JSON date?
Eval is not necessary. This will work fine: var date = new Date(parseInt(jsonDate.substr(6))); The substr function takes out the “/Date(” part, and the parseInt function gets the integer and ignores the “)/” at the end. The resulting number is passed into the Date constructor. EDIT: I have intentionally left out …
Devamı »Create a dropdownlist from an enum in ASP.NET MVC?
I’m trying to use the Html.DropDownList extension method but can’t figure out how to use it with an enumeration. Let’s say I have an enumeration like this: public enum ItemTypes { Movie = 1, Game = 2, Book = 3 } How do I go about creating a dropdown with these …
Devamı »Maximum request length exceeded asp.net
I am getting the error Maximum request length exceeded when I am trying to upload a video in my site. Solution If you are using IIS for hosting your application, then the default upload file size if 4MB. To increase it, please use this below section in your web.config – <configuration> <system.web> …
Devamı »Can I set an unlimited length for maxJsonLength in web.config?
Exception information: Exception type: InvalidOperationException Exception message: Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property. Solution <configuration> <system.web.extensions> <scripting> <webServices> <jsonSerialization maxJsonLength="50000000"/> </webServices> </scripting> </system.web.extensions> </configuration>
Devamı »Random number generator only generating one random number
I have the following function: //Function to get random number public static int RandomNumber(int min, int max) { Random random = new Random(); return random.Next(min, max); } How I call it byte[] mac = new byte[6]; for (int x = 0; x < 6; ++x) mac[x] = (byte)(Misc.RandomNumber((int)0xFFFF, (int)0xFFFFFF) % …
Devamı »c# What is a NullReferenceException
You are trying to use something that is null (or Nothing in VB.NET). This means you either set it to null, or you never set it to anything at all. Like anything else, null gets passed around. If it is null in method “A”, it could be that method “B” passed a null to method “A”. null can have different meanings: Object variables …
Devamı »NotePad++ ile Her Satır Sonuna belirli Karakter ekleme
Metin işlemleri için NotePad++ programı yazılımcıların çoğunlukla kullandığı bir metin editörüdür. Bir çok programlama dilinin syntax ını tanır, biçimlemeyi buna göre görselleştirir. NotePad++ yazılımı açık kaynak kodludur. Burada son sürümünü ücretsiz indirebilirsiniz. NotePad++ Metin İşlemleri Notepad++ satırın sonuna belirli Karakter ekleme belirli karakter eklemek Enter eklemekvirgül eklemekgibi işlemler için gibi …
Devamı »