Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Basics ASP.NET discussion for users new to coding in ASP.NET 1.0 or 1.1. NOT for the older "classic" ASP 3 or the newer ASP.NET 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 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 3rd, 2006, 03:40 PM
Authorized User
 
Join Date: Dec 2005
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to rdove84
Default RadioButtonList & SQL question

I have a RadioButtonList that has four values 1, 2, 3, and 4. Which are saved in a Banking column in an SQL database. When the user selects one of the four values I need the code behind to check the Banking column and determine if that particular value has been selected more that 10 ten times (by other users stored in the database) and if so display a message to the user asking them to make another choice.

What would be the best way to accomplish this?

rdove84

 
Old November 4th, 2006, 01:15 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 550
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi

The best approach would be to determine this count in the stored procedure, if count is more that 10 return a value, else you can simply update it in the database.

Regards
Mike

Fortune favours the brave, so don't regret on missed oppurtunities.
 
Old November 8th, 2006, 01:55 PM
Authorized User
 
Join Date: Dec 2005
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to rdove84
Default

Another question, if I make the change in the stored procedure it won't actually make the check until the user hits the submit button, yes? Or do I need to write a new procedure that could be called each time a user makes a selection?

rdove84






Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Report & VB6 & SQL Server wlho VB How-To 2 June 5th, 2013 01:58 AM
Linux & KDE & C++ & QT & MYSQL & Kdevelop Munnnki Linux 0 January 2nd, 2005 05:41 PM
A question for Englere & buzzterrier swandown BOOK: ASP.NET Website Programming Problem-Design-Solution 3 October 29th, 2004 10:00 AM
CursorTypeEnum & LockTypeEnum Question want2learn Classic ASP Databases 4 May 19th, 2004 04:43 AM
sql & join tables & find a field in multiple table trangd Beginning PHP 2 January 29th, 2004 07:18 PM





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