Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6188009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:09:20+00:00 2026-05-24T02:09:20+00:00

I am creating a Facebook Wall like structure and used repeater control for that

  • 0

I am creating a Facebook Wall like structure and used repeater control for that using C#-Visual Studio 2010 amd Sql Server 2005 as database.

I am unable to display multiline text in repeater control

Script

<asp:TextBox ID="TextBox1" runat="server" Width="100%" TextMode="MultiLine"></asp:TextBox>

<asp:Repeater ID="myrepeater" runat="server">
            <HeaderTemplate>
                <table width="100%" style="font: 8pt verdana">
                    <tr style="background-color:#3C78C3">
                        <th>SCRAPS</th>
                    </tr>

            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                       <%#DataBinder.Eval(Container,"DataItem.scraps") %>
                    </td>
               </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>

So, When I click on submit button, text stores in DataItem.scraps (which is column in my database table) and displays in repeater control.

But when I am inputting multiline Text in Textbox, it is displayed singleline in repeater control.

I want it to be displayed multiline repeater control.

So what is the problem exactly
1) Is it storing singleline text in database
2) or, repeater control problem

And, how to resolve it?

Please help me.

Thanks in advance,
Nikhil

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T02:09:21+00:00Added an answer on May 24, 2026 at 2:09 am

    The repeater control is pretty straight forward. There is no reason you can’t control your output very thoroughly, just put everything in your item template:

    <asp:Repeater ID="rptWall" runat="server">  
    <HeaderTemplate>
        <h1>The wall<h1>
    </HeaderTemplate>  
    <ItemTemplate>
        <hr>
        <asp:TextBox id="txtPost" runat="server" textmode="multiline" text='<%#DataBinder.Eval(Container.DataItem, "Posttext")%>'></asp:TextBox>
        <hr>
    </ItemTemplate>  
    <FooterTemplate>  
        <h3>put stuff here to add post</h3>
    </FooterTemplate>  
    </asp:Repeater>  
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm creating a wall that, should look and act like Facebook's wall. The problem
I am creating application in facebook using iframe. In that i want to redirect
I'm creating a Facebook-like social-network website. For my wall, I have many different kind
I am creating a Facebook application that will download all the photos in an
I'm Creating a facebook application using apache-tomcat. I use the Java Facebook API. It
I'm creating a Facebook-Like chat. It gets the latest messages Not Read from a
I am creating a Facebook fan-gate that when a user likes my page it
I am Creating A facebook that Retrieves 10 Random friends.But I need some code
I'm currently creating a facebook-like news feed, and I'm wondering if I'm better off
I am creating a site that I want to use Facebook login solely for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.