Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I How to paging for string.format. I just like paging In Gridview. For example, there are 20 100 records per page and the rest of the layout.

preview 1 2 3 4 5 next

        using (var cmd = new SqlCommand("NewsContentMenu", cn) { CommandType = CommandType.StoredProcedure })
        {
            using (var dr = cmd.ExecuteReader(CommandBehavior.CloseConnection))
            {
                while (dr.Read())
                {
                    newsTabMenu.Controls.Add(new Literal() { Text = string.Format("<a href='News.aspx?id={0}'>{1}</a></br>", dr["NewsID"], dr["NewsTitle"]) });
                }
            }
        }

}

Dear friends, please help in this case. Grateful

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.