Search results for query: *

  1. K

    Logging Strategy

    I'm just curious what others are doing in terms of logging things in your code. For example, we log all errors to a table. We also log major code branches, like "Process XYZ - Start", "Process XYZ - Stop", and things like that. But we're starting to run into situations where it seems like we...
  2. K

    Listview Itemactivate stops working

    I have two forms frmA, frmB. I have a listview on frmA with a couple items with tags. In the listviews Itemactivate event I get the FocusedItem's tag and open frmB. Everything works fine until I close frmB and come back to frmA. The original item is still selected but the Itemactivate no longer...
  3. K

    Event versus Method Call

    I have a timer on a form with an interval of 1 second. I want to have each of my other classes do something (which should take far less than 1 second) on every timer tick. Is there any benefit to having my Timer Tick event raise an event that my objects respond to (or have them response to the...
  4. K

    File menu bug?

    In VS2005 and VS2008 IDE's, when I click on File in the menu, there's a long delay (like a DLL loading or whatever) and then nothing happens. So I have to click the File option again for the menu to actually display. Seems like a bug to me. Anyone else experience this? - Kane
  5. K

    Value of Extension Methods

    Why would I use an extension method instead of just creating non-extension sub or function? For ex, I could have an extension function called IsNullOrEmptyOrAllSpaces on String, which does a check as its name implies. Or I can write a stand alone function that does the same thing. Other than...
  6. K

    Question Remote Debugging

    How common is remote debugging ASP.NET apps? Our app is "settings-intense" so it's really hard to debug during UAT because so many settings (app settings stored in SQL) may be different between Dev and Stage. Our web server guys though are giving us grief, as if this is something unusual for us...
  7. K

    Question Property evaluation

    I'm trying to decide whether to get a value, call it X, in my class through a read only property or through a function. Normally I'd code it as a property except in this case the GET involves doing a lookup to a sql table. So there's way more overhead than a simple RETURN X. So my question...
  8. K

    Can't Debug File-system website

    VS2005/ASP.NET2.0/XPPro - Trying to debug a file-system website (not project - i.e. no proj file) locally. All my code is from an existing site that WAS an HTTP site that I had no debug problems with this morning - so all the usual debug settings, etc are in place. And breakpoints are in...
  9. K

    File System versus HTTP

    Doing ASP.NET sites using VS2005. I know the differences between File System and HTTP websites. And I've read several benefits of each, including on MSDN. But nothing I've read mentions what seems to me the obvious problem with going with HTTP...any workstation using WinXP onward will have IIS...
  10. K

    Supporting Multiple Versions

    Just wondering how folks support multiple versions of their asp.net web apps, especially for testing. We have a single stage/test web server. We have V1 of an app in production and are user testing V2 on the stage server. If we find a bug in V1, make a fix, and want to test before putting...
  11. K

    Question Object Property question

    I have an object with three properties, A, B, and C. If A = 1 and B = 2 (for ex. I set them from a db in the object's New routine.) and C is a Readonly property = A + B. Is the addition in C done when the object is being created, or only when the property C is accessed in code somewhere...
  12. K

    Question Code Highlighting

    You know how when you're coding an aspx page, if you click on an opening tag, the closing tag is bolded. Is there a similar feature for code in the code behind? I think it'd be useful if for example I click on an "IF" its matching ELSE/THEN bolded. TIA
  13. K

    Web Service and SQL connections

    I'm providing a web service to other apps. It basically does some simple checking, starts up a Subroutine asynchronously, then returns to the calling app. The Sub that's called does quite a few things including several SQL reads, inserts, call other Subs that do SQL calls, etc. Things work...
  14. K

    How to Pass a Page to a function in the code behind

    I have several aspx pages that display the same 75+ fields (but each page has different functionality). I also have an object "MyRequest" to contain the field values so that I can do various other things including saving to tables. Instead of repeating the code to load MyRequest from the page...
  15. K

    Structures vs Classes

    I know about and have used plenty of structures and classes. I've also read about value types vs reference types, stack vs. heap. Aside from the various differences in features, are there performance benefits to using one versus the other? I have a few large objects, say 50+ fields/properties...
  16. K

    Find datatype of Structure fields

    I have a simple structure, say Structure layout Dim X as String Dim Y as Integer End Structure I want to use Reflection to get the datatype of the fields. I know I can do something like below to get the field, but I can't seem to get the datatype of the field. Dim valObj As...
  17. K

    My.Settings question

    Does anyone know if my.settings values are loaded at runtime? Or are they read from the settings file when needed? I have an app with around 100 settings, and I'd like to know if there's any benefit to loading the settings into variables vs. just grabbing them with the settings object...
  18. K

    Assemblies in web.config

    I can't seem to find any info on this...does the # of assemblies listed in web.config affect performance of an app at all? Our standard file at work lists things like Windows.Forms, System.Drawing, etc, none of which are actually used in our master pages, etc. So I'm guessing removing these...
  19. K

    Accessing Structure members

    Is there a way to access members of a structure without knowing the member name? E.g.: (pseudo code of course) Structure MyStr dim Mem1 as string dim Mem2 as string ... dim Mem75 as string End Structure dim astruct as New MyStr... 'populate astruct from 75 form fields... 'now get all the...
Back
Top