Click here to Skip to main content
15,895,011 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using asp.net and sql

My problem is
i have 3 columns in a table.

i should populate the data in such a manner

Date: 2014-09-22
Description1: xyz(this should be bold)
Description2 pqrs (normal paragraph)

after a horizontal tag
another data should appear
-------------------------------------------------------

Date: 2013-09-22
Description1: abcd(this should be bold)
Description2 qwe (normal paragraph)

i am able to populate the data in a gridview but i dont know how to format the data in this manner. i am new to asp.net

suggest me the some tools or links or please help in writing code
Posted

have you tried to look for the solution by yourself?

there are a lot of posts about that question

format datetime gridview
 
Share this answer
 
Comments
jinesh sam 30-Sep-14 5:08am    
Since i don't know which tool to use i asked for the help. if any one suggest some tools or tips i will google about more
ASP.NET
<asp:repeater id="Repeater1" runat="server" ondatabinding="Repeater1_DataBinding" xmlns:asp="#unknown">
        <itemtemplate>
            <p>Date: <asp:literal runat="server" id="litDate" text="<%# DataBinder.Eval(Container.DataItem, "EDate") %>"></asp:literal></p>
            <p>Description 1: <asp:literal runat="server" id="litDesc1" text="<%# DataBinder.Eval(Container.DataItem, "Description") %>"></asp:literal></p>
            <p>Description 2: <asp:literal runat="server" id="litDesc2" text="<%# DataBinder.Eval(Container.DataItem, "Description2") %>"></asp:literal></p>
        </itemtemplate>
        <separatortemplate>
            <hr />
        </separatortemplate>
    </asp:repeater>
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900