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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
D

David Muir

@David Muir
About
Posts
16
Topics
6
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Child Controls Showing as Null
    D David Muir

    I'm using the Page_Load event on the User Control. What I do at first is a FindControl() on the current control, if its not found, it does a a FindControl() on the page which the control is on. If thats not found, it looks at the Master for that Page and continues to do this until the control is found, or it is the root masterpage. It only seems to find controls outwith the content place hold on the root masterpage or nested content controls. Interestingly, on the Controls collection, it shows the correct number of the page, however some are shown as null. I'm sure the nulls are where my controls I need to find are. Thanks DM

    ASP.NET help tutorial data-structures question

  • Child Controls Showing as Null
    D David Muir

    Hi All, I am currently fighting with a problem with regards to finding controls within ContentPlaceHolders. The scenario is that I want to be able to set the class on a control with a specified ID, which is on one of the Master pages which the page inherits from. There is no limit to how many levels up the tree the control can be, and the code searches recursively until the root master page. This part I have working. :) The issue that I am having is that I can only find a control if it is on the root master page.(I.e. not within a ContentPlaceHolder). If the control is on any other page then FindControl() does not find the control. In this example, the control would only be found if on DefaultMaster. DefaultMaster --> SectionMaster --> PageMaster --> Page.aspx I have investigated further, and found that controls within a Content control are being retured as null, although they clearly exist. Obviously as these are null, FindControl can't find them. I have tried attempting to find a control within the content section also, but I have the same issue. Unfortunately, if you take the above example, then my control would be in SectionMaster, as I dont have access to the root master page. (I'm using Umbraco currently for this project.) Does anyone have any suggestions to how to get these values from content controls? Thanks in advance, DM.

    ASP.NET help tutorial data-structures question

  • Serialization questions.
    D David Muir

    Hi fellow developers. I come with 2 questions today around the area of serialization. I would normally try these things out myself, but I am away from my development machine today and I was wondering you if you could provide some assistance. If you added a new property to an existing class that your web service serializes and returns to clients, would it break for existing clients? If you changed the data type of an existing property of an existing class that your web service serialises and sends to clients, would it break for existing clients? Many thanks, TF

    C# json question

  • SSIS Script Task
    D David Muir

    Hey All, I find myself here asking a question around SSIS which is somewhat out my comfort zone of C# but I have been tasked with some work, and I have came across a problem which I can't seem to over come. I have an SSIS Package which I am calling from the command line so its in the file system. Its encrypted with password etc. When I am logged in under my own domain user name the script executes perfectly. However; there is a network service user our support department has set up to run this job. When I run this package under this new user, the pacakge fails. My package has several tasks, however; the task which appears not to run in the Script task. Again, it runs under my own logon, just no with the service user logon. As a test, I added the service user to the administrator group on the computer the package is running, and the script task worked perfectly. (I think this might be important). I'm guessing I have a permissions issue with my new user. My thoughts are that it cannot execute vb scripts which I believe are internal to SSIS? If anyone has any thoughts, could you please help. Thanks in advance TF

    Database help question csharp sql-server sysadmin

  • Multiple Object Type Serialization
    D David Muir

    Thanks :) Just another quick question which comes from the example; If you had; string ConfigFile = @"c:\MyConfig.cfg"; // Save int a = 1; int b = 2; Stream StreamFile = File.Open(ConfigFile, FileMode.CreateNew); BinaryFormatter binformat = new BinaryFormatter(); binformat.Serialize(StreamFile, a); binformat.Serialize(StreamFile, b); StreamFile.Close(); ... to create the file, when reading back from the file, how can you indentify which int you would be casting back? Cheers TF

    C# json tutorial

  • Multiple Object Type Serialization
    D David Muir

    Hi All, I was wondering if someone could point me in the right direction. I am trying to figure out how to hold multiple object types in a single serialized file. E.g. If i was wanting to save settings class and a person class in a single serialized file, what would be the best method... also, how can you determine and objects type when deserializing the file. Thanks in advance, TF

    C# json tutorial

  • .NET mobile camera
    D David Muir

    The CameraCaptureDialog may be of interest to you. http://msdn.microsoft.com/en-us/library/microsoft.windowsmobile.forms.cameracapturedialog_members.aspx[^] TF

    .NET (Core and Framework) question csharp

  • Maximize and not hide taskbar
    D David Muir

    Thanks :) Manage to figure it out using SystemInformation.PrimaryMonitorMaximizedWindowSize and writing the maximze code by hand. :):)

    C# csharp help question

  • Maximize and not hide taskbar
    D David Muir

    It works to a certain extent... It maximizes the window, however; it also maximizes over the top of the task bar :(

    C# csharp help question

  • Maximize and not hide taskbar
    D David Muir

    Hey all, I am currently in the middle of writing a custom windows form. (.Net 2.0). I have removed the default border from the form, changed this to a Sizable Border and also set the text of the form to blank so to remove the window caption box. I have now added a custom close, minimize, and maximize button to my form. All works well except for the maximize. On clicking this button, i do wish the form to maximize, which it does, however; it also maxmizes over the top of the task bar. How would i go about stopping this, and letting us view the task bar at all times? I could set the size on the window, however; that would still show the resize borders on the form, which i want to be hidden on maximized state. Help would be greatly appreciated. Thanks TF

    C# csharp help question

  • AssemblyInfo Version Number
    D David Muir

    It seems that the revision number is the number of seconds since midnight divided by 2 :) http://msdn.microsoft.com/en-us/library/system.reflection.assemblyversionattribute.assemblyversionattribute(vs.71).aspx[^]

    C# question discussion announcement

  • AssemblyInfo Version Number
    D David Muir

    This is also what i expected... however; I dont understand how it is generated. For example, the application i am currently working on requires it to be displayed. I ran the appplication and the number that was displayed was 1.2.0.19976, I made a couple of changes and ran it again, then the new version number was 1.2.0.20068. I don't understand why it increments so much. :)

    C# question discussion announcement

  • AssemblyInfo Version Number
    D David Muir

    Hi All, I am currently trying to figure out how the [assembly: AssemblyVersion("1.0.0.*")] works. In particular the * part of it. I understand about the Major Number, Minor Number and Build Number. What I don't understand is the Revision Number. As it is * it automatically increments... however; what determines the revision number. I.e. where does it come from? If anyone knows, I'd appreciate your thoughts, Thanks :)

    C# question discussion announcement

  • CSS question ?
    D David Muir

    sadly cant test in ie6, dont have it installed, only ie7 :( it does however work fine in ie7 if thats any help :) TF

    Web Development question css help

  • CSS question ?
    D David Muir

    Sorry, misread your question, thought you meant set a maximum height on the div rather than div to maximum height of window. html { height: 100%; } body { min-height: 100%; height: 100%; } div { height: 100%; min-height: 100%; } (div would be given name of your div) This might work, again not 100% sure. TF

    Web Development question css help

  • CSS question ?
    D David Muir

    Hi, As far as im aware you can just add the following to your css code. Not 100% sure as its been a while since i did web development, but i dont think this can be set in IE. div { max-height: 1000px; overflow: auto; } Many thanks, TF

    Web Development question css help
  • Login

  • Don't have an account? Register

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