Using DNN 4.4.1 - and relatively new to the module development world - and am stuck on this one - I am trying to preserve querystring parameters after logging in.
This is the scenario - building a site that allows one to view "Auctions" - and, if they so choose to "Bid" on an auction, they must be "logged in" to do so. Everyone that is logged in can view auctions- but when they click the "Bid" button, if they aren't logged in (by checking value of UserId) - I redirect them to the login control. My desired result is after they login - they should be immediately returned to the ViewAuction page (now logged in) - looking at the same item they were before they logged in (accomplishing this via the querystring parameter passed)...specifically, the interactions looks like this:
This is the page they are on when Viewing the Auctions (querystring used AuctionID/100013):
http://www.reiauctions.com/ViewAuction/tabid/70/AuctionID/100013/Default.aspx
When they click on the "Bid" button, I check to see if they are logged in - if not, I use the NavigateURL() function to direct them to the Same TabId, "login" control AND pass in the AuctionID parameter - so all looks fine thus far - they are now sitting at the login screen with the following in their Address bar:
http://www.reiauctions.com/ViewAuction/tabid/70/ctl/login/AuctionID/100013/Default.aspx
Everything looks good at this point - as my query string still has the AuctionID/100013 - that I built...even mouse-over the "Login" button shows me at the bottom of the IE status window the following:
/ViewAuction/tabid/70/AuctionID/100013/Default.aspx (in the bottom of the IE status bar when I mouse over the Login button) - so I figure I am "golden" - but not so...
When I enter my credentials, and finally hit the "Login" button - my query string AuctionID/100013 is now gone - and I end up at the following URL:
http://www.reiauctions.com/ViewAuction/tabid/70/Default.aspx
Still at the same page, and logged in - but no querystring (AuctionID/100013) to be found...so now I can't pull-up the Auction they were sitting at when they hit the "Bid" button...Any help, suggestions to try? Appreciate it!! Thanks.