Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Please Please Please Help me ...

I am making a realestate website on C# , .NET ...
For search results i have used List view to show different properties .

Now I want to add a link button on Each property result in the listview results .
This link will take the user to the detailed view page of that property like we have in magicbricks.com


Please help me ..

Rajkumar
Posted
Comments
hitech_s 8-Oct-11 3:03am    
if you need exactly listview you can proceed..
but my curiosity why dont you use grid view ?by using gridview we can do it easily thats why am asking plz dont mind
rajkumar9867 8-Oct-11 3:07am    
Hi hitech thanks for ur comment but i want to display my search results like magicbricks.com so how can i make it with grid view ..
Mohammad Al Hoss 9-Oct-11 14:18pm    
Hi did you try to add asp.net hyperlink and customize it's navigate URL?

1 solution

LinkButton class is provided by Microsoft .NET framework namespace System.Web.UI.WebControls. It can be used as:

C#
<head>
    <title>LinkButton Example</title>
<script language="C#" runat="server">

      void LinkButton_Click(Object sender, EventArgs e) 
      {
         // write your action code here;
      }

   </script>

</head>
<body>

   <form id="form1" runat="server">
<asp:LinkButton id="LinkButton1"
           Text="Click Me"
           Font-Names="Verdana"
           Font-Size="14pt"
           OnClick="LinkButton_Click"
           runat="server"/>
 
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