|
-
Apr 18th, 2012, 04:10 AM
#1
Thread Starter
New Member
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!
-
Apr 18th, 2012, 04:17 AM
#2
Thread Starter
New Member
Re: Help Please how to code check boxes :(
Forgot to mention there Linq queries thank you
-
Apr 18th, 2012, 05:13 AM
#3
Re: Help Please how to code check boxes :(
-
Apr 18th, 2012, 06:44 AM
#4
Member
Re: Help Please how to code check boxes :(
Do you want to display a result set in check box list?
-
Apr 18th, 2012, 10:31 AM
#5
Thread Starter
New Member
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
-
Apr 18th, 2012, 10:32 AM
#6
Thread Starter
New Member
Re: Help Please how to code check boxes :(
its a asp.net website too if thats any help thanks again
-
Apr 22nd, 2012, 04:31 AM
#7
Member
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,
-
Apr 22nd, 2012, 07:02 AM
#8
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
-
Apr 22nd, 2012, 08:07 AM
#9
Re: Help Please how to code check boxes :(
Moved to the ASP.Net forum.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|