Hi All,
I have employee Performance details,
I need to display that into Repeater Control in the following format..
Employee Basic Details
----Basic details from Database---------
HardFactorDetails
---Hard factor details------
SoftFactorDetails
----Softfactor Details----
FinalDetails
----Final rating details----
with scrollbar(Either Vertical or Horizontal)...
The bold letters are HardContent which will works as a header & details i ll retrieve from database...
Can anybody help me to do this...
Loading

Satyapriya NayakPosted Jan 19, 2012, 1:38 AM
Try this...
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Repeater_items._Default" %>
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.SqlClient;
namespace Repeater_items
{
public partial class _Default : System.Web.UI.Page
{
string connStr = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString;
SqlCommand com;
string str;
protected void Page_Load(object sender, EventArgs e)
{
bindlist();
bindlist1();
bindlist2();
}
void bindlist()
{
SqlConnection con = new SqlConnection(connStr);
con.Open();
str = "select * from Mobile";
com = new SqlCommand(str, con);
SqlDataReader reader;
reader = com.ExecuteReader();
Repeater1.DataSource = reader;
Repeater1.DataBind();
reader.Close();
con.Close();
}
void bindlist1()
{
SqlConnection con = new SqlConnection(connStr);
con.Open();
str = "select * from Mobile";
com = new SqlCommand(str, con);
SqlDataReader reader;
reader = com.ExecuteReader();
Repeater2.DataSource = reader;
Repeater2.DataBind();
reader.Close();
con.Close();
}
void bindlist2()
{
SqlConnection con = new SqlConnection(connStr);
con.Open();
str = "select * from Mobile";
com = new SqlCommand(str, con);
SqlDataReader reader;
reader = com.ExecuteReader();
Repeater3.DataSource = reader;
Repeater3.DataBind();
reader.Close();
con.Close();
}
}
}
Thanks
If this post helps you mark it as answer
Ajitender VijayPosted Jan 19, 2012, 12:30 AM
Please refer below link
http://msdn.microsoft.com/en-us/magazine/cc163780.aspx
http://www.codeguru.com/csharp/.net/net_asp/controls/article.php/c19299/
Thanks
Jignesh TrivediPosted Jan 18, 2012, 6:31 AM
please refer below link.
http://www.c-sharpcorner.com/uploadfile/puranindia/repeater-controls-in-Asp-Net/
hope this help.