ASP.NET

Recently I got a contribution from BeJay, one of IZWebFileManager users. It was 3 new language resource files: China, Czech  and Slovakia.

 

So by now IZWebFileManager supports 17 languages! Isn't it great?

 

Most recent release available for download from google code: http://code.google.com/p/izwebfilemanager/

 

IZWebFileManager is an open source project. You are welcome to contribute!

igorz 05/02/2012 - 08:22

It seems to be a common issue.

ASP.NET allows you to use resource files (*.resx) to localize content of pages (or views, if we are in context of ASP.NET MVC). All what you need is to put resource files under ~/App_GlobalResources folder and use either resource expression or  HttpContext.GetGlobalResourceObject() API to get a proper string. It is well documented on MSDN. The only issue - this API is not accessible within static resources such JavaScript files.

igorz 15/11/2011 - 09:54

JavaScript is extremely popular language and already has implementations for server-side programming. For example Node.js  - a server-side JavaScript environment that utilizes Goggle's V8 JavaScript Engine.

I am an ASP.NET developer and want to use JavaScript in the ASP.NET environment. I found Javascript .NET project, that bring Google's V8 to the .NET world and I started with a simple task - to write a custom ASP.NET HTTP Handler using JavaScript. (I had done similar task with IronPython before)

Setup requirements

1. I want *.js file to be processed on server (like *.aspx or *.ashx)

igorz 01/08/2011 - 12:34

Recently I had integrated ASP.NET Web Pages into existing ASP.NET Web Forms site. It was classic Web Forms project uses most of ASP.NET Web Forms features. And of course it uses the built-in FormAuthentication. See Web.config:

Any time you access 'secure' url, you get redirected to Login.aspx with ReturnUrl parameter. This worked fine for years.

 

igorz 14/07/2011 - 12:07

Catching and logging unhandled exceptions is one of the first tasks in developing an ASP.NET application.

Typically you put code which handles exceptions into Global.asax:

 

The are many ways to report an error: you may write it into a database, send an email or store it in memory.  I got tired of copying such code from one app to another and finally found a component that allows me to handle errors in a code-less way. It is ELMAH

igorz 11/07/2011 - 09:06

An HTTP handler is the endpoint that responds to handle request made by an ASP.NET Web application. The request is mapped to HTTP handler based on name pattern (commonly file extension). ASP.NET provides a few default HTTP handlers: Page handler (.aspx), Web Service handler (.asmx), Generic handler (.ashx) and so forth.

ASHX Generic handler is special since it allows to implement IHttpHandler API immediately.
There is a sample - HelloWorld.ashx:

Language attribute allows me to chose program language to use, but it strongly limited by only two - C# and VB. What if I want to write my code in Python?

.NET actually provides support for Python language with IronPython. And I assume that it is possible to write such a handle using IronPython. But How?

igorz 22/11/2010 - 19:01

When working on new features in IZWebFileManager I needed to change rendered HTML.

 

I took a look at the code I wrote more then 3 years ago.... It is so complicated!

 

IZWebFileManager is a typical custom control that overrides Render and uses HtmlTextWriter's API to produce HTML. Here is a small part of the rendering flow:

 

igorz 22/07/2010 - 17:30

Scott Guthrie has announced the beta of Microsoft WebMatrix, a new free web development tool designed to streamline and simplify web development.

 

"The 15MB download includes a lightweight development tool, IIS Express, SQL Compact Edition, and a set of ASP.NET extensions that enable you to build standalone ASP.NET Pages using the new Razor syntax, as well as a set of easy to use database and HTML helpers for performing common web-tasks.  WebMatrix can be installed side-by-side with Visual Studio 2010 and Visual Web Developer 2010 Express."

igorz 07/07/2010 - 13:50

 A recent study measured the productivity of using Python+Django vs. C#+ASP.NET, in terms of user-stories per week. The results are that 1 Django developer is equivalent to 2 ASP.NET developers, productivity-wise:

http://kurtgrandis.com/blog/2010/02/24/python-django-vs-c-asp-net-produc...

 

The Django team that participated in the benchmark, BTW, had no prior experience with Django, which probably implies that the difference can be even higher.

 

 

udib 25/02/2010 - 13:34

Tami, if you're going to need to build a wizard to your web implementation, you can try this:

http://www.dotnetcurry.com/ShowArticle.aspx?ID=316

 

A very nice trick for building a wizard based on JQuery Tabs.

Itsu Tamam 25/07/2009 - 07:33
Syndicate content