Archive for the ‘.NET’ Category

TenGrand is buried here, it is a site made by Microsoft Australia.
Here is the concept : We’ve buried $10,000 somewhere on the internet and the first one to find it, gets to keep it. But you’ll never find it using that browser. (So get rid of it, or get lost.) If you want a serious [...]

For example, you want a method who validate if a string is an email or not.
You create a static class, StringExtensions for example, you put it public static and you add a method who take a string and verify if it is a mail or not.
Like this :
</pre>
public static class StringExtensions
{
public static bool IsNotEmail (this [...]

I received this error during a get method (retreive the posts in my Kiwi Application).
I strangled with this during an hour and finally, I remembered that I had changed a NOT NULL field in my db to a allow null number.
So, when you do that, you simply have to update your Linq to Sql (dbml). [...]

Using dropdownlist is, for me, a good thing, It allows you to avoid input error or make some coherent choice compared with a previous input.
The deal in this post, is to make a coherent cascade dropdownlist. For example, you choose a country and you would like to auto-populate the dropdownlist States. It is a common [...]

using System.Reflection; //the library to use

Code to put in your method :

Type type = objectforloop.GetType();

PropertyInfo[] properties = type.GetProperties();

foreach (PropertyInfo property in properties)
{
if (property.GetValue(objectforloop, null) != null)
{
Console.WriteLine("Name: " + property.Name + ", Value: " + property.GetValue(objectforloop, null));
}
}

Bookmark It

Hide Sites

$$(’div.d163′).each( function(e) { e.visualEffect(’slide_up’,{duration:0.5}) });

I am currently working for a project in my job where I have to write an application which manage the active directory by a website application. I know that is not the best way to manage users in Active Directory but, well,….
First, I decided to use the linq for Active Directory of Bart Desmet, I [...]

Simply, decorate your class or function with this code :
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "1000:YouShouldntBeCoding", MessageId = "1#",
Justification="Leave me allone annoying compilator!")]
You can find more info : here
I found that information in the Rob Conery’s blog.

Bookmark It

Hide Sites

$$(’div.d116′).each( function(e) { e.visualEffect(’slide_up’,{duration:0.5}) });

Well, with all the acronyms which exist in the software development world, Harry Potter should have found a lot of words for his magic formulas. Today, I will explain you two of them, AZAM and ADAM.

Bookmark It

Hide Sites

$$(’div.d39′).each( function(e) { e.visualEffect(’slide_up’,{duration:0.5}) });


top