Click here to Skip to main content
15,915,093 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Codeproject,
http://timestech.somee.com/jobdetail.aspx[^]
i am using repeater and i am codking likne this on aspx page
XML
div class="mancontaner">

<h1>Search Job</h1>
            <br />

            <asp:Repeater ID="Repeater1" runat="server">
            <headerTemplate>
            Name:<% Eval("fname")%>
            </headerTemplate>
            <itemTemplate>
            <%#DataBinder.Eval(Container.DataItem, "lname")%>
            </itemTemplate>
            </asp:Repeater>

</div>


and I Am Using Connection with Vb.net

as bellow
VB
Public Function connecton() As SqlConnection
        con = New SqlConnection("server=jobportal1.mssql.somee.com;database=jobportal1;uid=irfanansari;pwd=password")
        ' 

        Return con
    End Function


SQL
Public Function searchjobs()
       com = New SqlCommand("select * from  tbllogin ", Me.con)
       adpt = New SqlDataAdapter
       adpt.SelectCommand = com
       table = New DataTable
       adpt.Fill(table)

   End Function


when I try to run there is no result shown,pls help me out
Posted
Updated 19-Apr-14 5:48am
v2
Comments
Bh@gyesh 19-Apr-14 5:10am    
Refer following link
http://www.codingfusion.com/Post/Repeater-Edit-Update-Delete-in-Asp-net-using-Ado

Hi,

You are just fetching the values from the table but not binding the repeater.

Regards,
 
Share this answer
 
VB
adpt.Fill(table)
Repeater1.DataSource=table
Repeater1.DataBind()

End Function
 
Share this answer
 
Comments
Telstra 21-Apr-14 4:25am    
right answer Ishpreet

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