locked
Adding news - layout corrupt ? RRS feed

  • Question

  • User305162745 posted

    Hi all

     

    i have a problem with the news on my site -  when i got more than 4-5 news entry the site goes out of shape  get´s a bit corrupt  but the new i add are still there but it´s ugly :)

     

    it look´s like the older news does not got to page 2  they are all on one page - does any one know how to solve this problem ?  i tryed to search the forum but did not find anything that could help me

     

    best regards

    Attila

    Thursday, May 4, 2006 5:23 PM

All replies

  • User1275632693 posted

    Hello Attila,

    Have a look at the Bugs Fixes thread, if I do remember I posted a fix for something along these lines.

    http://forums.asp.net/thread/1220394.aspx

    Let me know if that helps you get started.

     

    Thursday, May 4, 2006 5:58 PM
  • User305162745 posted

    hi aabruzzese

     

    thx for the reply :)

     

    i found this on the bug list

     

    and i try to use it  but i am still a green noob in this :)

     

    how do i edit the code behind the file ?  :)

     

    thx

    Attila

     

    This is the News_List.aspx Page: 

    <%@ Page Language="VB" MasterPageFile="~/Default.master" AutoEventWireup="false" CodeFile="News_List.aspx.vb" Inherits="News_List" Title="News Articles" %>
    <%@ Register TagPrefix="Club" Namespace="ClubSite" %>
    <%@ Register TagPrefix="Club" TagName="LoginBanner" Src="LoginBanner.ascx" %>
    <%@ Register TagPrefix="Club" TagName="ImageThumbnail" Src="ImageThumbnail.ascx" %>

    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
     <div id="body">
            <Club:LoginBanner ID="LoginBanner1" runat="server" />
            <!--
            Left column
            -->
            <div id="columnleft">
                <a name="content_start" id="content_start"></a>
                <div class="leftblock">
                    <h2>
                        News Articles</h2>
                    <p>
                        Keep current on news and events for Check Raise Inc.
                        Recaps of our exciting events and tournaments are regularly posted here and any major events/site upgrades will be reported here as well.    
                    </p>
                </div>
            </div>
            <!--
            Right column
            -->
             <div id="columnright">
                <div class="rightblock">
                    <asp:panel ID=panel1 runat=server cssclass="actionbuttons">
                        <Club:RolloverLink ID="RemoveBtn" runat="server" Text="Add new Article" NavigateURL="News_Edit.aspx?Action=New" />
                    </asp:panel>
                    <div class="dashedline">
                    </div>
                    <!-- begin news item -->
                    <asp:Repeater ID="NewsRepeater" runat="server" >
                        <ItemTemplate>
                            <div class="listitem">
                                <div class="thumbnail">
                                    <a href='<%# "News_View.aspx?Articleid=" &Cstr( Eval("ID"))%>'>
                                        <Club:ImageThumbnail ID="ImageThumbnail1" runat="server" PhotoID='<%# Eval("photo") %>'
                                            NoPhotoImg="images/news.jpg" />
                                    </a>
                                </div>
                                <asp:panel ID=panel2 runat=server Visible='<%#IsAdmin %>'>
                                    <Club:RolloverLink ID="EditBtn" runat="server" Text="Edit" NavigateURL='<%# "News_Edit.aspx?Action=Edit&ArticleID=" & Cstr( Eval("ID")) %>' />
                                    <Club:RolloverLink ID="RemoveBtn" runat="server" Text="Remove" NavigateURL='<%# "News_Edit.aspx?Action=Remove&ArticleID=" & Cstr( Eval("ID")) %>' />
                                </asp:panel>
                                <h3>
                                    <asp:Label ID="itemdateLabel" runat="server" Text='<%# Eval("itemdate","{0:d}") %>' />
                                    &nbsp;&nbsp;&nbsp;&nbsp; <a href='<%# "news_view.aspx?articleid=" &Cstr( Eval("ID"))%>'>
                                        <asp:Label ID="titleLabel" runat="server" Text='<%# Eval("title") %>' />
                                    </a>
                                </h3>
                                <p>
                                    <asp:Label ID="descriptionLabel" runat="server" Text='<%# truncate(CStr(Eval("description"))) %>' />
                                    <a href='<%# "news_view.aspx?articleid=" &Cstr( Eval("ID"))%>'>read more &raquo;</a></p>
                                <div class="clearlist">
                                </div>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                    <div class="dashedline"></div>
                    <div class="newscrumbs">
                        Page: <asp:PlaceHolder id="PageButtons" runat="server"/>
                    </div>
                </div>
            </div>
            <div class="clear2column"></div>
        </div>

    </asp:Content>

    Here is the VB code for the Code Behind File.

    Imports System
    Imports System.Configuration
    Imports System.Data
    Imports System.Data.Common
    Imports System.Data.SqlClient
    Imports System.Data.OleDb
    Imports System.Web.UI
    Imports System.Web.UI.WebControls
    Imports System.Web.UI.HtmlControls


    Partial Class News_List

        Inherits System.Web.UI.Page

        Dim DBConnection As SqlConnection
        Dim DBCommand As SqlCommand
        Dim DBReader As SqlDataReader
        Dim SQLString As String
        Dim PageSize As Integer = 4
        Public IsAdmin As Boolean

        Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

            IsAdmin = User.IsInRole("Administrators")
            panel1.Visible = IsAdmin

            If Not Page.IsPostBack Then
                Fill()
            End If

            '-- Load array NewsIdList() with item numbers
            Dim NewsIdList = New ArrayList()
            DBConnection = New SqlConnection(ConfigurationManager.ConnectionStrings("ClubSiteDB").ConnectionString)
            SQLString = "SELECT id, itemdate FROM Announcements " & _
                        "ORDER BY id DESC, itemdate DESC"
            DBConnection.Open()
            DBCommand = New SqlCommand(SQLString, DBConnection)
            DBReader = DBCommand.ExecuteReader()
            While DBReader.Read()
                NewsIdList.Add(DBReader("id"))
            End While
            DBReader.Close()
            DBConnection.Close()
            NewsIdList.TrimToSize()

            '-- Create Paging Buttons
            Dim StartIndex As Integer
            Dim EndIndex As Integer
            Dim StartKey As String
            Dim EndKey As String
            Dim StartDate As DateTime

            Dim i As Integer

            StartIndex = 0
            For i = 1 To Math.Ceiling(NewsIdList.Count / PageSize)

                '-- Determine starting and ending array indexes
                EndIndex = StartIndex + PageSize - 1
                If EndIndex > NewsIdList.Count - 1 Then
                    EndIndex = NewsIdList.Count - 1
                End If

                '-- Assign starting and ending item numbers
                StartKey = NewsIdList(StartIndex)
                EndKey = NewsIdList(EndIndex)

                '-- Create a button and assign to placeholder
                Dim PageButton As Button
                PageButton = New Button()
                PageButton.Text = i
                PageButton.ID = "P" & i
                PageButton.CommandName = StartKey & "|" & EndKey
                PageButton.Style("width") = "20px"
                PageButton.Style("background-color") = "#F0F0F0"
                AddHandler PageButton.Command, AddressOf DisplayRepeater
                PageButtons.Controls.Add(PageButton)

                StartIndex += PageSize

            Next

            If Not Page.IsPostBack Then
                Dim FirstButton As Button
                FirstButton = CType(PageButtons.FindControl("P1"), Button)
                FirstButton.Style("background-color") = "#990000"
                FirstButton.Style("color") = "#FFFFFF"
            End If


        End Sub

            Sub Fill()

            Dim DBConnection As New SqlConnection(ConfigurationManager.ConnectionStrings("ClubSiteDB").ConnectionString)
            SQLString = "SELECT Top " & PageSize & _
                        " id, itemdate, title, description, photo FROM Announcements " & _
                        "ORDER BY itemdate DESC, id DESC"
            DBConnection.Open()
            DBCommand = New SqlCommand(SQLString, DBConnection)
            DBReader = DBCommand.ExecuteReader()
            NewsRepeater.DataSource = DBReader
            NewsRepeater.DataBind()
            DBReader.Close()
            DBConnection.Close()

        End Sub

        Sub DisplayRepeater(ByVal Src As Object, ByVal Args As CommandEventArgs)

            Dim Keys() As String
            Keys = Split(Args.CommandName, "|")

            '-- Bind the Repeater

            DBConnection = New SqlConnection(ConfigurationManager.ConnectionStrings("ClubSiteDB").ConnectionString)
            DBConnection.Open()
            SQLString = "SELECT id, itemdate, title, description, photo FROM Announcements WHERE " & _
              "id >= '" & Keys(1) & "' AND " & _
              "id <= '" & Keys(0) & "' " & _
              "ORDER BY id DESC, itemdate DESC"
            DBCommand = New SqlCommand(SQLString, DBConnection)
            DBReader = DBCommand.ExecuteReader()
            NewsRepeater.DataSource = DBReader
            NewsRepeater.DataBind()
            DBReader.Close()
            DBConnection.Close()

            '-- Highlight clicked button
            Dim Item As Button
            Dim ThisButton As Button
            For Each Item In PageButtons.Controls
                ThisButton = CType(Item, Button)
                ThisButton.Style("background-color") = "#F0F0F0"
                ThisButton.Style("color") = "#000000"
            Next
            ThisButton = CType(PageButtons.FindControl(Src.id), Button)
            ThisButton.Style("background-color") = "#990000"
            ThisButton.Style("color") = "#FFFFFF"

        End Sub

    End Class

    Monday, May 8, 2006 5:24 PM
  • User1275632693 posted

    Hello Attila

    Actually the only thing you may need to change is the Database Connection name, mine is still ("ClubSiteDB").

    There are Two elements in that post:

    #1 The ASPX page

    All the Code for the News_List.aspx file is listed between "This is the News_List.aspx Page:" and "Here is the VB code for the Code Behind File."

    #2 The Code Behing file, everything beneath the "Here is the VB code for the Code Behind File" should be placed in a file called  News_List.aspx.vb

    Let me know if this gets you going in the right direction.

     

    Monday, May 8, 2006 5:41 PM
  • User305162745 posted

    hi again :)

     

    and thx for helping me.

     

    i cannot find this file "News_List.aspx.vb"

     

    I am not finding anything you talk about , :( 

    this is my news_list.aspx

     

    <%@ Page Language="VB" MasterPageFile="~/Default.master" Title="News Articles" %>

    <%@ Register TagPrefix="Club" Namespace="ClubSite" %>

    <%@ Register TagPrefix="Club" TagName="LoginBanner" Src="LoginBanner.ascx" %>

    <%@ Register TagPrefix="Club" TagName="ImageThumbnail" Src="ImageThumbnail.ascx" %>

     

    <script runat="server">

    Protected Sub SqlDataSource1_Selected(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceStatusEventArgs)

    Dim pages As Integer

    pages = CInt(e.Command.Parameters("@pageCount").Value)

    pn1.Count = pages

    Pn2.Count = pages

    End Sub

    Protected Sub pn1_SelectedPageChanged(ByVal sender As Object, ByVal e As System.EventArgs)

    Pn2.SelectedPage = pn1.SelectedPage

    End Sub

    Protected Sub Pn2_SelectedPageChanged(ByVal sender As Object, ByVal e As System.EventArgs)

    pn1.SelectedPage = Pn2.SelectedPage

    End Sub

    Private IsAdmin As Boolean

    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)

    IsAdmin = User.IsInRole("Administrators")

    panel1.visible = IsAdmin

    End Sub

    </script>

    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <div id="body">

    <Club:LoginBanner ID="LoginBanner1" runat="server" />

    <!--

    Left column

    -->

    <div id="columnleft" style="width: 210px; height: 81px">

    <div class="leftblock">

    <h2>

    Fr‚ttir og fr¢ðleikur</h2>

    </div>

    </div>

    <!--

    Right column

    -->

    <div id="columnright">

    <div class="rightblock">

    <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ClubSiteDB %>"

    SelectCommand="PagedAnnouncementList" SelectCommandType="StoredProcedure" OnSelected="SqlDataSource1_Selected">

    <SelectParameters>

    <asp:ControlParameter Name="pageNum" ControlID="pn1" PropertyName="SelectedPage" />

    <asp:Parameter DefaultValue="10" Name="pageSize" Type="Int32" />

    <asp:Parameter Name="pageCount" Direction="ReturnValue" Type="Int32" />

    </SelectParameters>

    </asp:SqlDataSource>

    <asp:panel ID=panel1 runat=server cssclass="actionbuttons">

    <Club:RolloverLink ID="RemoveBtn" runat="server" Text="B‘ta við nýrri fr‚tt" NavigateURL="News_Edit.aspx?Action=New" />

    </asp:panel>

    <div class="dashedline">

    </div>

    <div class="newscrumbs">

    S¡ða:

    <Club:PageNumberer ID="pn1" runat="server" CssClass="PageNumbers" DisplayedPages="7"

    OnSelectedPageChanged="pn1_SelectedPageChanged" />

    </div>

    <div class="dashedline">

    </div>

    <!-- begin news item -->

    <asp:Repeater ID="DataList1" runat="server" DataSourceID="SqlDataSource1">

    <ItemTemplate>

    <div class="listitem">

    <div class="thumbnail">

    <a href='<%# "News_View.aspx?Articleid=" &Cstr( Eval("ID"))%>'>

    <Club:ImageThumbnail ID="ImageThumbnail1" runat="server" PhotoID='<%# Eval("photo") %>'

    NoPhotoImg="images/news.jpg" />

    </a>

    </div>

    <asp:panel ID=panel2 runat=server Visible='<%#IsAdmin %>'>

    <Club:RolloverLink ID="EditBtn" runat="server" Text="Edit" NavigateURL='<%# "News_Edit.aspx?Action=Edit&ArticleID=" & Cstr( Eval("ID")) %>' />

    <Club:RolloverLink ID="RemoveBtn" runat="server" Text="Remove" NavigateURL='<%# "News_Edit.aspx?Action=Remove&ArticleID=" & Cstr( Eval("ID")) %>' />

    </asp:panel>

    <h3>

    <asp:Label ID="itemdateLabel" runat="server" Text='<%# Eval("itemdate","{0:d}") %>' />

    &nbsp;&nbsp;&nbsp;&nbsp; <a href='<%# "news_view.aspx?articleid=" &Cstr( Eval("ID"))%>'>

    <asp:Label ID="titleLabel" runat="server" Text='<%# Eval("title") %>' />

    </a>

    </h3>

    <p>

    <asp:Label ID="descriptionLabel" runat="server" Text='<%# truncate(CStr(Eval("description"))) %>' />

    <a href='<%# "news_view.aspx?articleid=" &Cstr( Eval("ID"))%>'>Meira &raquo;</a></p>

    <div class="clearlist">

    </div>

    </div>

    </ItemTemplate>

    </asp:Repeater>

    <div class="dashedline">

    </div>

    <div class="newscrumbs">

    S¡ða:

    <Club:PageNumberer ID="PageNumberer1" runat="server" CssClass="PageNumbers" DisplayedPages="7"

    OnSelectedPageChanged="pn1_SelectedPageChanged" />

    <Club:PageNumberer ID="Pn2" runat="server" DisplayedPages="7" CssClass="PageNumbers"

    OnSelectedPageChanged="Pn2_SelectedPageChanged" />

    </div>

    </div>

    </div>

    <div class="clear2column"></div>

    </div>

    </asp:Content>

     

     

     

     

    Monday, May 8, 2006 6:06 PM
  • User1275632693 posted

    <%@ Page Language="VB" MasterPageFile="~/Default.master" AutoEventWireup="false" CodeFile="News_List.aspx.vb" Inherits="News_List" Title="News Articles" %>
    <%@ Register TagPrefix="Club" Namespace="ClubSite" %>
    <%@ Register TagPrefix="Club" TagName="LoginBanner" Src="LoginBanner.ascx" %>
    <%@ Register TagPrefix="Club" TagName="ImageThumbnail" Src="ImageThumbnail.ascx" %>

    <asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
     <div id="body">
            <Club:LoginBanner ID="LoginBanner1" runat="server" />
            <!--
            Left column
            -->
            <div id="columnleft">
                <a name="content_start" id="content_start"></a>
                <div class="leftblock">
                    <h2>
                        News Articles</h2>
                    <p>
                        Keep current on news and events for Check Raise Inc.
                        Recaps of our exciting events and tournaments are regularly posted here and any major events/site upgrades will be reported here as well.    
                    </p>
                </div>
            </div>
            <!--
            Right column
            -->
             <div id="columnright">
                <div class="rightblock">
                    <asp:panel ID=panel1 runat=server cssclass="actionbuttons">
                        <Club:RolloverLink ID="RemoveBtn" runat="server" Text="Add new Article" NavigateURL="News_Edit.aspx?Action=New" />
                    </asp:panel>
                    <div class="dashedline">
                    </div>
                    <!-- begin news item -->
                    <asp:Repeater ID="NewsRepeater" runat="server" >
                        <ItemTemplate>
                            <div class="listitem">
                                <div class="thumbnail">
                                    <a href='<%# "News_View.aspx?Articleid=" &Cstr( Eval("ID"))%>'>
                                        <Club:ImageThumbnail ID="ImageThumbnail1" runat="server" PhotoID='<%# Eval("photo") %>'
                                            NoPhotoImg="images/news.jpg" />
                                    </a>
                                </div>
                                <asp:panel ID=panel2 runat=server Visible='<%#IsAdmin %>'>
                                    <Club:RolloverLink ID="EditBtn" runat="server" Text="Edit" NavigateURL='<%# "News_Edit.aspx?Action=Edit&ArticleID=" & Cstr( Eval("ID")) %>' />
                                    <Club:RolloverLink ID="RemoveBtn" runat="server" Text="Remove" NavigateURL='<%# "News_Edit.aspx?Action=Remove&ArticleID=" & Cstr( Eval("ID")) %>' />
                                </asp:panel>
                                <h3>
                                    <asp:Label ID="itemdateLabel" runat="server" Text='<%# Eval("itemdate","{0:d}") %>' />
                                    &nbsp;&nbsp;&nbsp;&nbsp; <a href='<%# "news_view.aspx?articleid=" &Cstr( Eval("ID"))%>'>
                                        <asp:Label ID="titleLabel" runat="server" Text='<%# Eval("title") %>' />
                                    </a>
                                </h3>
                                <p>
                                    <asp:Label ID="descriptionLabel" runat="server" Text='<%# truncate(CStr(Eval("description"))) %>' />
                                    <a href='<%# "news_view.aspx?articleid=" &Cstr( Eval("ID"))%>'>read more &raquo;</a></p>
                                <div class="clearlist">
                                </div>
                            </div>
                        </ItemTemplate>
                    </asp:Repeater>
                    <div class="dashedline"></div>
                    <div class="newscrumbs">
                        Page: <asp:PlaceHolder id="PageButtons" runat="server"/>
                    </div>
                </div>
            </div>
            <div class="clear2column"></div>
        </div>

    </asp:Content>

    Monday, May 8, 2006 6:15 PM
  • User1275632693 posted

    Imports System
    Imports System.Configuration
    Imports System.Data
    Imports System.Data.Common
    Imports System.Data.SqlClient
    Imports System.Data.OleDb
    Imports System.Web.UI
    Imports System.Web.UI.WebControls
    Imports System.Web.UI.HtmlControls


    Partial Class News_List

        Inherits System.Web.UI.Page

        Dim DBConnection As SqlConnection
        Dim DBCommand As SqlCommand
        Dim DBReader As SqlDataReader
        Dim SQLString As String
        Dim PageSize As Integer = 4
        Public IsAdmin As Boolean

        Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load

            IsAdmin = User.IsInRole("Administrators")
            panel1.Visible = IsAdmin

            If Not Page.IsPostBack Then
                Fill()
            End If

            '-- Load array NewsIdList() with item numbers
            Dim NewsIdList = New ArrayList()
            DBConnection = New SqlConnection(ConfigurationManager.ConnectionStrings("ClubSiteDB").ConnectionString)
            SQLString = "SELECT id, itemdate FROM Announcements " & _
                        "ORDER BY id DESC, itemdate DESC"
            DBConnection.Open()
            DBCommand = New SqlCommand(SQLString, DBConnection)
            DBReader = DBCommand.ExecuteReader()
            While DBReader.Read()
                NewsIdList.Add(DBReader("id"))
            End While
            DBReader.Close()
            DBConnection.Close()
            NewsIdList.TrimToSize()

            '-- Create Paging Buttons
            Dim StartIndex As Integer
            Dim EndIndex As Integer
            Dim StartKey As String
            Dim EndKey As String
            Dim StartDate As DateTime

            Dim i As Integer

            StartIndex = 0
            For i = 1 To Math.Ceiling(NewsIdList.Count / PageSize)

                '-- Determine starting and ending array indexes
                EndIndex = StartIndex + PageSize - 1
                If EndIndex > NewsIdList.Count - 1 Then
                    EndIndex = NewsIdList.Count - 1
                End If

                '-- Assign starting and ending item numbers
                StartKey = NewsIdList(StartIndex)
                EndKey = NewsIdList(EndIndex)

                '-- Create a button and assign to placeholder
                Dim PageButton As Button
                PageButton = New Button()
                PageButton.Text = i
                PageButton.ID = "P" & i
                PageButton.CommandName = StartKey & "|" & EndKey
                PageButton.Style("width") = "20px"
                PageButton.Style("background-color") = "#F0F0F0"
                AddHandler PageButton.Command, AddressOf DisplayRepeater
                PageButtons.Controls.Add(PageButton)

                StartIndex += PageSize

            Next

            If Not Page.IsPostBack Then
                Dim FirstButton As Button
                FirstButton = CType(PageButtons.FindControl("P1"), Button)
                FirstButton.Style("background-color") = "#990000"
                FirstButton.Style("color") = "#FFFFFF"
            End If


        End Sub

            Sub Fill()

            Dim DBConnection As New SqlConnection(ConfigurationManager.ConnectionStrings("ClubSiteDB").ConnectionString)
            SQLString = "SELECT Top " & PageSize & _
                        " id, itemdate, title, description, photo FROM Announcements " & _
                        "ORDER BY itemdate DESC, id DESC"
            DBConnection.Open()
            DBCommand = New SqlCommand(SQLString, DBConnection)
            DBReader = DBCommand.ExecuteReader()
            NewsRepeater.DataSource = DBReader
            NewsRepeater.DataBind()
            DBReader.Close()
            DBConnection.Close()

        End Sub

        Sub DisplayRepeater(ByVal Src As Object, ByVal Args As CommandEventArgs)

            Dim Keys() As String
            Keys = Split(Args.CommandName, "|")

            '-- Bind the Repeater

            DBConnection = New SqlConnection(ConfigurationManager.ConnectionStrings("ClubSiteDB").ConnectionString)
            DBConnection.Open()
            SQLString = "SELECT id, itemdate, title, description, photo FROM Announcements WHERE " & _
              "id >= '" & Keys(1) & "' AND " & _
              "id <= '" & Keys(0) & "' " & _
              "ORDER BY id DESC, itemdate DESC"
            DBCommand = New SqlCommand(SQLString, DBConnection)
            DBReader = DBCommand.ExecuteReader()
            NewsRepeater.DataSource = DBReader
            NewsRepeater.DataBind()
            DBReader.Close()
            DBConnection.Close()

            '-- Highlight clicked button
            Dim Item As Button
            Dim ThisButton As Button
            For Each Item In PageButtons.Controls
                ThisButton = CType(Item, Button)
                ThisButton.Style("background-color") = "#F0F0F0"
                ThisButton.Style("color") = "#000000"
            Next
            ThisButton = CType(PageButtons.FindControl(Src.id), Button)
            ThisButton.Style("background-color") = "#990000"
            ThisButton.Style("color") = "#FFFFFF"

        End Sub

    End Class

    Monday, May 8, 2006 6:16 PM
  • User305162745 posted

    Hi Angelo :)

     

    I changed the news_list.aspx file to what you showd me and created a news_list.aspx.vb file with

    the code you gave me and put it in app_code on the ftp server

    but then the site crash and nothing happens until i deleted the file from the server

     

    like i said i am a noob in this and this issue is not goin well for me ,

    you can see here what my problem is   http://www.throttur.net/ 

    thx for all the help

    Monday, May 8, 2006 7:06 PM
  • User1275632693 posted

    Attila,

    The .vb file goes in the same directory as the .aspx file. 

    Codebehind files reside in the same file directory, so wherever you place news_list.aspx  is the same as where you place news_list.aspx.vb.

    Make that change and try again.

     

    Monday, May 8, 2006 7:33 PM
  • User305162745 posted

    hi Angelo

     

    ok  :) now this works i got the pages working ,but the layout on the front pages is still corrupt

    some news are still out of the frame  and when i go to the news_list.aspx i get the pages "1" and "2" but og page "1" some news are also there out of the frame

     

    Thanks for all the help Angelo, you are great ;)

     

    best regards

    Attila

    Tuesday, May 9, 2006 4:34 AM
  • User1275632693 posted

    Attila,

    When I viewed your site the pages looked clean, nothing was out of alignment.

    Which browser are you using and what resolution you have your screen set at?

     

    Tuesday, May 9, 2006 10:55 AM
  • User305162745 posted

    Hi Angelo

     

    when you look at the first 2 news they are in the box as they should be (on the main page)

    the next one is not in the box and the event box goes way off

     

    i use both IE and Firefox  res 1280x1024  and 1024x768

    so i think it´s not the browser ?

     

    best regards

    Attila

    Tuesday, May 9, 2006 11:36 AM