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

  • Home
  • SEARCH
  • 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 8084573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:50:26+00:00 2026-06-05T17:50:26+00:00

I am working on a real estate website and I am using a datalist

  • 0

I am working on a real estate website and I am using a datalist (ASP.NET / C#) to show listing, my next step which i can’t figure out how to do it, is if I click on the link ‘edit’, Select information for that specific house and show it in the Edit.aspx and each field of the datalist is shown in a textbox.

My database is pretty easy with just 4 fields : IDhouse, Price, Bedroom, ImgHouse.

Please if someone can help me I will appreciate it so much, thank you.

Code:

<asp:DataList ID="DataList1" runat="server" DataKeyField="IDhouse" 
                        DataSourceID="SqlDataSource1"/>
                        <ItemStyle ForeColor="#000066" />
                        <ItemTemplate>
                            <table>
                                <tr>
                                    <td class="style2">
                                    Price : <asp:Label ID="Label1" runat="server" Text='<%# Eval("Price", "{0:C}") %>' /><br />
                                    Beds : <asp:Label ID="Label2" runat="server" Text='<%# Eval("Bedroom") %>' /><br />
                                        <br />
                                        <br />
                                        <br />
                                        <br />
                                        <br />
                                        <br />
                                        <br />
                                        <asp:HyperLink ID="HyperLink2" runat="server">Delete</asp:HyperLink>
                                        &nbsp;&nbsp;
                                        <asp:HyperLink ID="HyperLink1" runat="server">Edite</asp:HyperLink>
                                    </td>

                                    <td class="style1">
                                        <asp:Image  ID="Image1" runat="server" Height="201px" Width="331px"  
                                            ImageUrl='<%# "~/DisplayImg.ashx?IDhouse="+ Eval("IDhouse") %>'/>
                                    </td>
                                </tr>
                            </table>

                        </ItemTemplate>


      </asp:DataList>
  • 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-05T17:50:27+00:00Added an answer on June 5, 2026 at 5:50 pm

    Replace

    <asp:HyperLink ID="HyperLink1" runat="server">Edite</asp:HyperLink>
    

    with

    <a href="Edit.aspx?id=<%# Eval("IDhouse") %>">Edit</a>
    

    and on the Edit.aspx page, load the required data based on the IDhouse value obtained from the querystring

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on one real estate website which is Using RETS service to
I'm using a SQL Server database, I'm working on a real estate website. I
Right now I am working on one Real Estate Website, In that website I
I am working on a real estate website and i would like to write
I'm working with an MLS real estate listing provider (RETS). Every 48 hours we
I am working in one real-estate website and I have large database around 250
Working on a real estate site where a user can search for property based
Hi I am currently working on a real estate site. the users on the
Real problem with an existing webapp which has been working for the last couple
I'm working on a real estate site and need to make notification mailer: when

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.