Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Ryan Parlee
Sent: Friday, October 20, 2006 6:58 AM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: [ADVANCED-DOTNET] ASP.NET calling into VB COM loses
applicatoin-user context
Hello,
I have an ASP.NET application t
Hello,
I have an ASP.NET application that needs to call into a VB6 component
(for which I cannot modify). This VB6 component reads a ProgId from a
configuration setting and instantiates and calls my .NET CCW object.
The problem is that when the call from the VB6 COM object to the .NET
component i
using GetValue()
IdDef idDef = (IdDef) field.GetValue(null);
Console.WriteLine("id:{0}, hasA:{1} hasB:{2}",
idDef.Id, idDef.HasA, idDef.HasB);
}
FieldInfo.GetValue() did the trick.
Thanks, Ryan
-Original Message-----
Fr
I have the following classes:
public class IdDef
{
public IdDef(int id, bool hasA, bool hasB)
{
this.Id =id; this.HasA = hasA; this.HasB = hasB;
}
public int Id;
public bool HasA;
public bool HasB;
}
public class Ids
{
privat
If I use RegexOptions.Compiled, the regular expression is compiled to an
assembly. When will this assembly be destroyed? Upon termination of the
application?
If I am using this regular expression in a loop, would it be best to compile
the expression? What determining factor should I use to know
I am wanting to create a delegate at runtime using reflection but am unable
to get this working. Specifically, I would like to something like this:
foreach (MethodInfo mi in this.GetType().GetMethods(BindingFlags.Instance))
{
myDelegate = new MyDelegate(mi.MethodHandle)
myArray.Add(myDelegat
Thank you all for your input. I have read through all the emails and links
and now have a better way to accomplish paged result sets with ADO.NET and
SQL Server. I still feel like I'm waiting for Microsoft to chime in and let
us know about the top secret __UNDOCUMENTED_ROWNUM virtual column. It'
Does anyone know of an efficient way to page result sets with ADO.NET and
SQL Server?
Why the heck doesn't SQL Server support a feature similar to Oracle's
ROWNUM?! Does Oracle have this patented?
The best thing I have come up with so far is to 1) establish a rule that
every table (at least thos
When I programmatically set the HttpCachePolicy, ASP.NET also appears to
OutputCache the page. However, I can't find a way to set different aging
parameters for the server and client caches. What I need is to be able to
tell browsers to cache the response for 30 days, but have ASP.NET only cache