November, 2009

now browsing by month

 

ASP.Net Repeater, RadioButton, GroupName doesn’t work

The issue is Radio Buttons Are Not Mutually Exclusive When Used in a Repeater Server Control.

From Microsoft

This is a known issue of ASP.NET template databound control(such as repeater, DataList …). When you put RadioButton in such control's template, since its "groupName" is assigned a unique value each row,. Here is the public kb article document this issue:

Server Control
http://support.microsoft.com/kb/316495/en-us 

Here is the work around

Windows Tip: Vista Show Desktop Icon(Minimize All) is Missing

Show Desktop Icon is Missing

Copy and paste the five lines below into Notepad.

[Shell]
Command=2
IconFile=explorer.exe,3
[Taskbar]
Command=ToggleDesktop

Then save it as Show Desktop.scf and drag it to your quick launch bar.

SQL Tip: Select a random row from a SQL database table

So how do you select a random row in a SQL database table?

SELECT TOP 1 Name, Address, City
FROM         tbl_Person
ORDER BY NEWID()

This will select a random person every time.