I am using sqlexpress, asp.net and c#.
I have a database which I have been able to populate aspx pages with, but am not able to popluate the same aspx page with different data based on clicking a link.
I have created a table, (animals), which has a Primary Key column named animalID, and a column named descritipion, (dog, cat).
I would like to be able to pull this information into a web page called animals.aspx, based on which link is clicked.
If dog link is clicked, which is referenced in the animals table as animalID 1, and populate it with info for a dog. If cat is clicked, which is referenced in the table by animalID 2, then that data should be populated in the animal.aspx page
.
It looks like there are posts here that reference that it can be done, but not how to do it.
I have never programed anything before and just finished a class, (I was told that this was beyond the scope of the class, so I have been searching for help). I have been working at this for over a week and I am still not sure how to do this in c# or sql, so anything you can provide would be helpful.
I have a database which I have been able to populate aspx pages with, but am not able to popluate the same aspx page with different data based on clicking a link.
I have created a table, (animals), which has a Primary Key column named animalID, and a column named descritipion, (dog, cat).
I would like to be able to pull this information into a web page called animals.aspx, based on which link is clicked.
If dog link is clicked, which is referenced in the animals table as animalID 1, and populate it with info for a dog. If cat is clicked, which is referenced in the table by animalID 2, then that data should be populated in the animal.aspx page
.
It looks like there are posts here that reference that it can be done, but not how to do it.
I have never programed anything before and just finished a class, (I was told that this was beyond the scope of the class, so I have been searching for help). I have been working at this for over a week and I am still not sure how to do this in c# or sql, so anything you can provide would be helpful.