Link to home
Start Free TrialLog in
Avatar of M.L. Martin
M.L. MartinFlag for United States of America

asked on

Search feature not working - ASP.net (aspx) 4.0

Admittedly I do not know what else to do at this point. I have spent the last week trying to figure out how to do paging with a datalist contol. I have to use a datalist because I need the formatting freedom. I thought I could get the pages to work but Something is missing.

1. The pages load ok.
2. I don't receive any compile errors.
3. The next, previous, last buttons are clickable

The BIG PROBLEM IS my search page does not bring back any results. If it is bringing back results they are not displaying on the page. My assumption is no results are being returned. I think it would be too much code to try and place here so I am attaching the aspx file in text format and the aspx.vb file also in text format. I can't tell you where I'm going wrong with this so someone will have to look through the code to determine the problem. I've tried everything I know to do at this point. I thought about searching for some more sample code of datalist paging but I figured since the pages are not failing then maybe I am very close to making this work. PLEASE HELP!!!!!!!!!!!!!!!!! search.txt
search-aspx-vb-CodeBehind.txt
Avatar of M.L. Martin
M.L. Martin
Flag of United States of America image

ASKER

I wanted to add that I do get search results in the non-paging version og the pages where I'm just using an SQLdatasource binding to the datalist.
ASKER CERTIFIED SOLUTION
Avatar of Jesse Houwing
Jesse Houwing
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I do believe that ToA0M's solution would hae worked. However, I found some datalist paging code that works and is easy to implement.
Both solutions work.