Interesting list for 10 rules web startups should follow:
http://www.evhead.com/2005/11/ten-rules-for-web-startups.asp
Interesting list for 10 rules web startups should follow:
http://www.evhead.com/2005/11/ten-rules-for-web-startups.asp
Lucene.Net is another document index search engine.
You can point it at some files, office, pdf, rtf, html, and it will index them and provide a nice google-like results page.
Here is an interesting list of the top 10 things people do wrong when using AJAX.
http://weblogs.asp.net/mschwarz/archive/2006/11/20/the-top-10-mistakes-when-using-ajax.aspx
Here are too cool pages that show visual representations of different sorting algorithms.
I just came across this nice tip:
One change with SQL Server 2005 is a new option to copy column headers along with the data results. This option gets set using the query options setting. To access this setting from SQL Server Management Studio, select Query | Query Options from the menus
You can then paste the columns into excel and you will get the headers as well.
http://www.mssqltips.com/tip.asp?tip=1107
One thing that I really like about IE, but is not available in other browsers is the client side modal dialog.
A modal dialog is a popup window that must be acted on (or closed) before you can do anything else on the window underneath.
I came across a nice modal dialog being used on the forums.asp.net site. I ended up emailing the guy who wrote the editor I was using, and he directed me to the original creator of the dialog “submodal.”
Some people have made updates and extensions to submodal, and there has been a google group created for the discussion of submodal.
It is still not clear to me if this technique will allow you to pass back a value from the modal dialog to the opening page, because I think that is a very important feature, but I don’t see any direct reference to it.
I just read this article on aspalliance.com by Sandeep Archarya.
I think the article had 2 main points. One was that databinding a combobox is not “bug free” because the act of manually databinding to a combobox causes the SelectedIndexChanged event to fire. The second point was to show how to create a simple namevalue class to be added to the combobox items collection to get around the “problem” of combobox’s taking an object as the item in it’s list (as opposed to a name value pair).
I would point out the following:
First, I am not sure that I would call the SelectedIndexChanged event firing a bug. When you manually databind a list, the first item become selected by default, and thus the selectedindex HAS changed, from -1 to 0.
Second, if you consider this a problem you can get around it a couple different ways.
1) Don’t use manual databinding.
In the designer, select a datasource or create a new one. I created a simple employee object and created an object datasource for this employee. This creates a EmployeeBindingSource object that I bind my employee list to. Using this method, I didn’t experience the SelectedIndexChanged event firing on the databind.
Private list As New System.Collections.Generic.List(Of employee)
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
‘*** create some fake employee objects
For i As Integer = 70 To 80
list.Add(New employee(i, Chr(i)))
Next
‘*** this will populate our control (Combobox1)
Me.EmployeeBindingSource.DataSource = list
End Sub
2) You can use manual databinding, and manually detach and attach the event handler for this event.
Private list As New System.Collections.Generic.List(Of employee)
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
‘*** create some fake employee objects
For i As Integer = 70 To 80
list.Add(New employee(i, Chr(i)))
Next
‘*** remove the handler
RemoveHandler ComboBox1.SelectedIndexChanged, AddressOf ComboBox1_SelectedIndexChanged
‘*** databind
Me.ComboBox1.ValueMember = “id”
Me.ComboBox1.DisplayMember = “name”
Me.ComboBox1.DataSource = list
‘*** add the handler back
AddHandler ComboBox1.SelectedIndexChanged, AddressOf ComboBox1_SelectedIndexChanged
End Sub
Microsoft is offering some free online lab training on .Net 3.0 for a limited time.
Use this link: http://msdn.microsoft.com/virtuallabs/netframe/default.aspx
Microsoft is releasing “Visual Studio Team Edition 2005 for Database Professionals” (who on Earth comes up with these names????).
MS is holding some launch events all over where you can come (for free) and learn a little about this product, which from what I saw looks pretty slick.
Red Gate has a pretty interesting tool called SQL Refactor:
http://www.red-gate.com/products/sql_refactor/index.htm
The “Layout Code” feature looks awesome. It basically takes a terrible looking select statement and turns it into a nicely formatted block.
Here is a code project article that shows some of these features:
http://www.codeproject.com/showcase/SQLRefactor.asp