Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
M

Mabuti

@Mabuti
About
Posts
2
Topics
2
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Web Parts for SharePoint
    M Mabuti

    All, Can anyone direct me to some quality articles on how to create Web Parts for SharePoint with C#? -Mabuti

    C# csharp sharepoint tutorial question

  • Dataset from a DB, Sorting and Showing Contents
    M Mabuti

    I have a database with the columns of tblNewsID, Time, Date, News, User. What I am trying to do is to sort the data by the Date column and then pull each of the rows data into strings. With the code below I get the entries pulled out but not in any sorted order, they just come out as they were entered. I have tried all the help articles and I think that I am just very confused. In advance I appriciate any help that anyone can give me. conRCDB.Open(); cmdtblNews.Fill(dsNews); this.DataBind(); dsNews.tblNews.DefaultView.Sort = "Date ASC"; foreach (dsNews.tblNewsRow objNews in dsNews.tblNews) { string strTime = objNews.Time.ToShortTimeString(); string strDate = objNews.Date.ToLongDateString(); string strNews = objNews.News.ToString(); string strUser = objNews.User.ToString(); Label lblNews = new Label(); lblNews.Text = "" + strTime + ""; lblNews.Text += " " + strDate + ""; lblNews.Text += "
        " + strNews + ""; lblNews.Text += "
       -" + strUser + "

    "; panSiteNews.Controls.Add(lblNews); }

    ASP.NET database algorithms help announcement
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups