CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> .NET

 Incrementing the # of Views on a record

Print topic Send  topic

Author Message
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
View profile  Send private message
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
View profile  Send private message
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)

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.