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  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

Jango Studios - Skins, Modules and Hosting for DotNetNuke
eUKhost.com is commited to offer exceptional UK Windows Web Hosting solutions with quality 24x7 technical support.Our plans support ASP.Net, ASP, ASP.NET Ajax extensions, XML, MSSQL, MySQL, PHP,DNN, multiple domains and Shared SSL as standard.
SmarterTools
The Official Microsoft ASP.NET Website
Portal Webhosting - Hosting For Developers
Red-Gate Software
 


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.

 


MaximumASP
MaximumASP provides a wide array of web hosting plans to fit any hosting need. We also provide software and services needed to keep it running optimally.
MaximumASP.com
Mad Development: dotnetnuke design and development
We are an expert Dotnetnuke shop specializing in developing solutions that merge the requirements of design and branding, content management, ecommerce, search engine optimization and business logic.
www.MadDevelopment.com
telerik
telerik r.a.d.controls suite is the most innovative and comprehensive toolset for ASP.NET development, tailored for seamless integration with the DotNetNuke project. This integrated collection of controls allows professionals to build web-solutions with the UI richness and responsiveness of desktop applications.
dnn.telerik.com

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