(Lviv community of .NET developers)

Recent posts

Семiнари для розробникiв

September 17, 2008 01:46 by rredcat
23 вересня — 27 листопада 2008 року
Київ, Житомир, Рiвне, Тернопiль, Хмельницький, Вiнниця, Миколаїв, Херсон, Суми, Iвано-Франкiвськ, Днiпропетровськ, Запорiжжя, Донецьк, Харкiв, Львiв, Сiмферополь, Одеса ... >>>

Currently rated 5.0 by 3 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags: , ,
Categories: WPF | .NET | WinForms | Links | ASP.NET | WinFx | Networking
Actions: Permalink | Comments (3) | RSSRSS comment feed

IP geo-location - make it easy!

September 11, 2008 02:49 by alexk

Introduction

Today I want to open one more interesting part of making internet business - statistics collection. I hope you already knows popular service Google Analytics that helps many companies to track internet activity on web site (main issue that those analytics is not runtime, you have to wait 1 day for getting ready to use statistics). But do you want to know how to make own statistics tracking engine on IIS? I hope you do.

In this article I will describe how to collect statistics from IIS and how to do most common thing - resolve clients IP into geo-locations.

Theory

Let's make a quick look on web site hosting. What we can see? Let's count:

  1. IIS hosting server
  2. Web site (for example ASP.NET)
  3. Database (for example MS SQL Server)

Those 3 components are the most common for every web site based on Microsoft technologies.

Statistics tracking can be done only on first two components: IIS and ASP.NET... (but this is not exactly true, if take a look into depth then we can identify that in reality we have only one component IIS and it's filters model - ISAPI filters.)

Tracking of statistics on IIS layer is well described by Microsoft in own knowledge database.

... >>>

Currently rated 5.0 by 3 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Полезные ссылки - Part 5

December 18, 2007 11:48 by alexk

C# Pivot Table By felipesabino

Так называемый поворот таблички на 90 градусов с групировкой...
http://www.codeproject.com/KB/recipes/CsharpPivotTable.aspx
... >>>

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Categories: Performance | .NET | QA | General | WinForms | Links | ASP.NET
Actions: Permalink | Comments (2) | RSSRSS comment feed

Custom web.config sections

December 14, 2007 17:55 by alexk
How to create custom config sections in web.config file?

Step 1: Declare section group

<?xml version="1.0"?>
<configuration>
  <!-- Definition of config file sections -->
  <configSections>

    <!-- define your custom section here -->
    <section name="proxies" type="System.Configuration.NameValueSectionHandler,
System, Version=1.0.3300.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089"/>
                             <!-- System.Configuration.NameValueSectionHandler,
System, Version=1.0.5000.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089 -->
  </configSections>
</configuration>

... >>>

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Activator for App_Code assemblies

December 14, 2007 17:38 by alexk
I want to implement "proxy" pattern in my ASP.NET application is it possible?

why not?!

First question:
which pattern you want to use for instance of proxy class creation? if it looks like written below, then you are looking on right article.

 protected void Page_Load( object sender, EventArgs e )
{
    Assembly appCodeAssembly = FindAppCodeAssembly();
    string proxyType = "Artfulbits.Proxy.LocalProxyAdapter";
    Type type = appCodeAssembly.GetType( proxyType );
    IProxyAdapter proxy = ( IProxyAdapter )Activator.CreateInstance( type, null );

    // TODO: use proxy as you want here
}

... >>>

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

ASPNET user & DB security

December 14, 2007 17:26 by alexk
How-to configure DB security for ASP.NET applications?

answer is simple. You have to grant access to the DB for MACHINENAME\ASPNET user. This can be done in several ways, but easiest is to use this simple script written below. Place code into *.cmd file and enjoy. Script is well configurable by variables: OSQL, SQL_USER, SQL_PWD, SQL_DB;

OSQL - location of the command line utility for SQL Server (2000 and 2005 known by script - look carefully on comments)
SQL_USER and SQL_PWD - place login and password if you server used mixed security model
SQL_DB - place here name of the DB that must be accessible for ASPNET user.

... >>>

Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

ASP.Net AJAX Control ToolKit Extender for CardSpace

October 24, 2007 23:56 by rat

Нарыл вот в блогах интересный пост, мож кому нада будет..

Цытирую:

I've created a control based on the ASP.NET AJAX Control Toolkit that gives a web site the ability to easily add cross browser support for CardSpace and othe Identity Selectors.

The concept comes is loosely based on dominick baier's CardSpace Control for ASP.NET, however I think that you'll find that it should be more flexible in regards to the UI abilities.

I have offered the control to the ASP.NET AJAX Control Toolkit team and they are considering its inclusion in the project.

This prototype code is attached to this blog entry.

CsAjax.zip


Currently rated 4.0 by 2 people

  • Currently 4/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags: ,
Categories: .NET | ASP.NET
Actions: Permalink | Comments (10) | RSSRSS comment feed

AjaxControlToolkit is undefined

September 10, 2007 06:17 by nazar

Стикнувся якось при використанні AjaxControlToolkit з вищенаведеним exception-ом. Причому з*являвся невідомо через що і пофіксати можна було єдиним способом: 1) скопіювати зміни кудись наліво 2) відновити з репозиторію і скопіювати зміни назад - і о чудо все працює! :)...

 

Але врешті решт і цей спосіб відмовив, тож довелося цю проблему добряче погуглити. Спочатку на Кодеплексі (www.codeplex.com) сказали що це не проблема їхнього контрола і самого АЯКС-а. Поліз на аяксівський форум - там взагалі якись безпорядок, одні кажуть шо це фіксається через Ctrl+F5, інші шо проблема з 7-м експлорером, ше дехто знайшов взагалі якийсь воркераунд де треба вставляти на сторінку панельку а на неї ше щось. і т.д.  Ясно шо нічого з того так не допомогло.

 

Так от тільки що знайшов в чому проблема: сторінки які з часом відмовляли були в мене переключені в режим Trace. Напевно АЯКС з таким не дуже дружить. Отже ставлю директиву на сторінці Trace=false -> refresh = опля, все гуд!. Міняю назад - теж гуд, чудасія :).


Be the first to rate this post

  • Currently 0/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5
Tags: , ,
Categories: ASP.NET
Actions: Permalink | Comments (4) | RSSRSS comment feed