技術者派遣の技術日誌ブログ

March 29, 2009

Csharp Code Samples Blog – Information, Comments, Reviews …

,ASP.NET,JAVASCRIPT,JQUERY

C# code samples is a blog for articles related to programming in C# using the Microsoft .net framework.

C# code samples is a blog for articles related to programming in C# using the Microsoft .net framework. The articles add… … Most WCF services hosted in a live environment if not configured for handling heavy simultaneous requests give a Denial of Service Error, better known as DoS attacks. To prevent these from happening we have to configure the throttling behavior and so. … A blog for programming tutorials for C/C++, C#.Net, ASP.Net and much more. Here… …

Read more from the original source:
Csharp Code Samples Blog – Information, Comments, Reviews …

Using Javascript Code for RJS Instead of IDs | Sentia | Sydney IT …

Filed under: Ajax, JAVA — Tags: , , , , , , , — Shotalow @ 11:47 am

UPDATE: JavascriptGenerator has a method name literal that will do the exact same thing, so the code below should do the trick: page.insert_html :bottom,

UPDATE: JavascriptGenerator has a method name literal that will do the exact same thing, so the code below should do the trick: page.insert_html :bottom,

UPDATE: JavascriptGenerator has a method name literal that will do the exact same thing, so the code below should do the trick: page.insert_html :bottom,

UPDATE: JavascriptGenerator has a method name literal that will do the exact same thing, so the code below should do the trick: page.insert_html :bottom,

UPDATE: JavascriptGenerator has a method name literal that will do the exact same thing, so the code below should do the trick: page.insert_html :bottom,

Continue reading here:
Using Javascript Code for RJS Instead of IDs | Sentia | Sydney IT …

March 27, 2009

About AJAX

Filed under: Ajax, JAVA, Javascript/Xhtml/Css — Tags: , , , , , , — AspAnn @ 9:45 am

AJAX is known as Asynchronous JavaScript and XML. AJAX is a new approach to web applications

AJAX is known as Asynchronous JavaScript and XML. AJAX is a new approach to web applications. The use of Ajax has led to an increase in interactive animation on web pages. The Ajax is used to reduce connections to the server. …

See the original post here:
About AJAX

AJAX Timer Displaying Time Spent on Page in ASP.NET 3.5

Filed under: Ajax, C#, Javascript/Xhtml/Css — Tags: , , , , — Sayuri @ 7:00 am

This tutorial will show you how to use AJAX to record and display time spent on a page, whilst doing other Async postbacks without disturbing the counter. C#.

This tutorial will show you how to use AJAX to record and display time spent on a page, whilst doing other Async postbacks without disturbing the counter. C#.

The rest is here:
AJAX Timer Displaying Time Spent on Page in ASP.NET 3.5

March 25, 2009

Django snippets: Non-Javascript select list navigator

Filed under: ALL, Ajax, JAVA — Tags: , , , , , — Sayuri @ 12:43 pm

If you need a simple select list (picklist) containing all site categories (or some other taxonomic group) and don’t want to depend on Javascript , here’s how to build a simple category navigator in Django, using HttpResponseRedirect. …

If you need a simple select list (picklist) containing all site categories (or some other taxonomic group) and don’t want to depend on Javascript , here’s how to build a simple category navigator in Django, using HttpResponseRedirect. …

If you need a simple select list (picklist) containing all site categories (or some other taxonomic group) and don’t want to depend on Javascript , here’s how to build a simple category navigator in Django, using HttpResponseRedirect. …

If you need a simple select list (picklist) containing all site categories (or some other taxonomic group) and don’t want to depend on Javascript, here’s how to build a simple category navigator in Django, using HttpResponseRedirect. …

If you need a simple select list (picklist) containing all site categories (or some other taxonomic group) and don’t want to depend on Javascript , here’s how to build a simple category navigator in Django, using HttpResponseRedirect. …

Go here to see the original:
Django snippets: Non-Javascript select list navigator

Consuming SharePoint Lists via AJAX – Kirk Evans Blog – Site Home …

Filed under: Ajax — Tags: , , , , , , , , , — Sayuri @ 3:12 am

%excerpt%

Consuming SharePoint Lists via AJAX – Kirk Evans Blog – Site Home …

March 18, 2009

A guide to Silverlight 3 new features

,ASP.NET,JAVASCRIPT,JQUERY

It also provides end-to-end support for common tasks such as data validation, authentication and roles by integrating with Silverlight components on the client and ASP.NET on the mid-tier.

It also provides end-to-end support for common tasks such as data validation, authentication and roles by integrating with Silverlight components on the client and ASP.NET on the mid-tier. One paragraph cannot do this framework justice, … Binary XML support is introduced which enables Silverlight to communicate with Windows Communication (WCF) services using the Binary XML data format in addition to regular text XML. The use of the Binary XML format results in smaller …

Visit link:
A guide to Silverlight 3 new features

[HOW TO] Visual C# .NET で、QueryPerformanceCounter を使用してコードの時間を計測する方法

Filed under: .NET Framework, C# — Tags: , , , — citiszo @ 10:49 am

パフォーマンス ボトルネックを識別するためにコードをテストするときは、システムが提供する最も高分解能のタイマを使用します。この資料では、QueryPerformanceCounter 関数を使用して、アプリケーション コードの時間を計測する方法を順を追って説明しています。

注 : JScript .NET で Microsoft Windows API 関数を呼び出すことはできません。
先頭へ戻る
デモ アプリケーションのビルドと実行
Visual Studio .NET を起動して、新しい Visual C# コンソール アプリケーションを作成します。
デフォルトのコードを次のコードに置き換えます。これは 100 回のインクリメント操作の時間を計測します。

March 17, 2009

LINQを使ってフォルダやファイルの情報を集積する

Filed under: ADO.NET, ALL, LINQ — Tags: , , , — strmozo @ 8:57 pm

久しぶりにLINQ(LINQ to Object)ネタです。
ここ2、3日で知り合いの方のBlogに続けてこのような話があがってたもので、ちょっと試したことまとめておこうかと(w

LINQ to Objectで一番重要なのは、操作しようとするデータをいかにしてIEnumerableな形にするか、ということだと思っています。
特にフォルダやファイルといった階層構造のデータを扱う場合、そこさえできてしまえば後はどうにでもなります。
そんな意味で、すごい、と思ったのが@ITの記事に載っていた以下のコードです。

IEnumerable fileList = Directory.GetFiles(startFolder, “*.*”, SearchOption.AllDirectories).Select(x => new FileInfo(x));

このコード自体Selectメソッドを使ったLINQのコードなのですが、この1行でstartFolderに指定したフォルダ以下の全てのファイルをサブフォルダ配下のものを含めてFileInfoオブジェクトとしてIEnumerableなものにしてしまっています。
FileInfoオブジェクトであればそのファイルのすべての情報にアクセスできますから、あとはここでつくったfileListに対してどのような操作を行うかを考えるだけでよい、ということになります。

ではまず最初に、このコードをベースに、指定したフォルダが使用している容量を計算してみましょう。

—————————————————————————————————————–
using System;
using System.Linq;
using System.IO;

class Program
{

March 13, 2009

Expression Builderの使い方といくつかのサンプル実装

Filed under: .NET Framework, ALL, Asp.Net — Tags: , , , — Sayuri @ 10:58 am

Using Expression Builders in ASP.NET

skmExpressionBuilders – A Suite of Custom Expression Builder Classes

Expression Builderクラスの存在自体を知らなかったんですが、.NET Framework 3.0で導入されてたみたいですね。
3.0ではASP.NETの拡張は行われていない、と思ってたんですけど、こんなひっそりした追加が。。。

独自に実装は必要になりますが、内部的なデータを毎回同じコードを記述してコントロールのプロパティにセットするよりはずっとすっきりした実装ができるようになると思われます。
いろいろ使い道はありそうなので覚えておこうっと。

Older Posts »

このページの上部に戻る

Powered by WordPress