Wrox Programmer Forums
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 10th, 2005, 06:36 AM
Authorized User
 
Join Date: May 2005
Posts: 92
Thanks: 0
Thanked 0 Times in 0 Posts
Default datalist designing problem

Hello Friends,
i have a problem while designind the datalist.
wht i am doing is ...i am using a datalist in my program and trying to edit it with the following code..
but am getting runtime error..'

<asp:DataList runat="server"
    Id="MyDataList"
    GridLines="None"
    cellpadding="2"
    cellspacing="2"
    Headerstyle-BackColor="#000000"
    HeaderStyle-Forecolor="White"
    Headerstyle-Font-Name="Arial"
    Headerstyle-Font-Size="8"
    BackColor="#000000"
    Forecolor="White"
    Font-Name="Arial"
    Font-Size="10">
<HeaderTemplate>

    <b><i><%# sDesignation%> Season</i></b>
    <br>
</HeaderTemplate>
    <ItemTemplate>
        <b><%# Container.DataItem("Title")%></b><br>
        <b>Writer: </b><%# Container.DataItem("Writer")%><br>
        <b>Director: </b><%# Container.DataItem("Director")%><br>
        <b>Show Summary: </b><br>
        <%# Container.DataItem("Notes")%><br>
        <b>Cast :</b><br>
        <%# Container.DataItem("Actor")%><p>
        </ItemTemplate>
</ASP:DataList>

<asp:DataList runat="server"
    Id="dlSearch"
    GridLines="None"
    cellpadding="2"
    cellspacing="2"
    Headerstyle-BackColor="#000000"
    HeaderStyle-Forecolor="White"
    Headerstyle-Font-Name="Arial"
    Headerstyle-Font-Size="8"
    BackColor="#000000"
    Forecolor="White"
    Font-Name="Arial"
    Font-Size="10"
    Width="100%">
    <HeaderTemplate>

        <b><i>Search Results </i></b>
        <br>
    </HeaderTemplate>
    <ItemTemplate>
        <b>Season : </b><%# Container.DataItem("season")%><br>
        <b><%# Container.DataItem("Title")%></b><br>
        <b>Writer: </b><%# Container.DataItem("Writer")%><br>
        <b>Director: </b><%# Container.DataItem("Director")%><br>
        <b>Show Summary: </b><br>
        <%# Container.DataItem("Notes")%><br>
        <b>Cast :</b><br>
        <%# Container.DataItem("Actor")%><p>
    </ItemTemplate>
</ASP:DataList>
<b><i><asp:Label ID="label1" runat="server" /></i></b></div>
</Form>
</body>
</html>


cud u plz help me out.

Regards,
Muskaan.



 
Old May 10th, 2005, 02:30 PM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

First of all, with questions like these, please post the "runtime error" as well. It's a bit too much to ask us to play hide and seek and see if we can spot the error.

Secondly, I think you're better off posting this in a .NET forum as this is more related to .NET than it is to Dreamweaver.

Cheers,

Imar

---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
While typing this post, I was listening to: Tuff Gnarl by Sonic Youth (Track 6 from the album: Sister) What's This?





Similar Threads
Thread Thread Starter Forum Replies Last Post
crystal report 10 in asp.net2.0,,designing problem niranjana ASP.NET 2.0 Professional 0 November 20th, 2007 01:17 PM
problem in designing login page like orkut nirmalbarsainyan ASP.NET 1.x and 2.0 Application Design 1 April 19th, 2007 05:15 AM
datalist problem keyvanjan ASP.NET 1.0 and 1.1 Basics 6 July 13th, 2006 11:17 AM
Nested DataList Problem orcities C# 0 July 12th, 2004 01:40 PM
Datalist layout Problem ManoYaka ASP.NET 1.0 and 1.1 Basics 1 February 3rd, 2004 10:40 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.