1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

TabContainers and Linq Please Help

Discussion in 'Web Design & Development' started by vipernet, Dec 2, 2010.

Thread Status:
Not open for further replies.
  1. vipernet

    vipernet Thread Starter

    Aug 22, 2007
    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.


    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())
        End Sub
    End Class
As Seen On
As Seen On...

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.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/966059