Help Please how to code check boxes :(
Hi,
New to this site really need some help currently doing my dissertation and stuck as i am using a asp.net website and using vb to query my sql database although i need to use check boxes but have no clue how to code them in vb could any one give me an example i want to use 4 check boxes to show the information of which ever is picked.
I would be really grateful as im running out of time thanks guys!
Re: Help Please how to code check boxes :(
Forgot to mention there Linq queries :) thank you
Re: Help Please how to code check boxes :(
Re: Help Please how to code check boxes :(
Do you want to display a result set in check box list?
Re: Help Please how to code check boxes :(
Sorry i didn't explain it too well its linq to sql but im querying in vb im doing a website that lets you pick different features such as fuel, bodytype etc in check boxes i have a 2 table database called make and model and i just want to be able to check the boxes in terms of what features i want on a car then to click a button and to show the results of what i want to be picked from the database in a gridview table.
in vs if i double click on the checkbox and it takes me to the vb page i dont know what code to right i.e checkbox = true etc.and what i put in the vb for the button in order to get the result showing.
hope that's better got till Friday to finish it :/ thanks guys :)
Re: Help Please how to code check boxes :(
its a asp.net website too if thats any help thanks again :)
Re: Help Please how to code check boxes :(
Hi..
Probably this would help you,
Code:
If IsPostBack = False Then
Dim db = New Linq2SQLDataContext
Dim chks = From CHECK In
db.CHECKs
Where CHECK.RevCtrID = 3
Select CHECK.CheckNumber
For Each chk In chks
CheckBoxList.Items.Add(chk)
Next
End If
First of all you need to know how to connect to SQL database with Linq. please google or visit youtube to know about Linq with SQL.
Thank you,
Re: Help Please how to code check boxes :(
You will get a better response by posting in the right section. I've asked the mods to move it to the ASP.NET section.
-tg
Re: Help Please how to code check boxes :(
Moved to the ASP.Net forum.