Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
E

eidylon

@eidylon
About
Posts
9
Topics
5
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Custom object Collections and ViewState
    E eidylon

    Hi, I dont know if this is unworkable for you or not, but here is how i addressed this problem. I thought about making my class so it would support serialization and all to be easily savable to the viewstate, but then i realized... if you serialize you collection out to the viewstate, then with each transmission back and forth, the page will be retransmitting the whole collection of data. So instead, i stuck my collection in a session variable. Then, to make it easy to access i created a property on my pages so they could just reference Me.MfgList which would return the list. So here is my code in abbreviated form: Public Class AppPageBase Inherits System.Web.UI.Page    Protected Readonly Property MfgList As clsMfgList     Get       Return CType(Session("mfglist"),clsMfgList)     End Get   End Property End Class Then all my pages inherit from AppPageBase instead of from System.Web.UI.Page directly. You can load your list into the session variable in the Session_OnStart event in global.asax. This same method is a great way to provide easy access to lots of other app-specific custom data.

    ASP.NET tutorial question

  • a Diff component?
    E eidylon

    Anyone know of a Diff component (like WinDiff, WinMerge, Araxis Merge, et al) which i can use to compare files, which preferably ALSO has support for reading from streams, not just from disk files? Thanks in advance, - Eidolon.

    .NET (Core and Framework) question

  • Dynamic Reference Locations?
    E eidylon

    I know you can make web-references dynamic, which then only need a small change in the web.config file to repoint them to the new location you want to look at. My question is, can you do something aking to this with regular (non-web) references? Perhaps using the web/.config file, or a manifest file or something? We are looking to create a central library directory where we can keep our common libraries for access from any machine which needs them. One consideration was 2K's Distributed File System, but that is an awful lot of complications, especially since it means getting our domain administrators involved. So i was thinking there might be an easier way by being able to just put in a line which tells the app where to look for the reference at run-time. yes?? Thanks in advance.

    .NET (Core and Framework) question

  • Memory Persistance?
    E eidylon

    I am using the PalmOS 5 Simulator on my system, and it works great. The only problem is everytime i close it it loses all and any settings i have set. I belive this is because it simply keeps the "Palm" memory in RAM while the application is running, and once it ends it vanishes altogehter. I am wondering if there is an app which will, when i close the simulator, allow me to save its current used memory on the PC to a disk file, and then next time i load the simulator it would reload the memory, and let me pick up working on the "Palm" where i had left off last time i used it. Is there an application to persist memory like this? Thanks in advance.

    System Admin performance help question

  • Lazy Evaluation ternary op?
    E eidylon

    I know MS (FINALLY) added in lazy evaluation versions of And (AndAlso) and Or (OrElse). Have they perchance introduced a lazy eval version of the ternary-operator function (Iif)? Thats one thing i sorely miss from the C/Java world is the nice ?: operator. Iif can sort of emulate it, but Iif always evaluates both conditions (true AND false)... where as the ?: one only evaluates which ever one is selected by the condition. The Non-Lazy Iif is all but useless for the most very simplest simplest basic cases. Thanks in advance

    Visual Basic java question announcement

  • C# Bitwise Operators?
    E eidylon

    Ahh..... so the directory check then in fact actually *SHOULD* be an AND and i dont just have some messed up compiler? Thats Very good to know.... now i can feel safer about my sanity :)

    C# csharp json question

  • C# Bitwise Operators?
    E eidylon

    Oh well, must be some 'feature' to make logic easier for..... someone. *shrug* Thanks anyway. At least it works, even if it IS backwards (in my case). By the way, which epsidoe is your Data quote from in your sig?

    C# csharp json question

  • C# Bitwise Operators?
    E eidylon

    Well, i dont think so, but its not mostly my code. To make my CRC32 ColumnHandler i took the ColumnH code from the first project below, and just dropped in the CRC32 class from the second one in place of the MD5 code. The only other changes i made (which is where i had the & vs. | problem) Is below... http://www.codeproject.com/csharp/ColumnHandler.asp http://www.codeproject.com/csharp/crc32\_dotnet.asp In the implementation of GetColumnInfo i changed the column title and description and then: psci.fmt=LVCFMT.RIGHT; psci.cChars=40; psci.csFlags=SHCOLSTATE.TYPE_STR; to psci.fmt=LVCFMT.LEFT; psci.cChars=40; psci.csFlags=SHCOLSTATE.TYPE_STR & SHCOLSTATE.ONBYDEFAULT & SHCOLSTATE.SLOW; The last line setting csFlags is where i had problems. When i tried to use the OR (|) it consistently hung. But when i use the AND (&) it works just beautifully with the right results and all. Then what threw me off even more was a line (unchanged) in GetItemData which reads: if(((FileAttributes)pscd.dwFileAttributes|FileAttributes.Directory)==FileAttributes.Directory) Where the original author is checking the flag with an OR. This is all quite backwards from what i know of bit-wise logic. Any explanations or ideas why this is?

    C# csharp json question

  • C# Bitwise Operators?
    E eidylon

    Okay, im really a bit baffled here. I am putting together some code from two different samples on here, to make a WinZip-compatible CRC32 ColumnHandler for explorer, to make my work go easier. The code uses a bit-field for a WinAPI call. Now, i was always taught that if you have a bit-field, and you want to set one of the flags in it on, then you OR them together, and if you want to check if a field has a particular flag on, then you AND them. So i tried this, and it crashed my devenv process. So, just for kicks, i tried reversing them, and low-and-behold, it works! C#:OR apparently is equal to the rest of the world's, AND. C#:AND apparently is equal to the rest of the world's, OR. at least bitwise. Did Microsoft actually get so bold as to decide to rewrite the laws of logic? :omg: This is absolutely bizarre.

    C# csharp json question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups