Geeks With Blogs
Łukasz Kuryło's blog September 2009 Entries
Using App.config and System.Configuration
Suppose that you have a interface in your project 1: namespace Configuration.Logger 2: { 3: public interface ILogger 4: { 5: void Write(); 6: } 7: } and a few his implementations. 1: public class FileLogger : ILogger 2: { 3: public void Write() 4: { 5: Console.WriteLine("Writing to file"); 6: } 7: } 8: 9: public class DatabaseLogger : ILogger 10: { 11: public void Write() 12: { 13: Console.WriteLine("Writing to the database"); 14: } 15: } Depending on the situation, you want use first of them, another ......

Posted On Tuesday, September 29, 2009 10:55 PM

Downloading a file from, this is a polish site similar to youtube. It allows to watch movies and listen to music, but does not allow direct downloading them to disk. In this post I would like to show how to achieve that using Ext JS and MVC. Create a new ASP.NET MVC project and add there a Ext JS library. I have written here how to do that. First step is create a form where user can paste the url. Ext.onReady(function() { Ext.QuickTips.init(); var form = new Ext.form.FormPanel({ frame: true, renderTo: 'form', ......

Posted On Sunday, September 27, 2009 9:20 PM

useful links
ASP.NET MVC Reports in ASP.NET MVC Integrating OpenID in an ASP.NET MVC Application using DotNetOpenAuth Microsoft Chart Controls to PDF with iTextSharp and ASP.NET MVC Setting Up ASP.NET MVC with NUnit for Visual Studio 2008 Standard Edition ASP.NET MVC ExtJS using LINQ Using ExtJS Grid with ASP.NET Ajax WCF WebServices & C# How To Get Started With Selenium Core And ASP.NET MVC ASP.NET MVC Cheat Sheets ASP.NET How to Implement Trackback Handler in ASP.NET How to Implement Pingback Handler in ......

Posted On Tuesday, September 22, 2009 1:53 AM

Forms with EXT JS
This is a part of EXT JS Tutorial In this article I will cover information about creating, submitting and validating a forms with Ext JS library. Submitting form to the server will be based on ASP.NET MVC page, so create a new MVC project in Visual Studio and add a EXT JS library into it. How to do it I have written here. So let’s create our first form. How to create a simple form – first example. var form = new Ext.form.FormPanel({ //(1) renderTo: Ext.getBody(), //(2) url: 'Home/SubmitForm', frame: ......

Posted On Sunday, September 13, 2009 6:26 PM

VSTO for Excel 2007 snippets
How to hide the tab with sheets in the bottom of the workbook. How to hide the headings. How to use a build-in function. How to send a keybord shortcut to the Excel. How to merge all cells in the sheet. 1. How to hide the tab with sheets in the bottom of the workbook. this.Application.ActiveWind... = false; 2. How to hide the headings. this.Application.ActiveWind... = false; 3. How to use a build-in function. Excel.WorksheetFunction func = this.Application.WorksheetF... ......

Posted On Thursday, September 10, 2009 2:16 PM

How to upload a file using Ext JS to the ASP.NET MVC page
In this short article I would like to show how to upload an image file to the server using Ext JS library and ASP.NET MVC. First step is create a new ASP.NET MVC project and add to him the Ext JS library. I have written here how to do it. We will use a user extension called Ext.ux.form.FileUploadField to upload a file. It is not included in the library, so add to project these files: - FileUploadField.js - FileUploadField.css Now let’s add a new form with the fileuploadfield field Ext.onReady(function() ......

Posted On Saturday, September 5, 2009 2:11 PM

Copyright © Łukasz Kuryło | Powered by: | Join free