Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Search Search
Search for:
Tech Support Guy > > >

TabContainers and Linq Please Help


(!)

vipernet's Avatar
vipernet vipernet is offline
Member with 154 posts.
THREAD STARTER
 
Join Date: Aug 2007
02-Dec-2010, 01:14 PM #1
TabContainers and Linq Please Help
First off I'm very new to .net and Ajax. What I'm trying to do is Create Dynamic container Tabs for each SQL record ID giving the Tab header text the name value of the SQL record.



This is what I got so far but I'm lost. Any help would be great.

Aspx



Code:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load


        Dim dc As New DataClassesDataContext()
        Dim q = _
        From s In dc.Schools _
        Select s.SchoolID, s.Name, s.Address, s.City, s.Province, s.Postal, s.Phone, s.Fax, s.EarlyFIElem, s.EarlyFIMiddle, s.LateFIMiddle, s.StartGrade, s.EndGrade, s.StartTime, s.K2EndTime, s.EndTime _
        Where (SchoolID = 2014)



        For Each s In q

            ' Next
            Dim tc As New TabPanel()
            'For Each s In q
            tc.HeaderText = s.ToString.Trim()
            tc.Controls.Add(New TextBox())
            TabContainer1.Tabs.Add(tc)
        Next

    End Sub

End Class
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Title Thread Starter Forum Replies Last Post
Please help. Please. SCHNURR Windows XP 0 01-Aug-2009 03:38 AM
Solved: Microphone doesnt work in CS and CS:S Please help thrash_til_death Games 1 09-Nov-2008 09:53 PM
Solved: Microphone doesnt work in CS and CS:S Please help thrash_til_death Hardware 1 09-Nov-2008 09:51 PM
fatal error during installation please help! mjbhelp Windows Vista 0 18-Sep-2008 12:52 AM
Please Help me! Trojan-ace-x and virtumonde viruses cjbellott Virus & Other Malware Removal 0 10-Jun-2008 04:48 PM

WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑