Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 2005 > C# 2005
|
C# 2005 For discussion of Visual C# 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# 2005 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 June 22nd, 2007, 02:17 PM
Authorized User
 
Join Date: Jun 2007
Posts: 14
Thanks: 2
Thanked 0 Times in 0 Posts
Default validation help urgent please


please anybody help me out in this

how to validate a combobox , so as to check whether user have made the selection before further actions such as save.



 
Old June 24th, 2007, 01:44 PM
Authorized User
 
Join Date: Aug 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anubisascends
Default

Code:
if ([comboboxname].SelectedIndex > -1)
{
    [do stuff];
}
Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.
Albert Einstein
US (German-born) physicist (1879 - 1955)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Standalone validation + web form validation morbo Struts 0 August 19th, 2008 04:02 AM
Urgent Validation!! mike_remember ASP.NET 1.0 and 1.1 Professional 5 September 7th, 2007 10:25 AM
please help me in validation urgent akssmv C# 2005 1 July 9th, 2007 05:49 AM
textbox validation please help urgent akssmv C# 2005 5 June 11th, 2007 11:19 AM
URGENT-->Problem in validation aekta ASP.NET 2.0 Professional 3 March 9th, 2007 07:29 AM





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