Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
WebHostForAsp.net
 


  Sponsors  

Meet Our Sponsors

FCKeditor Project
Salaro -- Skins and more
OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  Big Problem (backcolor programmed database list)
Previous Previous
 
Next Next
New Post 2/21/2008 10:38 AM
User is offline Fred
1 posts
10th Ranked


Big Problem (backcolor programmed database list) 

Hello people, this is my first post and i've got a big problem, let me explain:

I've made an extra Class to my project called Deliberatielijsten.vb in there i have got this code :

[SIZE="2"][CODE] 
    Public Function krijgtabel6()
        Dim tabel As String = ""
        Using conn As New SqlConnection(ConfigurationManager.ConnectionStrings("Grotedeliberatielijstconnectionstring16").ConnectionString)
            Dim cmd As New SqlCommand("SELECT * FROM GroteLijst WHERE NIVEAU=6", conn)
            conn.Open()
            Dim dr As SqlDataReader
            dr = cmd.ExecuteReader()
            tabel = "<tr><td><b>ID</b></td><td><b>Lokaal</b></td><td><b>Klas</b></td><td><b>Geplande Start</b></td><td><b>Actuele Start</b></td><td><b>Actuele Einde</b></td><td><b>Voorzitter</b></td></tr>"
            Dim sr As New System.IO.StreamReader("C:\Documents and Settings\Frederik\Bureaublad\GIP WERKMAP\GIP WERKMAP\GIP DEFINITIVA 1\GIPVoorstellingKerstmis\layout files\derdegraadberoeps.tpl")
            Dim szContent As String = sr.ReadToEnd
            Dim szTemp As String
            sr.Close()
            Do While dr.Read
                szTemp = szContent
                szTemp = szTemp.Replace("[{id}]", dr.Item("id"))
                szTemp = szTemp.Replace("[{lokaal}]", dr.Item("lokaal"))
                szTemp = szTemp.Replace("[{klas}]", dr.Item("klas"))
                szTemp = szTemp.Replace("[{GeplandeStart}]", dr.Item("GeplandeStart"))
                szTemp = szTemp.Replace("[{ActueleStart}]", dr.Item("ActueleStart"))
                szTemp = szTemp.Replace("[{ActueleEinde}]", dr.Item("ActueleEinde"))
                szTemp = szTemp.Replace("[{voorzitter}]", dr.Item("Voorzitter"))
                tabel &= szTemp
            Loop
            conn.Close()
        End Using
        Return tabel
    End Function[/CODE][/SIZE]

This is the 'derdegraadberoeps.tpl' file where i get my code out :

[CODE][SIZE="2"]<tr>
 <td><input type="text" value="[{id}]" size="5" ></td>
 <td><input type="text" value="[{lokaal}]" size="5" /></td>
 <td><input type="text" value="[{klas}]" size="5"/></td>
 <td><input type="text" value="[{GeplandeStart}]"size="15" /></td>
 <td><input type="text" value="[{ActueleStart}]"size="15" /></td>
 <td><input type="text" value="[{ActueleEinde}]"size="15" /></td>
 <td><input type="text" value="[{voorzitter}]"size="15" /></td>
 <td><a href="./Invoeren5.aspx?id=[{id}]"><img src="../application_edit.png" border="0"></td>
 <td><a href="./Bevestiging5.aspx?id=[{id}]"><img src="../application_delete.png" border="0"></td>
</tr>[/SIZE][/CODE]

as you can see its based with html.

This is a code where i can print my database instead of designing textboxes to the design mode.

[SIZE="2"][CODE]    <%
        Dim db As New Deliberatielijsten
        Response.Write(db.krijgtabel6)
     %>[/CODE][/SIZE]

I have got 1 button (START Button) on that page, where i've got a little program behind with an inputbox so i can choose which ID from the database table i want so i can highlight the row with the chosen ID (backcolor mode = red)

[IMG]http://www.freewebs.com/weirdparaliser/overzicht%20begeleider.jpg[/IMG]

Do you understand?

its very hard to get , but i really need your help

Grtz

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  Big Problem (backcolor programmed database list)
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


EMAS Pro
Strategic Enrollment Management Software for Higher Education Recruitment, Retention and Financial Aid
www.emaspro.com
Subzero Solutions
Dutch / English DotNetNuke consultancy services. Custom module development in any version. Complete application integration. Small business portal hosting. Your ideas our innovation - Your success our motivation. K.v.k Amsterdam: 34236342
www.subzero-solutions.net
Hosting for DotNetNuke
SiteGround.com is the best place to host your DotNetNuke website! Expert DotNetNuke support, reliable servers, low price!
www.SiteGround.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP