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
K

Kir Birger

@Kir Birger
About
Posts
30
Topics
13
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Animations with reusable resources (StaticResource / DynamicResource)
    K Kir Birger

    Is there a way to create an animation for, say, colors that you have defined by name somewhere? I get an error when I try to assign something like

    WCF and WF help question

  • Inverted text on image
    K Kir Birger

    Is it possible to somehow draw text on an image with an inverted color? I basically want to make a small timestamp that always shows up, and I don't want to resort to putting it in a colored rectangle if I can avoid it. I've got access to framework 3.5 if that helps.

    C# question

  • Can templated controls define tags for sub components?
    K Kir Birger

    What I want to do is create a templated control to display two dropdowns in different ways. The dropdowns will be doing the same thing, but must look different on different pages. I'm going for something like this: <mycontrols:cascadingdropdowns> <controltemplate> <div>***<dropdown1 />***</div> <div>***<dropdown2 />***</div> </controltemplate> </mycontrols:cascadingdropdowns> where Dropdown1 and Dropdown2 are some properties of type DropDownList. Can anyone tell me if this is possible? I have gotten up to the point of creating the ControlTemplate property with type ITemplate, andthat works, but I am not sure how to go about making it so I can have the dropdown1 and 2 properties

    ASP.NET tutorial question

  • "Save Password" on asp.net mobile pages?
    K Kir Birger

    My boss wants our mobile page to have a save password checkbox that will load your last used username and password into the appropriate input fields on the login page from your cookie. This is all well and good, except that asp.net does not want you to preset password fields period. Nor does it want you to use <% %> tags to enter html into your page. IS there a way to do this?

    Mobile csharp html asp-net question

  • TcpChannel Remoting - Proxy Possible?
    K Kir Birger

    I've used sinks, but to my knowledge the last sink on the client side is the Transport Sink, and that cannot be customized or overridden.

    C# com question

  • TcpChannel Remoting - Proxy Possible?
    K Kir Birger

    I found a bit of code that allows you to add a webproxy to an HttpChannel (http://dotnetjunkies.com/WebLog/chris.taylor/archive/2004/01/24/6050.aspx) but even this approach would not work for TcpChannel. Is there some other way to implement a proxy functionality on a tcp channel?

    C# com question

  • Remoting Sinks - appending to message properties
    K Kir Birger

    My goal is to append a session id to the messages the remoting client sends out. I have the following code in my client that adds a sink to the client channel: BinaryClientFormatterSinkProvider provider = new BinaryClientFormatterSinkProvider(); provider.Next = new ClientSinkProvider(); IChannel chan = new TcpClientChannel("SADeskSession", provider); ChannelServices.RegisterChannel(chan); ClientSinkProvider is my provider class that creates a sink that implements IclientChannelSink and IMessageSink. in the processMessage method on this sink, I have it appending something to the message's Properties object, however, the serverside sink cannot read this as it should. I must be missing some nuance, as I am a complete novice to remoting. Can someone put me on the right direction? I'm basing this off this article, but my needs are simple enough that I don't need classes as robust as the ones in the article. http://www.codeproject.com/csharp/customsinks.asp

    C#

  • Remoting and Datasets
    K Kir Birger

    Thanks for your response. I looked at your solution and it may work well enough for files, but in serialization and compression it's really the file type that matters. You created a pseudo-schema, which is almost like a dataset in itself. I'm just trying to find the quickest way to do it. The problem with the Surrogate that MSDN suggests is the large overhead to get to it. A simple object[][] (light but a pain to use) outperforms DataSet and DataSurrogate (zipped and unzipped) significantly on a small number of rows, but as the actual size increases, the difference fades.

    .NET (Core and Framework) wcf com xml question discussion

  • Remoting and Datasets
    K Kir Birger

    http://support.microsoft.com/kb/829740 This article would have you use a wrapper class that serializes more nicely than DataSet, and in fact it really does halve the size of the dataset (in serialized form). However, the time it takes to serialize a decently sized dataset 100 times to the time it takes to serialize the surrogate 100 times is 6 seconds to 30... Nonetheless it seems like the overall consensus is that it's good to avoid sending DataSets across remoting and soap. What are your thoughts and solutions on the matter?

    .NET (Core and Framework) wcf com xml question discussion

  • C# SetEnvironmentVariable
    K Kir Birger

    I've tried a few variations of that SendMessage attempt...

    C# csharp question workspace

  • C# SetEnvironmentVariable
    K Kir Birger

    Then how do i Change the actual values? I've also tried changing them via registry and making a sendmessage call to 'update' them, but it didn't work.

    C# csharp question workspace

  • Code explain...
    K Kir Birger

    Can you clarify your question? It filters the string, removing opening parens and brackets, and replacing the closing ones with ';', then it removes all the spaces. StringTokenizer iterates through the string, treating it kind of like a list broken up at the semicolons.

    C# database game-dev

  • C# SetEnvironmentVariable
    K Kir Birger

    Very odd... Doing that I get an error on this line: envObject["PATH"] = sPath; Error reads: Unable to cast COM object of type 'System.Management.WbemDefPath' to interface type 'System.Management.IWmiSec'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{2FD73A3B-64B3-480D-AEE9-54469D77123E}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).

    C# csharp question workspace

  • C# SetEnvironmentVariable
    K Kir Birger

    It's integrated into VS2005, but I tried that anyway=). importing that is the same as doing Environment.SetEnviornmentVariable()

    C# csharp question workspace

  • C# SetEnvironmentVariable
    K Kir Birger

    Is there some trick to using this method? I looked up code samples and they are all just one line: Environment.SetEnvironmentVariable(strName, strValue); Yet when I do it, nothing is changed... I'm trying to modify the PATH variable by the way

    C# csharp question workspace

  • .net applications in .jpg files?
    K Kir Birger

    At the moment I have to reinstall something on each computer, so I'll be configuring it from the start. All i have to do is go into the script configuration and change my image files to have the same settings as aspx files? i don't have to change the mime types?

    C# csharp windows-admin tutorial question

  • .net applications in .jpg files?
    K Kir Birger

    that didn't seem to do anything. (i tried changing it between image/png and text/html)

    C# csharp windows-admin tutorial question

  • .net applications in .jpg files?
    K Kir Birger

    i registered both .jpg and .png the same as .aspx in the method mentioned above, but it still does not respond. the page itself returns an image and only an image (if you look at the source / hex) so i don't see what the problem is

    C# csharp windows-admin tutorial question

  • .net applications in .jpg files?
    K Kir Birger

    Firefox: The image “http://localhost/DynamicImage/image.png” cannot be displayed, because it contains errors. Iexplore: <%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="DynamicImage.WebForm1" %> http://kbirger.no-ip.org/kir/image.png http://kbirger.no-ip.org/kir/WebForm1.aspx ^ that's the working version

    C# csharp windows-admin tutorial question

  • .net applications in .jpg files?
    K Kir Birger

    i tried this and it doesn't seem to be working. i think it has something to do with content-type. in the code-behind i have to specify the content type to be image/jpg (or image/png) so that browsers like mozilla recognize it, is there a way to specify content type in the page directive?

    C# csharp windows-admin tutorial 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