This may be a simple question, but I'm trying to call a a value from table in my back-end SQL Server database and pass it through a querystring in the URL. For example:
I'm building a mobile web site that registers a mobile device to an account on the sign up page. Af开发者_StackOverflow社区ter the database entry is created, I want the to get the generated deviceId from the database and pass it to a querystring in the URL such as: http://www.mobilewebsite.com?dId=22
Is this easily possible, or is it even the best solution for what I'm trying to accomplish?
Wouldn't something more unique to the device be more appropriate? Such as it's ESN?
Why not generate a GUID on the device and simply submit that. That way, no round trip to the database is required.
精彩评论