I have a webpage where, when the user clicks a link to an external site, the clickthrough needs to be recorded in a database table. I've set up the table, which has columns for "id" (key), "featuredid," "featuredurl," and "ipaddress."
I've set up an .aspx page ("featured-tracking.aspx") to serve as the means of recording the clickthrough before redirecting the user to their destination.
I've configured the URL for the link on the original page so the "featuredid" and "featuredurl" parameters are passed in the URL:
The insert will be handled by a TableAdapter method I created.
I have two questions. First, how do I take the parameter values passed in the URL and assign them to the values in my insert statement? And second, how do I get the user's IP address and assign that value to the parameter for the insert?
Here's my code behind as it stands:
View Complete Post