Re: [ADVANCED-DOTNET] ASP.NET calling into VB COM loses applicatoin-user context

2006-11-06 Thread Ryan Parlee
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

[ADVANCED-DOTNET] ASP.NET calling into VB COM loses applicatoin-user context

2006-10-20 Thread Ryan Parlee
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

Re: [ADVANCED-DOTNET] Using reflection to enumerate static fields

2006-08-03 Thread Ryan Parlee
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

[ADVANCED-DOTNET] Using reflection to enumerate static fields

2006-08-03 Thread Ryan Parlee
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

[ADVANCED-DOTNET] Compiled Regular Expressions

2004-04-29 Thread Ryan Parlee
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

[ADVANCED-DOTNET] Creating a delegate from reflection information

2004-03-02 Thread Ryan Parlee
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

Re: [ADVANCED-DOTNET] Paged result sets using ADO.NET and SQL Server

2004-01-23 Thread Ryan Parlee
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'

[ADVANCED-DOTNET] Paged result sets using ADO.NET and SQL Server

2004-01-22 Thread Ryan Parlee
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

[ADVANCED-DOTNET] ASP.NET Caching Issue

2003-10-14 Thread Ryan Parlee
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