Ask a Question related to ASP.NET General, Design and Development.
-
Andreas Klemt #1
Which is faster? Dim dv As New DataView(session("myDataTable")) or CType(session("myDataTable"))
Hello,
let's say my session("myDataTable") is type of DataTable
Now what is faster?
a) Dim dv As New DataView(session("myDataTable"))
b) Dim dv As New DataView(CType(session("myDataTable"), DataTable))
Which should I use and which is better?
Thanks in advance,
Andreas
Andreas Klemt Guest
-
Proj cannot run on LCDS 2.6 ES due to "Unable to resolveresource bundle "datamanagement" for locale "en_US"
hi, all, We have developped an application on Flex Build 3 (run successfully), but failed when we try to deploy it on Tomcat with LCDS 2.5 ES... -
#40542 [NEW]: "ORA-02248: invalid option for ALTER SESSION" on OCIPLogon
From: marvin at chag dot net Operating system: Linux PHP version: 5.2.1 PHP Bug Type: OCI8 related Bug description: ... -
CFINPUT type="radio" w/ "value" requires "label"
On a Flash form, when you specify type='radio' and value='whatever', the value of the 'value' attribute will be displayed as a label if no 'label'... -
How can I "know" the difference between a session timed out and a session that did session.abort?
Any clues? Thanks for your time. Adam -
"Start" "Program" "Menu" list is empty
For what ever reason my list of installed programs in my "Start" "Programs" menu is empty. Anyone know how to restore the list. Thanks for your... -
Steve C. Orr, MCSD #2
Re: Which is faster? Dim dv As New DataView(session("myDataTable")) or CType(session("myDataTable"))
They are both equivalent because the conversion happens whether you specify
it or not.
If you have Option Strict turned on (which every good programmer should)
then only your second example will work anyway so the subject becomes moot.
[url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vblr7/html/vastmOptionStrict.asp[/url]
--
I hope this helps,
Steve C. Orr, MCSD
[url]http://Steve.Orr.net[/url]
"Andreas Klemt" <aklemt68@hotmail.com> wrote in message
news:OOPiA1KUDHA.1688@TK2MSFTNGP11.phx.gbl...> Hello,
> let's say my session("myDataTable") is type of DataTable
>
> Now what is faster?
>
> a) Dim dv As New DataView(session("myDataTable"))
> b) Dim dv As New DataView(CType(session("myDataTable"), DataTable))
>
> Which should I use and which is better?
>
>
> Thanks in advance,
> Andreas
>
>
Steve C. Orr, MCSD Guest



Reply With Quote

