Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with optional parameters?
Message
 
 
À
24/10/2011 16:37:53
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01527224
Message ID:
01527233
Vues:
34
If I try to put * after cuisine in the URL, it gives me 'a potentonally dangerous request' message. May be that's the problem? I'll try to use a different word as default to see if it works - it didn't work also.

I also don't seem to be able to stop in the Controller's code if I add there a breakpoint.

>If you take out the optional param, does it reach the method?
>
>>I tried adding it to the tests (manually myself) and yes, it shows the parameter in square brackets.
>>
>>>Does intellisense show it as optional (surrounded by brackets)?
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform