dave
Posts: 9
|
Posted: 09/14/2006, 6:36 AM |
|
Got it working. Thanks for your help.
Does anyone know how I could increment a number of views column in my database each time someone views a record. Very similiar to what you see in forums.
Database side or Client side?
Thanks
|
|
|
matheus
Posts: 386
|
Posted: 09/14/2006, 6:51 AM |
|
Server/Database side.
Before Show Grid or Page, increment number of view.
_________________
Matheus Trevizan
Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br |
|
|
jjjjjjj
|
Posted: 09/14/2006, 7:48 AM |
|
I got this from sample code but can't seem to get it working:
Dim Request As HttpRequest = HttpContext.Current.Request
Dim NewDao As DataAccessObject = Settings.Connection1DataAccessObject
Dim Sql As String = "UPDATE TBL_POSTING SET NUM_VIEWS = NUM_VIEWS + 1"
NewDao.RunSql(Sql)
|
|
|
|