Friday, June 02, 2006

A lot of sites allow people to upload a file like pictures, word documents, ... or even videos. ASP.NET provides an easy way to do this(1).

What not everyone seems to know that ASP.NET only allows, by default to upload 4Mb of formdata to the server. Endusers can get frustrated when they try to upload their large sized document or video and see, after wasting bandwidth and time, that they don't succeed. This leaves your endusers with a bad taste in their mouth about your application and most likely they won't return or go to the competition.

However, as with many things in ASP.NET, this can be easily adjusted. Open up the web.config file of your current application and check the line, or add it in case it isn't already in the config file, <httpRuntime /> (2). This has an attribute maxRequestLength that you can set. The number represents the amount of kilobytes that the total form can transfer to the server. Setting this to a higher number than the default 4098 allows you, the developer, to let endusers upload larger sized files.

 

Grz, Kris.

(1): Uploading Files in ASP.NET 2.0, Uploading Files Using the File Field Control or Uploading in ASP.NET to name a few.
(2): Take a look at the documentation for other settings that you can make.

Friday, June 02, 2006 2:31:52 PM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Wednesday, May 31, 2006

Just found out about this one: http://www.seewindowsvista.com/. It has some smooth looking videos available organised into 4 categories:

  • Connecting with people
  • Managing the big picture
  • Turning information into action
  • Expanding your possibilities

Another site that was release recently is http://www.iis.net/, a site totally dedicated to IIS6 and the new upcoming IIS7. Also be sure to check out the virtual labs.

Some other sites about upcoming technologies that'll ship with Vista, and will also be available for Windows XP with Service Pack 2 and Windows server 2003:

  • WPF (Windows Presentation Foundation, formerly known as Avalon)
  • WCF (Windows Communication Foundation, formerly known as Indigo)
  • WF (Windows Workflow Foundation)

Of course, people who know me, know that http://forums.asp.net/ is still one of my most visited sites. Not only to help out people there but also to still learn from others too.

Grz, Kris.

Wednesday, May 31, 2006 7:51:53 PM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback

I've read some good feedback on this tool before and also installed it at work where I use SQL Server 2005 Management studio on a daily basis.
Once you get used to Intellisense in visual studio.net you always get that creepy feeling: where's Intellisense when you want to query your database? Well, SQL Prompt fills that gap and saves you valuable time while developing or creating another inner join. The tool can be downloaded here for free until September 1st 2006.

Wednesday, May 31, 2006 7:04:51 PM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Monday, May 29, 2006

Hi,

ASP.NET 2.0 is promoted quite heavily by Microsoft and other companies or dedicated sites. What most people seem to love are the starter kits which have several dedicated members that like to extend these starter kits and expose these on the internet. If you would be interested in extending some of the starter kits, or just have one deployed as your own personal website, you can download them here.

Most of these starter kits ship with a sample database which normally consists of a .mdf and a .ldf file. Not all people have SQL Server 2005 Express edition installed but rather only SQL Server 2005. It's quite easy to attach such an Express database to SQL Server 2005 when you have both files available but as I found out in the past sometimes only the .mdf file is provided which prohibits one to attach the database the normal way.

Luckely there's a special procedure available: sp_attach_single_file_db.

An example on how to use it:
EXEC sp_attach_single_file_db @dbname = 'pubs', @physname = 'c:\Program Files\Microsoft SQL Server\MSSQL\Data\pubs.mdf'

The @dbname = and the @physname can be omitted if you like.

Grz, Kris.

Monday, May 29, 2006 7:25:24 PM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [0]  |  Trackback
 Saturday, May 27, 2006

Hi,

after been asked multiple times by peers and reading a lot of blogs myself, I also decided to start blogging. Since the urge to start blogging is mainly driven from the idea to share technical information, you can expect to see mainly technical content on this blog.
That's also the reason why I chose to have the Hello, World! as subject for my first blog post. Hello, world! is quite commonly used in the world of programming and if you like to know more about it I would suggest that you take a look at this article on wikipedia.

So, who am I?
Well, I'm best known online for my efforts on the ASP.NET forums where I'm a dedicated moderator and top 10 contributor nicknamed XIII.
If you want to learn more about me you can check out the About page.

Well, that's it for now...

Grz, Kris.

Saturday, May 27, 2006 11:53:06 AM (GMT Standard Time, UTC+00:00)  #    Disclaimer  |  Comments [4]  |  Trackback