Clay Nichols
Clay Nichols

Reputation: 12139

Which is faster (in browser rendering): Include() or Server.Execute() of an .aspx script?

I've got a small cookie-leaving aspx script.

I'm wondering if it's faster to just do it as an

or Server.Execute (same script)

or does it not matter?

Upvotes: 0

Views: 70

Answers (1)

Aghilas Yakoub
Aghilas Yakoub

Reputation: 29000

Server.Execute should cause the server to cache the script bytecode once, which means, theoretically, you should realize a net performance increase as compared to simply extending a running script with include.

Upvotes: 1

Related Questions