Results 1 to 4 of 4

Thread: How can i diplay something like this in the image using datalist view asp.net

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2020
    Location
    Kampala
    Posts
    40

    How can i diplay something like this in the image using datalist view asp.net

    Last edited by Makumbi; Dec 2nd, 2023 at 05:51 AM.

  2. #2
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,020

    Re: How can i diplay something like this in the image using datalist view asp.net

    I haven't done ASP.NET Web Forms projects lately. But the links below will help you achieve in showing images to DataList control.

    How to use the DataList control to create an Image Gallery
    Bind (Display) images in DataList from folder in ASP.Net using C# and VB.Net
    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

  3. #3
    King of sapila
    Join Date
    Oct 2006
    Location
    Greece
    Posts
    6,684

    Re: How can i diplay something like this in the image using datalist view asp.net

    I wouldn't do that to my worst enemy.
    Old (and probably new, haven't tried nor have the desire) asp.net control will go in a certain amount, that is before you need to do something extra that would need ,p.e. javascript support. Then all hell breaks loose.
    It would be much preferred to go on a classic html and create some div's with simple elements or a javascript . For images i prefer (prefered, haven't do so in a couple of years) html template. See here an example :
    https://www.vbforums.com/showthread....nk-me-for-this
    For data I suppose it was, er, slickgrid? Something that szlamany used?
    All in all what that blasted asp.net controls do is sprouting html code but VERY VERY badly and I'm not sure if they have proper paging (if I recall they do but you have to create your queries on the sql first), bloat the page and make you cry. So it is much preferred NOT to use them other than simple data imports. If there are images, interactions web services etc, it will make you life miserable and slow down the whole page experience. I'm not sure what ms was smoking when they designed them but I can give the benefit of the doubt that they just made something fast and lazy to cover for php competition.
    ἄνδρα μοι ἔννεπε, μοῦσα, πολύτροπον, ὃς μάλα πολλὰ
    πλάγχθη, ἐπεὶ Τροίης ἱερὸν πτολίεθρον ἔπερσεν·

  4. #4
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,020

    Re: How can i diplay something like this in the image using datalist view asp.net

    Agree, for simple image gallery with small number of records and simple logic, datalist control would suffice. But for complex galleries, we have used js sliders or jquery datatable before which is similar to slickgrid.

    kgc
    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width