Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 19th, 2007, 04:34 AM
Registered User
 
Join Date: Nov 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Getting Value from a Database to Variable

Hi
This may seem like a stupid question but i was wondering how i went about getting a value from a record in a database and setting it as a variable integer.

i am able to send a variable to the database using
cmd.parameters.addwithvalue("@wins", (Score)) which updates the selected row but i am unsure how to get a selected value and set it to a variable.






Similar Threads
Thread Thread Starter Forum Replies Last Post
string replace of variable in database ddnk77872 PHP Databases 1 December 17th, 2008 10:01 PM
Inserting a new variable into a database racey Classic ASP Databases 5 August 23rd, 2006 12:21 PM
setting each value from database as a variable Ashleek007 Beginning PHP 21 April 18th, 2005 03:50 PM
Refreshing Contents Of A Variable from Database roh_gupta Classic ASP Basics 1 February 22nd, 2005 01:08 PM
Sending Date variable into Oracle Database Judex Java Databases 1 September 20th, 2003 05:54 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.