Advertisement

06.02.2008 at 11:38AM PDT, ID: 23450842
[x]
Attachment Details

ASP.NET vb variable

Asked by lrbrister in Visual Studio, .Net Editors & IDEs

Trying to figure out why this is bombing in the btnClick event.
sub name()

blah...blah...blah...
 Dim cbb As String = If(chkBeach.Checked = True, "1", "")
        Dim cbg As String = If(chkGolf.Checked = True, "2", "")
        Dim cbh As String = If(chkHistoric.Checked = True, "3", "")
        Dim cbm As String = If(chkMountains.Checked = True, "4", "")
        Dim cbs As String = If(chkSkiing.Checked = True, "5", "")
        Dim strExperience As String = cbb & "," & cbg & "," & cbh & "," & cbm & "," & cbs

blah...blah...blah...Start Free Trial
[+][-]06.02.2008 at 12:54PM PDT, ID: 21695088

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.02.2008 at 02:16PM PDT, ID: 21695747

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Studio, .Net Editors & IDEs
Sign Up Now!
Solution Provided By: MakarandSKolhe
Participating Experts: 2
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906