You must Sign In to post a response.
  • Category: ASP.NET

    Shuffle data from database using asp.net with c#

    on page refresh i want to fetch data from database in SQL and show in repeater control
    the data should be displayed and data shuffle after page refresh in asp.net with c#
  • #765292
    Hi Akshay,

    What type of problem have you faced to implement this task.?

    If you are bind the records outside IsPostBack in page load event obviously you could able to bind your latest records in your data control( repeater control ).

    Ex:

    protected void Page_Load(object sender, EventArgs e)
    {
    if (!IsPostBack) // remove this condition
    {
    BindData();
    }
    }
    Protected void BindData()
    {
    con.Open();
    da = new SqlDataAdapter("select deptno,dname,loc from DEPT", con);
    ds = new DataSet();
    da.Fill(ds);

    con.Close();
    Repeater1 .DataSource = ds;
    Repeater1.DataBind();
    }


    If you still having problem, then please let us know with details..

    --------------------------------------------------------------------------------
    Give respect to your work, Instead of trying to impress your boss.

    N@veen
    Blog : http://naveens-dotnet.blogspot.in/

  • #765297
    Hi

    What is loading Method?
    can you share then which type criteria do you need shuffling data ?
    for ex; Data wise or Category Wise ?

    Can you explain more.

    Name : Dotnet Developer-2015
    Email Id :kumaraspcode2009@gmail.com

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.


Sign In to post your comments