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? 5 2133
On May 9, 6:20 am, r...@rediffmail.com wrote:
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?
ADDENDUM:
------------------
Sorry made some changes to the app. Here's the revised post:
When a user clicks a UserName in AllUsers.asp, he is first taken to an
ASP page named Page1.asp (& not UserInfo.asp). Page1.asp also has
links clicking which takes the user to UserInfo.asp which displays all
the UserName info.
Now Page1.asp displays a calendar & should also display the UserName
just clicked. As such, Page1.asp doesn't interact with the MS-Access
DB table. If I pass the UserID as the querystring value from
AllUsers.asp to Page1.asp, then that means I have to get the UserName
from the DB table since I am only passing the UserID as the
querystring value & not the UserName. On the other hand, if I pass
UserName as the querystring value from AllUsers.asp to Page1.asp, then
there won't be any need for Page1.asp to interact with the DB table.
So passing UserID as the querystring value which involves database
communication is recommended or passing UserName as the querystring
value which doesn't involve any database communication is recommended?
<rn**@rediffmail.comwrote in message
news:11**********************@e65g2000hsc.googlegr oups.com...
On May 9, 6:20 am, r...@rediffmail.com wrote:
>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?
ADDENDUM:
------------------
Sorry made some changes to the app. Here's the revised post:
When a user clicks a UserName in AllUsers.asp, he is first taken to an
ASP page named Page1.asp (& not UserInfo.asp). Page1.asp also has
links clicking which takes the user to UserInfo.asp which displays all
the UserName info.
Now Page1.asp displays a calendar & should also display the UserName
just clicked. As such, Page1.asp doesn't interact with the MS-Access
DB table. If I pass the UserID as the querystring value from
AllUsers.asp to Page1.asp, then that means I have to get the UserName
from the DB table since I am only passing the UserID as the
querystring value & not the UserName. On the other hand, if I pass
UserName as the querystring value from AllUsers.asp to Page1.asp, then
there won't be any need for Page1.asp to interact with the DB table.
So passing UserID as the querystring value which involves database
communication is recommended or passing UserName as the querystring
value which doesn't involve any database communication is recommended?
You're just thinking out loud, aren't you?
--
Mike Brind
On May 9, 12:20 pm, "Mike Brind" <d...@newsgroups.comwrote:
<r...@rediffmail.comwrote in message
news:11**********************@e65g2000hsc.googlegr oups.com...
On May 9, 6:20 am, r...@rediffmail.com wrote:
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?
ADDENDUM:
------------------
Sorry made some changes to the app. Here's the revised post:
When a user clicks a UserName in AllUsers.asp, he is first taken to an
ASP page named Page1.asp (& not UserInfo.asp). Page1.asp also has
links clicking which takes the user to UserInfo.asp which displays all
the UserName info.
Now Page1.asp displays a calendar & should also display the UserName
just clicked. As such, Page1.asp doesn't interact with the MS-Access
DB table. If I pass the UserID as the querystring value from
AllUsers.asp to Page1.asp, then that means I have to get the UserName
from the DB table since I am only passing the UserID as the
querystring value & not the UserName. On the other hand, if I pass
UserName as the querystring value from AllUsers.asp to Page1.asp, then
there won't be any need for Page1.asp to interact with the DB table.
So passing UserID as the querystring value which involves database
communication is recommended or passing UserName as the querystring
value which doesn't involve any database communication is recommended?
You're just thinking out loud, aren't you?
--
Mike Brind- Hide quoted text -
- Show quoted text -
Sorry, Mike, I couldn't exactly get you....
<rn**@rediffmail.comwrote in message
news:11**********************@y5g2000hsa.googlegro ups.com...
On May 9, 12:20 pm, "Mike Brind" <d...@newsgroups.comwrote:
><r...@rediffmail.comwrote in message
news:11**********************@e65g2000hsc.googleg roups.com...
On May 9, 6:20 am, r...@rediffmail.com wrote: 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?
ADDENDUM:
------------------
Sorry made some changes to the app. Here's the revised post:
When a user clicks a UserName in AllUsers.asp, he is first taken to an
ASP page named Page1.asp (& not UserInfo.asp). Page1.asp also has
links clicking which takes the user to UserInfo.asp which displays all
the UserName info.
Now Page1.asp displays a calendar & should also display the UserName
just clicked. As such, Page1.asp doesn't interact with the MS-Access
DB table. If I pass the UserID as the querystring value from
AllUsers.asp to Page1.asp, then that means I have to get the UserName
from the DB table since I am only passing the UserID as the
querystring value & not the UserName. On the other hand, if I pass
UserName as the querystring value from AllUsers.asp to Page1.asp, then
there won't be any need for Page1.asp to interact with the DB table.
So passing UserID as the querystring value which involves database
communication is recommended or passing UserName as the querystring
value which doesn't involve any database communication is recommended?
You're just thinking out loud, aren't you?
-- Mike Brind- Hide quoted text -
- Show quoted text -
Sorry, Mike, I couldn't exactly get you....
Well, calls to databases are expensive, and a good way to hamper the
scalability of a site. So the rule of thumb is only make calls when
absolutely necessary, and make them as short and sweet as possible. If you
already have a value on page1, and passing that value to page2 using the
querystring makes it available to that page thus negating an expensive
additional and unnecessary call to the database, I would have thought the
answer was self-evident.
Your post reads like someone mentally weighing up 2 options out loud, only
to arrive at the correct answer themselves, and therefore not requiring an
answer from anyone else. Hence my equally rhetorical response :-)
--
Mike Brind
On May 10, 1:30 am, "Mike Brind" <paxton...@hotmail.comwrote:
<r...@rediffmail.comwrote in message
news:11**********************@y5g2000hsa.googlegro ups.com...
On May 9, 12:20 pm, "Mike Brind" <d...@newsgroups.comwrote:
<r...@rediffmail.comwrote in message
>news:11**********************@e65g2000hsc.googleg roups.com...
On May 9, 6:20 am, r...@rediffmail.com wrote:
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?
ADDENDUM:
------------------
Sorry made some changes to the app. Here's the revised post:
When a user clicks a UserName in AllUsers.asp, he is first taken to an
ASP page named Page1.asp (& not UserInfo.asp). Page1.asp also has
links clicking which takes the user to UserInfo.asp which displays all
the UserName info.
Now Page1.asp displays a calendar & should also display the UserName
just clicked. As such, Page1.asp doesn't interact with the MS-Access
DB table. If I pass the UserID as the querystring value from
AllUsers.asp to Page1.asp, then that means I have to get the UserName
from the DB table since I am only passing the UserID as the
querystring value & not the UserName. On the other hand, if I pass
UserName as the querystring value from AllUsers.asp to Page1.asp, then
there won't be any need for Page1.asp to interact with the DB table.
So passing UserID as the querystring value which involves database
communication is recommended or passing UserName as the querystring
value which doesn't involve any database communication is recommended?
You're just thinking out loud, aren't you?
--
Mike Brind- Hide quoted text -
- Show quoted text -
Sorry, Mike, I couldn't exactly get you....
Well, calls to databases are expensive, and a good way to hamper the
scalability of a site. So the rule of thumb is only make calls when
absolutely necessary, and make them as short and sweet as possible. If you
already have a value on page1, and passing that value to page2 using the
querystring makes it available to that page thus negating an expensive
additional and unnecessary call to the database, I would have thought the
answer was self-evident.
Your post reads like someone mentally weighing up 2 options out loud, only
to arrive at the correct answer themselves, and therefore not requiring an
answer from anyone else. Hence my equally rhetorical response :-)
--
Mike Brind- Hide quoted text -
- Show quoted text -
Thanks, Mike, for your answer. Actually my English is not so good;
that's the reason why I couldn't understand your first response.
Anyway, thanks once again,
Regards,
RON This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Mikael |
last post by:
Hi All!
I have a problem here and i can't see what it is...
My parameters (value) are shopped off.
exampe "Hello world" will end up like "hello"...
|
by: John Wilkin |
last post by:
I'm using an xsl stylesheet to transform an xml source from a remote
URL. I'm using the xslt.pl processor available from...
|
by: MrMike |
last post by:
I have a DataGrid Hyperlink column as shown here. I'm trying to pass the
JobNum parameter as shown. The JobNum parameter is the webform's...
|
by: Dan Sikorsky |
last post by:
How can I get the Querystring passed to the Referring Page from its
referrer?
I don't want the querystring coming to my current page. I want the...
|
by: CharlesA |
last post by:
Hi folks,
I'm having a discussion with my colleague about how to go about passing data
from one aspx page to another
example
On the main page I...
|
by: Mehdi |
last post by:
Hi,
I get the following URL on page load:
http://www.server1.com?RedirectUrl=http://www.server2.com?id=777
So QueryString will return (after...
|
by: mohaaron |
last post by:
Hello all,
I'm having a problem using the ReturnUrl parameter while using
FormsAuthentication. If I already have some querystring parameters in...
|
by: Carlos |
last post by:
Hi all,
I would like to have a page that checks for an optional
parameter being passed.
I use the request.querystring("myvar") when the...
|
by: =?Utf-8?B?RVcgTmV3Ymll?= |
last post by:
My apologies in advance if there is a better forum for this question.
Given the following snippet:
<script type="text/c#" runat="server">...
|
by: Doogie |
last post by:
Hi,
I'm writing Javascript code to parse out a query string. I want to
handle the case where a parameter value may not be sent.
So consider a...
|
by: concettolabs |
last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
|
by: better678 |
last post by:
Question:
Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct?
Answer:
Java is an object-oriented...
|
by: teenabhardwaj |
last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
|
by: CD Tom |
last post by:
This happens in runtime 2013 and 2016. When a report is run and then closed a toolbar shows up and the only way to get it to go away is to right...
|
by: Naresh1 |
last post by:
What is WebLogic Admin Training?
WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
|
by: antdb |
last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine
In the overall architecture, a new "hyper-convergence" concept was...
|
by: Matthew3360 |
last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
|
by: AndyPSV |
last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
|
by: WisdomUfot |
last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
| |