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
J

Johan de Koning

@Johan de Koning
About
Posts
10
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Services on Windows Smartphone
    J Johan de Koning

    Hello, I want to create a background service for my mobile phone which will check if new files are created or changed in a predefined directory. I used the FileSystemWatcher of OpenNetCF but the problem is that when the application lost his focus the watcher is not working anymore. Anyone know how to make a service with .Net or embedded C++? Best regards, WithPit

    Mobile csharp c++ mobile hardware help

  • Managed wrapper and inheritance
    J Johan de Koning

    Hello, I was wondering if the following thing can be managed by using c++. I have two unmanaged classes. Lets call them A and B. Class B inheritance from A. A has a method for example ShowMeSomeText() and method B has another method ShowMeSomeMore() If i want to create a managed wrapper, i will create two new managed classes A and B (ManagedA and ManagedB). ManagedB will have an inheritance of ManagedA. Inside both classes are declarations of the unmanaged object A and B (so ManagedA has a private declaration of unmanaged object A and the same for ManagedB but with object B) Now i want create in for example a C# program a new instance of object ManagedB and want to call the method ShowMeSomeText() (which is from the class A). This will not work correctly because ManagedB will call the method from ManagedA but this will use the unmanaged object A and this will go wrong. How can this be solved? Hope somebody can help me? Thanx

    Managed C++/CLI csharp c++ oop help tutorial

  • Let property builder generate code?
    J Johan de Koning

    Is it possible to create an control that has for example a property which has a (self created) property building screen. In this screen you can set the contains of this property. After closing this screen, this screen will generate some code in te code-behind file. I was hoping someone could tell me if this is possible. With add-ins it could but i want a sexier way. If this is not possible, than can someone tell me if i can make a add-in which will look like the property window in VS.Net?

    C# csharp visual-studio tutorial question

  • Get rid of the & quot; tags
    J Johan de Koning

    I have a string which contains something like this strTest = "alert(\"test\")"; When i want to add this to a onclick event of a button for client-side action, i do this the following way: btnTest.Attributes.Add("onclick", testStr); This all works fine but when i look at the HTML code it is rendered to this: (Without the spaces between & and quot) There are & quot; tags rendered for the \" chars. But i want just that it is rendered like \" because it is sexier and less code to send to the client. Can someone help me with this. BTW, people will answer that i should use ' characters. But i also want to register some XML as an parameter of an javascript function. XML uses " chars and these are all rendered as & quot; So i want also this to be rendered like \" or i want a way to get " in the XML rendered like \' to the client Thanx

    ASP.NET javascript html css xml help

  • How to stop rendering to browser when input is correct
    J Johan de Koning

    if have solve this problem by making an property in the PageBase which can be true or false. I called the property RebuildPage. By default this is false and if i want the page to be restored i set it to true. The render method of the Pagebase is changed to this protected override void Render(HtmlTextWriter writer) { if(!Page.IsPostBack || this._rebuildpage != false) { base.Render(writer); } } When at the save method there goes something wrong, i just set RebuildPage to true and the page will be rendered. Otherwise i can just generate a close screen script

    ASP.NET help javascript css database winforms

  • Render code from control designer in code-behind
    J Johan de Koning

    I am creating a toolbar which has a simple designer interface where you can define the toolbar buttons. The code of the buttons is set into the aspx file by default. My question is, is it possible to generate C# code so that the buttons are rendered in the code-behind file? Thanx

    ASP.NET question csharp

  • problem with modal dialog
    J Johan de Koning

    Make a sort of modal page container which has an iframe on it. In this iframe you will load your page. Then the submit option will work correct.

    ASP.NET help html tools question

  • How to stop rendering to browser when input is correct
    J Johan de Koning

    I'm making an webapplication which is using a lot of modalpages. By this way it just works like a normal application. Because this application is running on the internet, performance is an big issue. We want to keep the trafic to client and server as small as possible. We have build some user controls to render content by javascript to make the data overhead as less as possible. Now i was thinking about the way the pages are processing in my application. And i mean the modal pages. And i came to the following - Server rendering page - Send page to client - Client inputs page - Page is send back to server - Input is processed - Page is again rendered at the server (now as a postback page, where a closing javascript is put to the end of the road) - Page is sended again to the client where it will be closed by the javascript After the input of the client and the second time the page is rendered, there is a lot of data overhead. I want only the javascript to be rendered to the page. I started to make an PageBase which is derived from Page object and where all the modal pages will be build on. But i get some problems with it. In the PageBase render function i do the following thing protected override void Render(HtmlTextWriter writer) { if(!Page.IsPostBack) { base.Render(writer); } } This is working fine and i can read the information in the Save Method of a page which is based on this class and the close the page. But this solution is not perfect because when i want to use validators which are working server side, then i should rebuild the page. I can extend the Render code by validating the page and if the page is not valid i can render the content to the server with base.Render(writer) but this render function is after the save method and so i had to validate the page two times (in the render method and in the save method) And an other thing is that we have a try and catch in the save method to catch database exception or something else where we want the page also to be rebuilded so that the user can try it again posting his input without the page being closed and the input being lost. So my point is, is there someone who has a solution for my problem(s). I know that i can render all the controls at runtime and do not rendering them at postback time but we want design and programming logic to be seperated. I hope somebody can help me. If you want more information about my problems (because you don't understand it all the way which can be possible

    ASP.NET help javascript css database winforms

  • How to transfer an array of data (retrived from database at server side) to client side variables?
    J Johan de Koning

    Simple solution is to use a postback in ASP.Net and then get the items for the other listbox Other solution is to create an asp.net page which generates XML. XML can be loaded by javascript at the client side. And then you can change the entries of the second box. A thing i have to warn you is that the Viewstate will not work because the items are not set runtime. But you can still use Page.Response["ddlName"] tot get the selected one. The last solution is very sexy i think. Maybe i will write my first article about this. :-D

    Web Development tutorial database sysadmin data-structures question

  • Question about multiple threads
    J Johan de Koning

    I have the following situtation In my program i want to do request an dns lookup for several servers. How many servers are variable and are listed in a string array. Now i want to request the dns lookup not after each other but i want to do them in threads. So that not one dns lookup is waiting before the other is ready. From each dns lookup thread i want the IPaddress as return value. And after all i want my program to continue after all threads are stopt. So a quick summary - Program start - List of servers is in array list (for example 10) - Starts 10 threads with the server to check as parameter - Get response of the threads (and keep them in memory) - Continue with program after all threads are done I hope someone can help me with this. I search a lot about Threads but havend found a clear solutions for this problem. And if you think you had an other/better solution without threads, please reply also. Thanx

    C# help sysadmin data-structures performance tutorial
  • Login

  • Don't have an account? Register

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