Improving on the default Classifieds site

Last post 07-08-2009 8:13 AM by po10cy. 17 replies.

Sort Posts:

  • Re: Improving on the default Classifieds site

    06-02-2009, 7:57 AM
    • Participant
      1,635 point Participant
    • sangam100
    • Member since 07-22-2008, 10:44 AM
    • Kathmandu,Nepal
    • Posts 313

    Hi po10cy ,

    I have just downloaded the classified ad starter kit and like you I also won't enjoy the default only. First of all thanks for the questions for being the weighty ones because all most all of we developers would like to have the features you mentioned. I am not going to answer any of your question since I am new to this starter site and am just playing with the default features. However in the future I would also go for the deep feautures.

    One thing I would like to request. If you have already got them work or if you are on the way, it would be a great work if you could give some walkthrough or sort of tips and tricks or have a series-articles somewhere. I don't know whether it is feasible or not but I would like to ask wheter you make the code you have achieved by now available for other developers also.

    With great appreciation! Thanks. Happy Programming!

    Lets always remember to mark the post that helps us as "Mark as Answer".
    Very useful visual studio shortcuts and more tips and tricks
    5 Different ways to open new window in asp.net
  • Re: Improving on the default Classifieds site

    06-25-2009, 6:00 AM
    • Member
      4 point Member
    • po10cy
    • Member since 05-12-2009, 9:35 AM
    • Posts 17

    Howsit guys, for the life of me I still cannot get the site to list the ads by AdLevel and not DateCreated whenever you search for something.  And I have changed the procedure which sorts by DateCreated to AdLevel, I have searched the entire project for anything to do with AdLevel and DateCreated and still doesnt do what it needs.

    So now i have another thought, how about instead of having code to list all the ad's and sort them then by DateCreated, how about i have code to list only ads of a certain level? eg when you search how do I have it only list Ads thats featured Ads, then it sorts by datecreated.  what i want to do then, is have the code to display featured ads first, then another section of code to only display guest ads, that way it would appear to be sorting by AdLevel but in actual fact its only displaying featured ads first, then normal ads afterwards because of the code.


    Also i still cannot get it to display up to 5 featured ads on the homepage at the same time, it only display ones featured ad, and i have used all the code examples listed on this site including the line of code which says "GetMaxNumAds" from "GetMaxNumAds(1)" to "(5)" and still no joy.


    this is the only 2 issues im struggling with then my site can go live.  Please any advise on how to go about this or code would be awesome.  Ive sat many nights up now fiddling with this code.

  • Re: Improving on the default Classifieds site

    07-08-2009, 8:13 AM
    • Member
      4 point Member
    • po10cy
    • Member since 05-12-2009, 9:35 AM
    • Posts 17

    ok so i managed to finally get the ads to sort by level.


    what i did was i made duplicates of teh grid to display the search results in search .aspx.  then i duplicated the datasource the same amount of times, changing each grid to point to each datasource.  Then in each datasource is a field "adlevel=0" which basically is default and tells it to display ALL adlevels. so i changed each grid to display the adlevel i wanted by changed each grid's data source to point to "adlevel=50".."adlevel=30".."adlevel=20" etc.  50 being the featured ads level and the rest being my custom adlevels i created.


    however i still cannot get it to list more than 1 featured ad on the home page...if i duplicate the repeater to have 5 repeaters on the home page, it sometimes lists the same ad twice on the home page at the same time...i really need help to get it so the one repeater can list up to 5 different featured ads on the home page at the same time.

Page 2 of 2 (18 items) < Previous 1 2