Wrox Programmer Forums
|
ASP.NET 1.1 As of 10/6/2005, this forum is locked as part of the reorganization described here: http://p2p.wrox.com/topic.asp?TOPIC_ID=35394. No posts have been deleted. Open ongoing discussions from the last week have been moved to either ASP.NET 1.0 and 1.1 Beginners http://p2p.wrox.com/asp-net-1-0-1-1-basics-60/ or ASP.NET 1.0 and 1.1 Professional. http://p2p.wrox.com/forum.asp?FORUM_ID=50. See my sticky post inside for more.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.1 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 26th, 2005, 07:55 AM
Registered User
 
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Paging in asp.net

My prob is that i am currently working on asp.net using vb.net and making search engine ,the prob is that first time paging works correctly and when i click on next button link or on second page ,the records does not match in wuery string maens
"select * from websearch where leywords like % '" & request.form("keywords") & "'%" .first time the records match and it works correctly but on clicking on next records this query dose not work and it selects all the records from databse
plz help me out if any one have the solution of this problem
thanks
maria

 
Old January 26th, 2005, 09:05 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Can you post your code?

 
Old January 26th, 2005, 02:19 PM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 307
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Vadivel Send a message via Yahoo to Vadivel
Default

I guess you would have missed out "If Not IsPostBack" logic in your Page_Load event. ie., write your query and populate the dataset or whatever within "If Not IsPostBack"

Best Regards
Vadivel

MVP ASP/ASP.NET
http://vadivel.thinkingms.com
 
Old January 26th, 2005, 02:24 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Please post your code.

However, It seems that you are querying the DB in the page load and is running every time the button is clicked. You need to check for post back by using IsPostBack.

Page_Load event:

If NOT IsPostBack Then
   ...Retrived rows here.
End If





Similar Threads
Thread Thread Starter Forum Replies Last Post
Paging in ASP. rupen Classic ASP Basics 0 October 4th, 2005 08:34 AM
paging asp.net msrnivas .NET Web Services 1 March 1st, 2004 05:12 AM
Paging with ASP Luke24 Classic ASP Basics 0 February 9th, 2004 06:13 AM
Need Help!! ASP Paging stitch Classic ASP Databases 5 August 26th, 2003 05:19 AM
Paging in ADO.NET tknguyen ADO.NET 2 June 24th, 2003 09:40 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.