27 Oct 2011

Linux: Slackware - Install Flash

Download the tar.gz file en extract it. Then copy libflashplayer.so to /usr/lib/mozilla/plugins

or

tar -xzvf install_flash_player_10_linux.tar.gz
cp -v libflashplayer.so /usr/lib/firefox-3.6.12/plugins

Linux: Slackware - HTC Desire HD USB Tethering

Run this command: dhclient usb0

14 Oct 2011

ASP.NET - Transfer to another page using gridview based on 'id'

This is for when you have a GridView with a link based on 'id'.

SQL table (tblMovies): movieID, Title, Year etc.

Page1.aspx

GridView settings
Propeties | Data | DataKeyNames : movieID

GridView tasks
GridView Tasks | Edit Columns | Add HyperLinkField

Add a HyperLinkField

HyperLinkField propeties
Appearance | HeaderText: Blahblah-whatever
Data | DataNavigateUrlFields : movieID
Data | DataNavigateUrlFormatString: ~/Page2.aspx?movieID={0}
Data | DataTextField: movieID

Page2.aspx

In the SqlDataSource you need to use a parameter for the 'id':
Parameter source: 'QueryString'
QueryStringField: movID

SELECT * FROM tblMovies WHERE (tblMovies.movieID = @movID)

This is just a help, not a guide