You must Sign In to post a response.
  • Category: ASP.NET

    How to show images with links as gallery with few details

    How to show images with links as gallery with few details.
    I want to build online shopping website. I have made menu with mobiles,laptops,home appliances,speakers with their details in aspx page.
    For example if anyone select mobiles menu a sub menu will display like samsung,sony,micromax and carbon.
    if any one selects samsung I need to display samsung mobiles as gallery with images as links to that particular product and that image should have name,price,model.
  • #762882
    Hi saikrishna,

    Use DataList control to show the images and if you want to show the details of that, then use nested grid concept, that means you need to include child grid for details. Pass parentId as a parameter based on parentid show the child grid details, refer below link for more details.
    "dotnetspider.com/resources/45867-Expandable-GridView-with-simple-JavaScript.aspx"
    "dotnetspider.com/resources/45078-Nested-GridView-with-Extendable.aspx"

    Hope this will helpful to you..

    --------------------------------------------------------------------------------
    Give respect to your work, Instead of trying to impress your boss.

    N@veen
    Blog : http://naveens-dotnet.blogspot.in/

  • #762886
    Hello K Saikrishna,

    I have posted one resource regarding getting details on click of image.

    http://www.dotnetspider.com/resources/46235-Show-data-in-popup-on-image-click-from-database.aspx

    Try it if it works for you.

    Hope this will help you. Still not helped then let me know if problem persists.

    Regards,
    Nirav Lalan
    DNS Gold Member
    "Failure is the path of least persistence"

  • #762901
    Hi.

    Your both answers did not match my criteria. My requirement is different and you people suggested is totally different.
    See the attachment, I done with datlist by placing hyperlink in the template, but navigate url it is taking same for all images.
    It should be different to show details of each product when clicked on it.

    Regards

    Sai Krishna Reddy.

    Delete Attachment

  • #762910
    Hi saikrishna,

    did you pass the Primary Key Id as a parameter while clicking hyperlink?

    If it's redirecting same URL in all links clicking time may be you are not passing the Id properly.

    Could you please share the piece of code which you have wrote for hyperlink clicking event. So, that we can help you better.

    --------------------------------------------------------------------------------
    Give respect to your work, Instead of trying to impress your boss.

    N@veen
    Blog : http://naveens-dotnet.blogspot.in/

  • #762922
    In datalist templates i added hyperlink and made databindings with the column name url as Eval("url")
    this made me to get url for hyperlink from database.

    Regards

    Sai Krishna Reddy.

  • #762927
    Yes, What's the URL of that.? Could you please check it once, from where you are getting this URL.? either from database or dynamically generated from your code base.

    The main problem is your URL, you may pass the same URL for all the links clicking time.

    --------------------------------------------------------------------------------
    Give respect to your work, Instead of trying to impress your boss.

    N@veen
    Blog : http://naveens-dotnet.blogspot.in/


Sign In to post your comments