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 9246983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T09:37:15+00:00 2026-06-18T09:37:15+00:00

I built recently a table using c# and asp.net and I was facing design

  • 0

I built recently a table using c# and asp.net and I was facing design issues.

string name = Request.QueryString["name"];
    AnimalsDB animal = new AnimalsDB();
    DataSet ds = animal.GetFactByName(name);
        TableRow rw = new TableRow();
        TableCell tc1 = new TableCell();
        Label l1 = new Label();
        l1.Text = ds.Tables[0].Rows[0]["AName"].ToString();
        Image image = new Image();
        image.ImageUrl = ds.Tables[0].Rows[0]["Pic"].ToString();
        image.Width = 250;
        image.Height = 250;

        Label l2 = new Label();
        l2.Text = ds.Tables[0].Rows[0]["Fact"].ToString();
        tc1.Width= 200;
        tc1.Controls.Add(l1);
        tc1.Controls.Add(image);
        tc1.Controls.Add(l2);
        rw.Cells.Add(tc1);
        Table3.Rows.Add(rw);

The table is bit unorganized all the details appears on one line, do you have any idea how to sort it and organize the details.
(In my case I want to show the lable1 break-line image and break-line then the 2nd lable).

  • 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-06-18T09:37:16+00:00Added an answer on June 18, 2026 at 9:37 am

    If all you have to display is three pieces of information, try something like this for your front end:

    <h3><asp:Label ID="_animalName" runat="server"></asp:Label></h3>
    <asp:Image ID="_animalImg" runat="server" />
    <p><asp:Label ID="_animalFact" runat="server"></asp:Label></p>
    

    And then your code behind:

    _animalName.Text = ds.Tables[0].Rows[0]["AName"].ToString();
    _animalImg.ImageUrl = ds.Tables[0].Rows[0]["Pic"].ToString();
    _animalFact.Text = ds.Tables[0].Rows[0]["Fact"].ToString();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We recently built a large ASP.NET web forms application for a client and the
I have a asp.net web site built with .net 2.0 framework. we recently purchased
We recently built a web app using Prototype, making a fair amount of use
I have recently built an iPad app using PhoneGap. Currently it saves the last
I recently discovered you can compile JScript into console apps using a built in
I've recently built a requirejs/backbonejs module that builds a table on my page. The
I've just recently fallen in love with the world of ASP.NET MVC, and one
I have just recently begun writing an application in ASP.NET MVC4. My application has
I recently built a project using the Dojo toolkit and loved how you can
I have developed a system for a client using ASP.Net MVC 3 and Entity

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.