locked
Fetching the selected (unique id) Ad with its information to another page with XML RRS feed

  • Question

  • User330911564 posted

    Hi here i am again,

    I have already created a class (public List<CarClass> GetAll(){} ) that fetches a couple of xml elements in my asp.net c# project and display them on a page. this is example

    in short words, i want to create a detail page of each sort car.

    I now want to create a class that will take me to another page with a chosen/selected car/UniqueID. something like this

    public GetAdByUid(int carId){

    }

    I already created the needed get; set; and unieknummer is the one i want to use to specify.

    Looking forward for replies.

    Thanks in advance 

    Friday, March 17, 2017 3:12 PM

Answers

  • User-1838255255 posted

    Hi tandohtakyie,

    According to your description, as far as I know, you want to show particular node information through this ID value, then show the whole element information in other page.

    Please try the following steps:

    1. Select data from xml node through parameter value. please refer to the following link:

    How to read a particular node from xml in C#?

    http://stackoverflow.com/questions/16147142/how-to-read-a-particular-node-from-xml-in-c 

    2. Pass these value to the other page, could use URL or session etc.

    3. In the other page, get these values and show them.

    Best Regards,

    Eric Du 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, March 20, 2017 7:12 AM

All replies

  • User-1838255255 posted

    Hi tandohtakyie,

    According to your description, as far as I know, you want to show particular node information through this ID value, then show the whole element information in other page.

    Please try the following steps:

    1. Select data from xml node through parameter value. please refer to the following link:

    How to read a particular node from xml in C#?

    http://stackoverflow.com/questions/16147142/how-to-read-a-particular-node-from-xml-in-c 

    2. Pass these value to the other page, could use URL or session etc.

    3. In the other page, get these values and show them.

    Best Regards,

    Eric Du 

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, March 20, 2017 7:12 AM
  • User330911564 posted

    that's exactly what i mean, thank you for you reply

    I'm going to try your process and see how far i will get.

    thank you very much

    Monday, March 20, 2017 12:23 PM