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


Top 5 Contributors of the Month
david stephan

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
hi,
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,
Boopathi

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

Hi Boopathi,
Could u explain with Example?
Refer this link:
http://www.asp.net/data-access/tutorials/using-existing-stored-procedures-for-the-typed-dataset-amp-rsquo-s-tableadapters-vb
http://www.4guysfromrolla.com/articles/092408-1.aspx
http://aspalliance.com/618_CodeSnip_Populate_a_DropDownList_with_a_Stored_Procedure
Note:
If Any links between those combobox, Create a parameter and retrieve the information based on Selected Items

Regards,
Lakshmi Narayanan.S

Regards, Lakshmi Naraayanan.S
http://dotnettechrocks.blogspot.in/
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

Regards,
Deco


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
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

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