CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Can Reply:  No Members Can Edit: No Online: Yes
Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.club_web_site_starter_kit Tags:
Item Type: NewsGroup Date Entered: 5/4/2006 9:23:28 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 11 Views: 18 Favorited: 0 Favorite
12 Items, 1 Pages 1 |< << Go >> >|
Attila
Asp.Net User
Adding news - layout corrupt ?5/4/2006 9:23:28 PM

0/0

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

aabruzzese
Asp.Net User
Re: Adding news - layout corrupt ?5/4/2006 9:58:01 PM

0/0

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.

 


AngeloA
Attila
Asp.Net User
Re: Adding news - layout corrupt ?5/8/2006 9:24:57 PM

0/0

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

aabruzzese
Asp.Net User
Re: Adding news - layout corrupt ?5/8/2006 9:41:37 PM

0/0

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.

 


AngeloA
Attila
Asp.Net User
Re: Adding news - layout corrupt ?5/8/2006 10:06:49 PM

0/0

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>

 

 

 

 

aabruzzese
Asp.Net User
Re: Adding news - layout corrupt ? --- contents of news_list.aspx5/8/2006 10:15:22 PM

0/0

<%@ 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>


AngeloA
aabruzzese
Asp.Net User
Re: Adding news - layout corrupt ? -- Contents of News_List.aspx.vb5/8/2006 10:16:37 PM

0/0

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


AngeloA
Attila
Asp.Net User
Re: Adding news - layout corrupt ? -- Contents of News_List.aspx.vb5/8/2006 11:06:59 PM

0/0

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

aabruzzese
Asp.Net User
Re: Adding news - layout corrupt ? -- Contents of News_List.aspx.vb5/8/2006 11:33:45 PM

0/0

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.

 


AngeloA
Attila
Asp.Net User
Re: Adding news - layout corrupt ? -- Contents of News_List.aspx.vb5/9/2006 8:34:48 AM

0/0

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

aabruzzese
Asp.Net User
Re: Adding news - layout corrupt ? -- Contents of News_List.aspx.vb5/9/2006 2:55:27 PM

0/0

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?

 


AngeloA
Attila
Asp.Net User
Re: Adding news - layout corrupt ? -- Contents of News_List.aspx.vb5/9/2006 3:36:54 PM

0/0

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

12 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Tabloid Tales: Global Debates Over Media Standards Authors: Colin Sparks, John Tulloch, Pages: 315, Published: 2000
Budapest and New York: Studies in Metropolitan Transformation, 1870-1930 Authors: Thomas Bender, Carl E. Schorske, Russell Sage Foundation, Pages: 400, Published: 1994
What News?: The Market, Politics and the Local Press Authors: Bob Franklin, David Murphy, Pages: 229, Published: 1990
Palace Politics: How the Ruling Party Brought Crisis to Mexico Authors: Jonathan Schlefer, Pages: 297, Published: 2008
Investigative Reporting Authors: David Anderson, Peter Benjaminson, Pages: 307, Published: 1976
Whose News?: The Media and Women's Issues Authors: Ammu Joseph, Kalpana Sharma, Pages: 406, Published: 2006

Web:
Think Progress » Gen. Sean Hannity And Fox News Lay Out Their War ... Sep 26, 2007 ... Sean Hannity And Fox News Lay Out Their War Plan For Attacking ‘Ticking Bomb’ ...... Corrupt EstablishmentIncompetent EstablishmentBraindead ...
MacNN | Cocktail 4.2 adds error lookup, corrupt file hunting Oct 21, 2008 ... font/layout options, default news layout: -headlines ... mainly the ability to search for corrupt preference files and delete them. ...
Corrupted Designs Layout by ~xplict134 on deviantART Corrupted Designs Layout by ~xplict134 :iconxplict134: · Categories Designs & Interfaces > Web Interfaces ... Community News. 96love it ...
page layout corrupt in frontend - Mambo - Forums Closed for posting page layout corrupt in frontend General Questions. ... i don't see the correct layout (background is white, long page, text unformatted), ...
Bad News From Mexico: US Plan To Give Corrupt Police Better Equipment US Plan To Give Corrupt Police Better Equipment ... If you want to use this layout, please contact Bad News from the Netherlands. View my complete profile ...
pushing layouts thru fragments.xml corrupted prefe: msg#00274 pushing layouts thru fragments.xml corrupted preferences mode controls: msg# ... layouts manually by logging into a template account, and adding tabs and ...
News Layout 0929.indd timately corrupt is the nature of. the political culture there.” — Jason Schwartz. NEWS BRIEF. to Clinical Medicine” had oppor- ...
Edward Andrews - Pictures, News, Video Clips, Layouts, Wallpapers ... Edward Andrews Actor Profile - Fan Club, Pictures & Posters, News, ... corrupt businessman or official; memorable as the glad-handing, charming but ...
LL News Lay-out studio, writing and recording news. briefs and public service announce- .... the corrupt practices of. Hazzard County Commissioner. Boss Hogg. ...
Letter: Met does not brand Muslims as corrupt | UK news | The Guardian Letter: Met does not brand Muslims as corrupt. This article appeared in the Guardian on ... Latest news on guardian.co.uk. Last updated one minute ago ...

Videos:
200+ Gold hourly on WoW world of Warcraft http://sketchy1.luke13.hop.clickbank.net/ This is the original best-selling guide for WoW that has been in publication for over 3 years with ...
People & Power - Property values - 19 Mar 08 - Pt. 1 People & Power investigate two social ills underlying Portuguese society - illegal immigration and corruption.




Search This Site:










directory structure from asp to asp.net 2.0

compilation error

network folder finding

why migration tool doesn't work in my laptop

session management and authentication when integrate asp and asp.net pages in one application

add ajax functionality to asp page by convert it into aspx page

rs.getrows() to asp.net

selecting embedded wmv files via a menu

need help with jscript to vb.net

com ok in asp, but in asp.net "access denied"

get user name that view webpage

transfer data from aspx to asp

"please wait" div used in asp classic never shows up in asp.net 2.0 environment

asp tp aspx

set keyword & asp, asp .net compatibility

asp function filter() .net equivalent

how to convert the first vbscript call

convert asp file to aspx. anyhelp.

convert asp to asp.net ?

passing data from asp.net to asp classic

must register microsoft.web.ui.webcontrols.dll on all computers?

how do i suppress a record?

classic asp to asp.net conversion

help with listboxes and rowsource

integrating asp.net into classic asp web

including an asp page in an aspx page

runs on asp ok, however the object wont die in .net

moving to asp.net after asp for many years..help!

call asp page from asp.net web site

connecting to old asp xml 'page'

  Privacy | Contact Us
All Times Are GMT