Click here to Skip to main content
15,919,931 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: include file in aspx page from codebehind file. Pin
r a m e s h7-Aug-09 19:15
r a m e s h7-Aug-09 19:15 
AnswerRe: include file in aspx page from codebehind file. Pin
N a v a n e e t h7-Aug-09 19:16
N a v a n e e t h7-Aug-09 19:16 
Questionconvert database to xml file (but i want column as attribute) [modified] Pin
Punit Belani7-Aug-09 18:00
Punit Belani7-Aug-09 18:00 
AnswerRe: convert database to xml file (but i want column as attribute) Pin
N a v a n e e t h7-Aug-09 18:43
N a v a n e e t h7-Aug-09 18:43 
GeneralRe: convert database to xml file (but i want column as attribute) Pin
Punit Belani7-Aug-09 18:51
Punit Belani7-Aug-09 18:51 
GeneralRe: convert database to xml file (but i want column as attribute) Pin
N a v a n e e t h7-Aug-09 19:09
N a v a n e e t h7-Aug-09 19:09 
QuestionCustom /efficient paging and sorting gridview Pin
mark_me7-Aug-09 17:33
mark_me7-Aug-09 17:33 
AnswerRe: Custom /efficient paging and sorting gridview Pin
N a v a n e e t h7-Aug-09 17:59
N a v a n e e t h7-Aug-09 17:59 
mark_me wrote:
i can use linq to select and skip data


I don't know anything about the problem domain you are working on and data structures you use. But if database is your persisting area, efficient way to do this is to get only rows that will be displayed.

mark_me wrote:
Again i found solutions on google but none had numbered pages in bottom of gridview, which i want to have. I can do it with next,prev btn at the moment.


IMO, there is nothing wrong in using ObjectDataSource since it comes with inbuilt paging capabilities. If you are binding a DataTable, you need to set the TypeName property to DataTable.

You need to provide two methods, one for selecting the data according to the page number and another method for calculating the total count of data. These methods should be assigned to SelectMethod and SelectCountMethod properties respectively.

Scott Guthrie's article[^] gives an overview of doing this. He is using ASP.NET AJAX but the concepts are same.

Smile | :)


GeneralRe: Custom /efficient paging and sorting gridview Pin
mark_me7-Aug-09 18:19
mark_me7-Aug-09 18:19 
GeneralRe: Custom /efficient paging and sorting gridview Pin
N a v a n e e t h7-Aug-09 18:30
N a v a n e e t h7-Aug-09 18:30 
GeneralRe: Custom /efficient paging and sorting gridview Pin
mark_me7-Aug-09 18:57
mark_me7-Aug-09 18:57 
QuestionSQL NOT WORKING Pin
greendragons7-Aug-09 9:30
greendragons7-Aug-09 9:30 
AnswerRe: SQL NOT WORKING Pin
Abhijit Jana7-Aug-09 10:36
professionalAbhijit Jana7-Aug-09 10:36 
AnswerRe: SQL NOT WORKING Pin
Abhishek Sur7-Aug-09 10:49
professionalAbhishek Sur7-Aug-09 10:49 
Questionwraper controls Pin
greendragons7-Aug-09 9:22
greendragons7-Aug-09 9:22 
AnswerRe: wraper controls Pin
Abhijit Jana7-Aug-09 10:39
professionalAbhijit Jana7-Aug-09 10:39 
GeneralRe: wraper controls Pin
greendragons7-Aug-09 10:47
greendragons7-Aug-09 10:47 
GeneralRe: wraper controls Pin
Abhijit Jana7-Aug-09 11:07
professionalAbhijit Jana7-Aug-09 11:07 
QuestionAccess frames on different domain from Frameset Pin
Hemant_ec487-Aug-09 9:15
Hemant_ec487-Aug-09 9:15 
AnswerRe: Access frames on different domain from Frameset Pin
Leonardo Muzzi7-Aug-09 10:30
Leonardo Muzzi7-Aug-09 10:30 
Questionhow to Retrieve Metadata in office Document using MS Index Services Pin
alisolution7-Aug-09 8:31
alisolution7-Aug-09 8:31 
QuestionAdding Code to a Page Load Event Pin
Tammy Marchi7-Aug-09 8:04
Tammy Marchi7-Aug-09 8:04 
AnswerRe: Adding Code to a Page Load Event Pin
Manas Bhardwaj7-Aug-09 8:18
professionalManas Bhardwaj7-Aug-09 8:18 
GeneralRe: Adding Code to a Page Load Event Pin
Tammy Marchi7-Aug-09 12:05
Tammy Marchi7-Aug-09 12:05 
GeneralRe: Adding Code to a Page Load Event Pin
Blue_Boy7-Aug-09 13:13
Blue_Boy7-Aug-09 13:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.