TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Asad khan
NA
208
97.8k
how to used sql server query in asp.net
Oct 27 2016 1:28 AM
used this query in asp.net for pagination?
DECLARE @PageNumber AS INT, @RowspPage AS INT
SET @PageNumber = 4
SET @RowspPage = 500
SELECT [Id]
,[Name]
,[UserName]
,[Password]
,[Gender]
,[Age]
,[Address]
FROM [Regdb].[dbo].[TblReg]
ORDER BY [Id]
OFFSET ((@PageNumber - 1) * @RowspPage) ROWS
FETCH NEXT @RowspPage ROWS ONLY;
And my asp.net select query is that,
System.Data.SqlClient.SqlDataAdapter ad = new System.Data.SqlClient.SqlDataAdapter("select top ("+ PAGESIZE + ") * from TblReg ", con);
Reply
Answers (
2
)
Calling controller's action using AJAX/Jquery
check user name with jquery not hitting method