ASP.NET News from Blogger:
Vault of Thoughts
Total News: 108
Microsoft recently release it's Search Engine Optimization Toolkit as part of the
Internet Information Services. Making SEO Toolkit part of IIS is a strange decision
to start with, and reasons for th...
Unit Testing ASP.NET? ASP.NET
unit testing has never been this easy.
Typemock is launching a new product for ASP.NET developers the ASP.NET Bundle -
and for the launch will be giving out FREE license...
"Invalid URI: The Uri scheme is too long" - now that's a peculiar message. I got it
while doing some Xslt transformations. It comes out that XslCompiledTransform can't
just read any xml and transfo...
I'm having some very strange problems lately with my Visual Studio. From time to time,
a random feature just stops working. From not being able to pin/unpin windows, through
random component not inst...
Now! That has to be one of my greatest findings! Ever!
The Indexer method (the one that allows for doing object[something]) of the Hashtable
class in .NET has a Thread.Sleep(1) inside one of the loo...
Just few days ago, my friend at work found a peculiar error message in ASP.NET RangeValidator control.
He was trying to validate length of a string in a TextBox. Controls on page
definded as follows:...
Another day, another gotcha.
While workign with regular expressions I was matching some input string to a pattern
with one group capture (is it the correct name?). I mage a regex.Match() thing, got
...
"There is no such method!" That's what everyone is told by Microsoft. Microsoft is
even insolent enough to provide us with reasons
why they did not include Directory.Copy method in .NET Framework.
...
As we all know, ASP.NET uses one form model to do all it's magic. Love it or hate
it, we have to live with it. 99% of the time, it is not a problem, but then there
is this 1%...
The main problem wit...
Today I needed to add an special field to my LINQ query. A kind of Row Number column.
Actually it was not a row number nor was it a column since LINQ deals with objects,
but since it was used for pre...
Today while using Reflector I've noticed one funny thing. It came out, that we are
able to see where Microsoft keeps their PublicKey files and what are their names :-)
Few samples:
mscorlib
f:\RedB...
One thing that I like about SQL is the IN operator which checks if an argument is
equal to any of the listed elements. C#/.NET doesn't offer this kind of operator which
forces us to use code similar ...
There is a nice little base class hidden inside System.Collections.ObjectModel namespace.
Its name is KeyedCollection. Its there to solve all those situations when
we need a collection where items ar...
I've never liked VB.NET. Probably because I was (un)fortunate enough to work with
VB6 for 2 years, even though .NET and C# were already there. Nevertheless I'm aware
that VB.NET tends to offer some v...
There is a nice control in ASP.NET called ValidationSummary. Its purpose is to group
and display all validation error messages in one place. Errors reported by Validator
controls put on the page are ...
As hard as it is for me to believe, there are people out there that do not use the Total
Commander! Yes, that is true. Those people use the built in Windows Explorer for
navigating folders, copying f...
When I first installed Windows Vista with IIS 7 I have started to notice that ASP.NET
debugger tends to time-out very often. Previously I hadn't noticed such a behavior
when I was using Windows 2003 ...
Another small yet useful thing. Usually when we have an object of a class and want
it to be more debugger friendly, we override the ToString method. From that
method, we return something meaningful, ...
Some time ago I've written an article on creating
memory efficient events. Over a year later - that is today, I have found that
a Control class has a built in property Events that is there for this v...
In my not so recent article I've described, how
to write a Visual Studio macro for finding a Type in a project. As useful as writing
macros can be, there is a better, built inway, t...
The one thing that I always miss in Visual Studio is a quick way to open a file that
is part of a solution. By "quick" I mean not requiring a mouse action and with minimal
amount ...
In my last article on opening a file in
Visual Studio, I have described how to write a macro to open a file given it's
name. Now we can take it one step further. How about opening a...
While working with any kind of configuration files in .NET, be it Web.config in case
of ASP.NET or App.config in case of Windows Forms applications, we very often use
the appSetting...
A while back, I've posted about the problem
with Visual Studio 2005 complaining about the site being configured for use with ASP.NET
1.1. I've lived with this problem since then, bu...
OnClientClick isa useful property introduced in ASP.NET 2.0 that allows us to
add some client-side behavior tobutton control. Using is as simple as providing
the script to be called...
ASP.NET Ajax comes with a nice way to attach to a load event of a page. To do it just
call Sys.Application.add_load and pass it a function as an argument. Done. Everything
works as ...
For a couple of months now I've been running Windows Vista and Visual Studio 2005
without major problems (other than the commonly known ones). Since the first day of
this setup I ha...
ASP.NET despite its many nice features, has also a lot of nasty ones. Some of them
are critical - like a design flaw in the way controls are rendered - by the controls
themselves (o...
From time to time, there is a need to get something from a file system in our ASP.NET
applications. In those cases, we use the Server.MapPath() call on our pages
classes. But what a...
ASP.NET Pages offer us a declarative way to set some of the properties such as Theme,
MasterPageFile or Title in the Page directive. A nice feature indeed. The problem
is that the s...
There is a very useful feature in Visual Studio since I remember. It is accessible
through Debug->Exceptions... menu item. It allows you to specify when you want
the debugger to bre...
Coming from MySQL and PostgreSQL background I am used to tools such as mysqldump for
getting a complete dump of an SQL database into an a file. The file then contains
SQL commands f...
Validation controls are one of the best features that ASP.NET has to offer. They allow
us to perform both client and server side validation and work very well well with
the Control ...
Following my last article on creating
specialized validators, below I present the EmailValidator control which validates
user input with a pattern of an email:
publicclassEmailVa...
Everyone knows the using statement. The statement that deals with IDisposable interface
for us in a clean to write way. There is however one feature of this statement that
is almost...
I cannot remember how many times I was entering the same piece of code over and over
again with few (if any) changes. The piece of code that I'm talking about is an event
handler me...
Today I have found a really useful class inside the System.Diagnostics namespace.
It's called DebuggerTypeProxy and it allows you to customize how you types behave
(or more precisel...
Today while I was working on my usual solution inside Visual Studio I have encountered
a serious problem with how Visual Studio, SourceSafe and Web Site projects interact.My
solutio...
Almost every time I'm working on an ASP.NET project I create a Visual Studio solution
that consists of at least two projects: the web project and a class library. The first
one is o...
After reading my article on recursive
properties of ASP.NET controls, where I point out that not all properties are
recursive, I have decided to fix one annoying behavior. The probl...
ASP.NET, or more accurately Web Forms, offer us a completely new way to create web
pages. We can now work with control just like Windows developers. We even get to use
an event driv...
With the release of .NET Framework 2.0, we have gained access to a very powerful feature
called Anonymous Methods. I'm sure that almost any .NET developer has used Anonymous
Method ...
While working with ASP.NET, from time to time, I need to change some parameter that
is common to all controls ofon a page. An example of such operation might be
setting ReadOnly pro...
Today, while working with WebRequest (HttpWebRequest) class and
its BeginGetResponse method I have discovered a strange behavior. It turns
out that you cannot always relay on the IA...
Today I was working with System.Uri class a bit and I must say that it is
very useful. Just imagine checking if a given URL is absolute or getting the host
name from URL or even get...
One of the other daysI encountered a strange problem. I was unable to set the
Visible property of one of built in ASP.NET controls to true. Ihad verified
that it is indeed true that...
In my last article, I have
described a "feature" of some of the properties of ASP.NET controls: recursive properties.
It is obvious why it is important to know about it, but how d...
Today I've got a question if it is possible to make ASP.NET not to render thediv tag
around it's special hidden fields(i.e.: "__EVENTTARGET"). I have never thought
about it before...
From time to time I have to create a form that is used both for display and input
of data (or in other words for viewing or adding/editing). As an example, imagine
a form for enteri...
I've been playing with ASP.NET Localization features lately and I have mixed feelings
about it. I mean, the Localization features of ASP.NET are great, but you have to
be very caref...
View Other bloggers