Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with optional parameters?
Message
 
 
To
24/10/2011 16:37:53
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01527224
Message ID:
01527233
Views:
35
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
Previous
Reply
Map
View

Click here to load this message in the networking platform