R
rn5a
A MS-Access database table has 2 columns - UserID (unique) of number
data type & UserName (text) along with some other columns.
When users come to a particular page, say, AllUsers.asp, all the
UserNames are displayed to him as hyperlinks. Based on the UserName
clicked by a user, the next page (to which the user will be taken to
when he clicks any of the UserNames) will display more information
about that particular UserName (which the user had clicked).Assume
that the page where more info is displayed is named UserInfo.asp.
(Note that the info will also be retrieved from the DB table).
UserInfo.asp will also display the UserName the user had just clciked
in AllUsers.asp.
Now for UserInfo.asp to retrieve data about the UserName the user has
just clicked, I can make the links in AllUsers.asp pass the UserID as
well as the UserName as a querystring value. Now whcih one will be
more efficient - sending the UserID as the querystrinng value or
sending the UserName as the querystring value?
data type & UserName (text) along with some other columns.
When users come to a particular page, say, AllUsers.asp, all the
UserNames are displayed to him as hyperlinks. Based on the UserName
clicked by a user, the next page (to which the user will be taken to
when he clicks any of the UserNames) will display more information
about that particular UserName (which the user had clicked).Assume
that the page where more info is displayed is named UserInfo.asp.
(Note that the info will also be retrieved from the DB table).
UserInfo.asp will also display the UserName the user had just clciked
in AllUsers.asp.
Now for UserInfo.asp to retrieve data about the UserName the user has
just clicked, I can make the links in AllUsers.asp pass the UserID as
well as the UserName as a querystring value. Now whcih one will be
more efficient - sending the UserID as the querystrinng value or
sending the UserName as the querystring value?