Embeding LinqToSql Classes file in the class library project

by OMR 1. December 2009 03:01
A simple dynamic data web site with everything App_Code are resolved. But will use tier architecture is not sufficient. Data access layer needs to be used in other projects. Therefore, the class library, I put Linq To Sql file metadata classes, but was ineffective. Researched solution for a few days. (Time loss) Linq To Sql file automatically when I reviewed the file name space designer.cs add noticed. I cleaned the added name space. Metadata has become active classes. Dynamism!

Tags: ,

Dynamic Data | english

Creating a Jquery Plugin

by OMR 14. November 2009 04:56

This article contains plugin based coding tecniques for jquery. Lets coding.

We are declaring plugin functions to jquery prototype.

jQuery.fn.MyAlert = function(message)
{
        alert("Attention: " + message;      
}

This code is usable pluging declaretion but not supported tecnique for cross library safety. Example of cross library supported declaretion:


(function($) {
    $.fn.MyMask = function() {
        $(this).val("Masked input element");
    }
})(jQuery);

Examle using:
$("#input1").MyMask();

Finished first runable plugin. Plugin adding "Masked input element" to input1 element. This function is only available for an element. Selective parameter may apply to multiple elements. Be applied to all elements according to the selector parameter. Therefore we should use each function.

More...

Tags:

english | jquery

How to make a real cloud effects with jQuery.

by OMR 6. November 2009 19:55

In this article I used the cloud effect birdunyadusun.com site will explain the technique.
Some sites have similar made with Mootools. I did research in jQuery forum. No information about the coding of similar applications. This article has nothing to parallax technique. Let's start coding.
The following code will load the clouds just below is a description of the body.


<span id="spnCloudHolder"></span>

And using this javascript codes for generating clouds:


$(document).ready(function() {
    for (var i = 0; i < 3; ++i) {
        $("#spnCloudHolder").append("<img src=\"img/bulutcan12.png\" class=\"cloud\" />");
    }
});

 

You can use this image file(Transparent PNG, thanks AdmiX):

Output current screen:
More...

Tags: ,

english | jquery

İlk Dynamic Data Web Site Sunumumu Gerçekleştirdim

by OMR 16. October 2009 04:23

Daha önce de bazı sunumlar yapmıştım ancak MSP olarak yaptığım ilk sunum olduğundan baya heyecanlıydım. 25 dakikada anlatmayı düşünüyordum ancak Agile Programming ve Rapid Application Development hakkında konunun tam olarak anlaşılması için bilgi vermem gerektiğini düşünerek anlatım süresini 45 dakikaya çıkarttım. ASP.NET Dynamic Data Web Site sunumu konusunda verdiği destekler için değerli Uğur UMUTLUOĞLU'na çok teşekkür ederim.

Tags: , ,

asp.net | Dynamic Data

ASP.NET Dynamic Data Web Sitesini Özelleştirmek - 2

by OMR 7. October 2009 03:10

Merhabalar, bu yazım da Custom Pages (özel sayfalar) kullanımı hakkında bilgi vereceğim. Dynamic Data Web sitesinin varsayılan şablonlarını bazı sayfalar için kullanmak istemeyebiliriz. Herhangi bir şablon için özel sayfa tasarlamak istiyorsak varsayılan Dynamic Data Web sitesi ile gelen ~/DynamicData/CustomPages klasörü içine TabloAdı/ŞablonAdi.aspx oluşturulması yeterli. Daha iyi anlaşılması için Product tablosu için özel sayfamızı tasarlamaya başlayalım.

Artık standart şablondan kopyala yapıştır ile   ~/DynamicData/CustomPages/Products/ konumuna yapıştırdığım List.aspx şablonu kullanımdadır. Şablon üzerinde özelleştirme yapalım. Product tablosundaki tüm alanların görünmesini istemiyorum. Bunun için MetaData'da yazabiliriz ancak DynamicDataField kullanımını da gösterebilmek adına GridView1 nesnesinin AutoGenerateColumns özelliğini false yapıyorum.

More...

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen