Quantcast
Channel: A Programmer with Microsoft tools » ASP.NET MVC
Browsing all 10 articles
Browse latest View live

My standard way to work with dropdown box in ASP.NET MVC – 2 steps (or 3 if...

I have written a small post about dropdownlist template in ASP.NET MVC here : http://msprogrammer.serviciipeweb.ro/2010/05/30/mvc-helper-templates/ I think that the dropdownlist should be explained...

View Article



Five common mistakes for ASP.NET (MVC) accesing resources : css, js, images,...

To have once for all the link to show to people, because too much makes the same error again and again. (From here – you can use ResolveUrl or Url.Content – it’s the same for me. I use ResolveUrl...

View Article

Image may be NSFW.
Clik here to view.

A programmer day with “That assembly does not allow partially trusted callers”

I make a website, works on local IIS. Performs user registration  + uploading some zip files + generating custom feeds for those zip files. Using SharpZipLib_0860_Bin ( to unzip file ) ,...

View Article

Error intercepting in MVC when saving data

I have seen many times in MVC the following code , when doing a post and saving data : try { //code to save to database } catch { ModelState.AddRuleViolations(TheModel.GetRuleViolations()); } Why is...

View Article

mvc windows authentication

If you want to use Windows Authentication with MVC : Step 1 : In web.config, put authentication mode windows Step 2 : in IIS disable anonymous Step 3 :  go to Views\Shared\LogOnUserControl.ascx and...

View Article


Image may be NSFW.
Clik here to view.

ASP.NET MVC make users–roles fast

please left click on “Microsoft SQL Server Management Studio (push button)” please create a database in “Microsoft SQL Server Management Studio” please left click on “C:\Windows\system32\cmd.exe (push...

View Article

MVC Zip Result

Sometimes you need to send to the user more than 1 file – or, maybe, the file is too large The simplest way is : made a zip file that contains the others. What do you need 1. SharpzipLib from...

View Article

Backup application for Windows Azure

I have written( with Vunvulea Radu and Catalin Gheorghiu)  a backup application for Azure. It is made with MVC + Azure Tables. It was made initially for a contest, but I intend to work further and...

View Article


Image may be NSFW.
Clik here to view.

Interfaces and more

  Summary: If you want common behavior, you need an interface. And from the first one is a small step to re-organizing the program. Body: When you make a component for other people, you must make the...

View Article


Image may be NSFW.
Clik here to view.

Clearer MVC

In every application there are some variables that are set by the ASP.NET  application(  ASP.NET_SessionId  cookie ) and some that are set by the programmer( cached data in...

View Article
Browsing all 10 articles
Browse latest View live




Latest Images