Monday, September 29, 2008

How to delete a Windows Service

In command line write

sc delete "Some Service Name"

Friday, August 29, 2008

Visual Studio - how to restore missing templates

 

DevEnv.exe /installvstemplates

The file is located (for vs2005) at:

C:\Program Files\Microsoft Visual Studio 8\Common7\IDE

Tuesday, August 12, 2008

How do you know you are going to have a bad day....

image

ASP.NET Custom Error pages

A great explanation about where and how errors can be caught in ASP.NET application and how to build custom error pages.

Link

Saturday, August 2, 2008

Cake!!!!

image

New ideas as mash-ups

When presenting an original idea to others - it can be presented as a mash-up of couple of well known ideas.

Cloverfield = Blair Witch Project + Godzilla

LinkedIn = Facebook + Business Contacts

It will not cover all the nuances of your idea, but it will give your listeners some anchor to relate to that idea, which gives you a good start point.

 

Source

Thursday, July 24, 2008

jQuery - Thickbox

http://jquery.com/demo/thickbox/

http://blogs.digitss.com/javascript/hacking-jquery-thickbox/

Conditional statement for IE6

<!--[if lt IE 7]>
  <link rel="stylesheet" type="text/css" media="screen" href="other.css" />
<![endif]-->

lt - means "less then" - will link another css only for browsers less then IE7

Track mouse with jQuery

 

$(document).ready(function()
 {
  $().mousemove(function(e)
   {
    $('p').html("X Axis : " + e.pageX + " | Y Axis " + e.pageY);
  });
});

 

Source

Saturday, July 19, 2008

ASP.NET: Retrieve data from a web page

Link

ASP.NET: Custom Error Pages

Link

ASP.NET: Extract data from a SQLDataSource to a DataTable

 

1. Dim dv As New System.Data.DataView  
2. Dim dt As New System.Data.DataTable  
3. dv = mySQLDataSource.Select(DataSourceSelectArguments.Empty)  
4. dt = dv.ToTable()
Source

ASP.NET: Use C Sharp and VB.NET in the same project

 

Link

Persisting data in a web app by using frames

 

Say you have your main page, which is just a frameset. All the navigation occurs within that frameset, such that going from page1 to page2 merely updates the frame's url, it doesn't re-create the host page. This leaves the host page intact, including it's JavaScript state. Therefore, you could have a JavaScript variable persist data between pages.

<html>
  <head>
    <title>My App</title>
    <script language="javascript" type="text/javascript">
      var _javaScriptVar = null;
    </script>
  </head>
  <frameset>
      <frame src="Page1.aspx" id="mainFrame">
  </frameset>
</html>

 

You could then reference this variable from your child pages via the DOM:

window.parent._javaScriptVar = "someValue";

 

Source

Jump between braces in Visual Studio

Put your cursor before or after the brace (your choice) and then press Ctrl+].

Source