|
|
Browse by Tags
All Tags » ASP.NET » Tips and Tricks (RSS)
-
There is no way to add querystring parameters to the SiteMapNode in a SiteMap control "out of the box." I'm quite surprised there is no option but luckily the SiteMap uses the provider model. After a Live search, I was able to find a solution provided by Bobby DeRosa. By creating a custom provider, this can be accomplished. The project I ...
-
LINQ views the Image type in SQL Server as Binary. So, there are a few options that we have. We can either (a) modify our LINQ to SQL class and change the property to Byte() instead of Binary or we can (b) convert the Binary to an array. To do the latter, you can use a lambda expression to obtain the image you are looking for and grabbing just the ...
-
People often ask me at conferences for PC hardware recommendations. Specifically - ''what type of machine do you recommend I get for doing development with Visual Studio?'' and/or ''your laptop seems really fast, what type is it?''
Some of my recommendations on this topic are fairly standard and obvious: Ideally you want to get a ...
-
Quite often, vendors pass images or PDFs to customers using the binary contents of the file. To make it more secure, they convert the binary contents to a Base64 string. A full explanation about Base64 encoding can be found at Wikipedia here. Anyway, when you receive the string, you cannot simply write it to a file or to the browser. First, you ...
-
Earlier this year I blogged about a new language extensibility feature of C# and VB called ''Extension Methods''.
Extension methods allow developers to add new methods to the public contract of an existing CLR type, without having to sub-class it or recompile the original type. In doing so they enable a variety ...
-
One of the questions I get asked fairly regularly is: ''how can I can easily change different configuration settings in my web.config file based on whether my application is in a dev, qa, staging or production mode?'' The most common scenario for this is one where an application uses different database connection-strings for testing ...
-
Over the last year we've seen several people report having performance problems when using F5 to run/debug ASP.NET 2.0 applications using Visual Studio 2005. The problem in theses cases typically wasn't with building the project, but rather that it sometimes took the debugger a really long time to hit the first breakpoint once it attached ...
|
|
|