Quantcast
Channel: .NET – Random Technical Thoughts
Browsing latest articles
Browse All 14 View Live

Image may be NSFW.
Clik here to view.

Can’t open a Visual Studio test project

The test tools in Visual Studio can help you stress test your application.  The only problem is that they are not included with the regular developer edition of Visual Studio.  So if have the wrong...

View Article


Image may be NSFW.
Clik here to view.

So you want to blog on asp.net

When I first started blogging I wanted to blog on asp.net.  I have a friend who already blog’s on asp.net (David Mccollough) and I asked him what the steps were (because they are not on asp.net). Here...

View Article


Image may be NSFW.
Clik here to view.

TFS 2008 get latest version automatically

When using  the Visual Studio integration for TFS 2008, you will notice that the latest version will not be retrieved when you start making changes to a file. There is an option that you need to have...

View Article

Image may be NSFW.
Clik here to view.

Visual Studio 2008 web test recorder not working on 64-bit

The load test in Visual Studio are a great help to stress/performance test you applications.  With the web test you “should” be able to record actions as you use your application.  When you add a web...

View Article

Image may be NSFW.
Clik here to view.

Where to find where you click once app is deployed.

Click once applications have many advantages and disadvantages. One of the disadvantages is that it hides where the application gets installed.  So if need to double check something like a connection...

View Article


Image may be NSFW.
Clik here to view.

Ternary operator

The .NET framework has a cool feature called the Ternary Operator.  It’s basically a shortcut for  an if/then/else statement. Here’s the format: condition ? first_expression : second_expression; The...

View Article

Image may be NSFW.
Clik here to view.

Generic Send mail method

Here is a generic send mail method. You just need to pass in a subject and body. In your web.config you need a key for the from (notification_from), To (notification_to) and mail server (mail_server)....

View Article

Image may be NSFW.
Clik here to view.

Generic handle error method

Here is a generic handle error method I put in my catches.  It will send an email with the inner exception unless it’s null then you get the exception message.  The stack trace is included. You should...

View Article


Image may be NSFW.
Clik here to view.

How to get a reference to the control that caused a post back

Here is some old code I found (in VB.NET) the will tell you what control caused the post back. ' Return a reference to the control that caused the last postback, ' even from the Page_Load event! ' It...

View Article

Browsing latest articles
Browse All 14 View Live