.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Easy Web
Imran Ghani

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

want total possible combination of four combobox

Posted By: boopathi     Posted Date: October 07, 2011    Points:5   Category :ASP.Net
i have four combobox i want to get result if any combination of selection i mean either one combo or two or three or four and one and two or what ever combination or single combo i want to get result. i want the total possible combination of this four combo,can any one help me,
i want to get result of this using stored procedure..........

thanks and regards,

Author: Narayanan             
Posted Date: October 10, 2011     Points: 20   

Hi Boopathi,
Could u explain with Example?
Refer this link:
If Any links between those combobox, Create a parameter and retrieve the information based on Selected Items

Lakshmi Narayanan.S

Regards, Lakshmi Naraayanan.S
Author: Deco             
Posted Date: October 12, 2011     Points: 20   

Boobathi, It's simple,
There i no need of considering for all possible combination
Instead, You can Have a Temp variable and can get the Checked Check box value and append to the Temp variable

Assume that i have four checkbox with the name "Chk1, Chk2, Chk3 and Chk4

now you can get the checked checkbox in a Temp variable using the below code

Code : c#

string CheckBoxValues = string.Empty;
if (Chk1.Checked)
CheckBoxValues += Chk1.Value;
if (Chk2.Checked)
CheckBoxValues += Chk2.Value;
if (Chk3.Checked)
CheckBoxValues += Chk3.Value;
if (Chk4.Checked)
CheckBoxValues += Chk4.Value;

//Pass the CheckBoxValues to the Procedure


Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend