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
S

Stephan Pilz

@Stephan Pilz
About
Posts
71
Topics
22
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Problem with jquery.ajax result - auto replaced chars and enclosed in XML - Why ???
    S Stephan Pilz

    I've read the section dataType, before it post my first question. Did you have read my example code? You find the line, where I define the result datatype should be text (and not XML). And I get the same result, if I define the result datatype as HTML. This parameter did work by me and has no effect.

                   \\\\\\|///
                 \\\\  - -  //
                  (  @ @  )
    

    +---------------oOOo-(_)-oOOo-----------------+
    | Stephan Pilz stephan.pilz@stephan-pilz.de |
    | www.stephan-pilz.de |
    | ICQ#: 127823481 |
    +-----------------------Oooo------------------+
    oooO ( )
    ( ) ) /
    \ ( (_/
    \_)

    Web Development javascript html sysadmin xml help

  • Problem with jquery.ajax result - auto replaced chars and enclosed in XML - Why ???
    S Stephan Pilz

    Thank you both for the very nice and very unhelpful message. I'm not a stupid programmer. I know the web ressources and online docus and I can and have read it. And if it would help, I would not post some questions here. All other guys with helpful informations: Please let me know. Thank you

                   \\\\\\|///
                 \\\\  - -  //
                  (  @ @  )
    

    +---------------oOOo-(_)-oOOo-----------------+
    | Stephan Pilz stephan.pilz@stephan-pilz.de |
    | www.stephan-pilz.de |
    | ICQ#: 127823481 |
    +-----------------------Oooo------------------+
    oooO ( )
    ( ) ) /
    \ ( (_/
    \_)

    Web Development javascript html sysadmin xml help

  • Problem with jquery.ajax result - auto replaced chars and enclosed in XML - Why ???
    S Stephan Pilz

    Hello, I've a jquery.ajax call. The result I set on server side is a string containing html fragment (some table rows). But on client side I get the result enclosed in

    <?xml version="1.0" encoding="utf-8"?>
    <string xmlns="http:...>
    

    Here comes my html fragment

    </string>
    

    In addition, in my html fragment each special html character like < or > are replace during the html codings < and > I don't understand why and I don't know, how I can get or extract my original result. Here is my short ajax function:

    function DoAjaxCall(bofg_refid, pc_refid)
    {
    $.ajax({
    type: "GET",
    url: "../Test.asmx/TestCall",
    data: "bofg_refid=" + bofg_refid + "&pc_refid=" + pc_refid,
    dataType: "text",
    success: function(html) {
    alert(html);
    }
    });

    }

                   \\\\\\|///
                 \\\\  - -  //
                  (  @ @  )
    

    +---------------oOOo-(_)-oOOo-----------------+
    | Stephan Pilz stephan.pilz@stephan-pilz.de |
    | www.stephan-pilz.de |
    | ICQ#: 127823481 |
    +-----------------------Oooo------------------+
    oooO ( )
    ( ) ) /
    \ ( (_/
    \_)

    Web Development javascript html sysadmin xml help

  • Access Denied in CreateDirectory with UNC Path
    S Stephan Pilz

    Why on earth, somebody must ask, WHY something must be so as written :( I have my reasons and please note: I'm note the only one with this problem. There are many many pages in the web with this problem and nobody can help. So. BTT The reason is: If you want store documents and I have a web farm, each web server instance need access to each document. Therefore only on web server in the web farm have direct local access to the documents. Each other web server via UNC-Path. The alternative is a copy of each document local inside each web server. That is not acceptable by me, my company and our customers.

                   \\\\\\|///
                 \\\\  - -  //
                  (  @ @  )
    

    +---------------oOOo-(_)-oOOo-----------------+
    | Stephan Pilz stephan.pilz@stephan-pilz.de |
    | www.stephan-pilz.de |
    | ICQ#: 127823481 |
    +-----------------------Oooo------------------+
    oooO ( )
    ( ) ) /
    \ ( (_/
    \_)

    ASP.NET help asp-net com windows-admin question

  • Access Denied in CreateDirectory with UNC Path
    S Stephan Pilz

    Hello together, I have a part in my web project for managing documents. If I upload a file and create the directory for store in with: System.IO.Directory.CreateDirectory(strPathName) it works fine with normal local path like "C:\temp\document". But if the path is a UNC-Path, I get an access denied exception. It does not matter that the UNC-Path is a local path like "\\localhost\Share" or to another computer. I try to use the impersonate feature in web.config: <identity impersonate="true" /> In this case normally ASPNET user is used by IIS and I have set full control access rights for this user to C:\temp directory and all sub dirs. Result: Get access denied exception Than I set user and pass: <identity impersonate="true" userName="domain/user" password="xyz" /> I get access denied too. Last chance was an idea from a guy found in a blog: http://blogs.msdn.com/saurabhkv/archive/2008/05/29/windowsidentity-impersonation-using-c-code.aspx The function runs without an error, but it solves not my problem. I get access denied too. What can I do?

                   \\\\\\|///
                 \\\\  - -  //
                  (  @ @  )
    

    +---------------oOOo-(_)-oOOo-----------------+
    | Stephan Pilz stephan.pilz@stephan-pilz.de |
    | www.stephan-pilz.de |
    | ICQ#: 127823481 |
    +-----------------------Oooo------------------+
    oooO ( )
    ( ) ) /
    \ ( (_/
    \_)

    ASP.NET help asp-net com windows-admin question

  • How create process with visible window on desk from a system process ?
    S Stephan Pilz

    Because the web service is only a wrapper to business logic process and I want to see some trace messages from the BL-process. Store this messages in event log or a log file is not a solution for me. Please don't ask why I do it so, because there is no other way. Please give me hints, tricks or ideas to solve my problem. It's not possible to change the infrastructure. Stephan

                   \\\\\\|///
                 \\\\  - -  //
                  (  @ @  )
    

    +---------------oOOo-(_)-oOOo-----------------+
    | Stephan Pilz stephan.pilz@stephan-pilz.de |
    | www.stephan-pilz.de |
    | ICQ#: 127823481 |
    +-----------------------Oooo------------------+
    oooO ( )
    ( ) ) /
    \ ( (_/
    \_)

    .NET (Core and Framework) csharp windows-admin help question

  • How create process with visible window on desk from a system process ?
    S Stephan Pilz

    Hello together, I start a new process inside a system process (IIS web service) like this:Dim pProcess As New System.Diagnostics.Process Dim sArguments As String = "" pProcess.StartInfo.FileName = "process.exe" pProcess.StartInfo.Arguments = sArguments pProcess.StartInfo.WorkingDirectory = "c:\temp" pProcess.StartInfo.CreateNoWindow = False pProcess.StartInfo.WindowStyle = ProcessWindowStyle.Normal pProcess.Start()
    Process is startet, but the window is not visible on the desk. I think, the problem is the system process as father. If the new process throws an exception, the window is visible. Did anybody know, how I can make the process window visible on the desk? Can be some nice parameters on the process object himself or inside the process (source code is written in VB.NET). Thanks Stephan

                   \\\\\\|///
                 \\\\  - -  //
                  (  @ @  )
    

    +---------------oOOo-(_)-oOOo-----------------+
    | Stephan Pilz stephan.pilz@stephan-pilz.de |
    | www.stephan-pilz.de |
    | ICQ#: 127823481 |
    +-----------------------Oooo------------------+
    oooO ( )
    ( ) ) /
    \ ( (_/
    \_)

    .NET (Core and Framework) csharp windows-admin help question

  • New Message Board Type
    S Stephan Pilz

    Hello, I suggest, create a new message board type for Windows Workflow/Presentation/Communication Foundation only! Don't know, which other board is the correct place for question/hints to this theme. Stephan

                   \\\\\\|///
                 \\\\  - -  //
                  (  @ @  )
    

    +---------------oOOo-(_)-oOOo-----------------+
    | Stephan Pilz stephan.pilz@stephan-pilz.de |
    | www.stephan-pilz.de |
    | ICQ#: 127823481 |
    +-----------------------Oooo------------------+
    oooO ( )
    ( ) ) /
    \ ( (_/
    \_)

    Site Bugs / Suggestions question workspace

  • RaiseEvent inside Workflow Activity
    S Stephan Pilz

    Hello, I want send/raise an event inside a workflow activity. I can't find any example for this. Send an event in the workflow runtime is no problem, but i need the same inside an activity. Stephan

                   \\\\\\|///
                 \\\\  - -  //
                  (  @ @  )
    

    +---------------oOOo-(_)-oOOo-----------------+
    | Stephan Pilz stephan.pilz@stephan-pilz.de |
    | www.stephan-pilz.de |
    | ICQ#: 127823481 |
    +-----------------------Oooo------------------+
    oooO ( )
    ( ) ) /
    \ ( (_/
    \_)

    .NET (Core and Framework) help tutorial workspace

  • Tuning question: JavaScript to generate options inside select
    S Stephan Pilz

    Yes. But (sorry for my stupid answer) I have no time to implement it. Have only time to make the line inside the loop faster. Stephan

                   \\\\\\|///
                 \\\\  - -  //
                  (  @ @  )
    

    +---------------oOOo-(_)-oOOo-----------------+
    | Stephan Pilz stephan.pilz@stephan-pilz.de |
    | www.stephan-pilz.de |
    | ICQ#: 127823481 |
    +-----------------------Oooo------------------+
    oooO ( )
    ( ) ) /
    \ ( (_/
    \_)

    Web Development question javascript sysadmin data-structures help

  • Tuning question: JavaScript to generate options inside select
    S Stephan Pilz

    Hello togetherm I have a self written AJAX-Combobox and I have a tuning problem inside javascript. I get many records from server and will fill a client side combobox (select element) with all records like this:

    for (var i = 0; i < length; i++) {
    	oSel.options[i] = new Option (arrT[i], arrV[i], false, false);
    }
    

    This takes 30 seconds for 3600 array elements (-> 3600 options will be created). Have anybody an idea, how I can create the options very very faster? Thank you very much Stephan

                   \\\\\\|///
                 \\\\  - -  //
                  (  @ @  )
    

    +---------------oOOo-(_)-oOOo-----------------+
    | Stephan Pilz stephan.pilz@stephan-pilz.de |
    | www.stephan-pilz.de |
    | ICQ#: 127823481 |
    +-----------------------Oooo------------------+
    oooO ( )
    ( ) ) /
    \ ( (_/
    \_)

    Web Development question javascript sysadmin data-structures help

  • Howto dynamic call of a method
    S Stephan Pilz

    Thanks for the answer, but I can't find AssemblyContents or TypeContens (or so) in online help msdn. Did you have more informations about that? Objects, Namespace, use of it, ... = Stephan

                   \\\\\\|///
                 \\\\  - -  //
                  (  @ @  )
    

    +---------------oOOo-(_)-oOOo-----------------+
    | Stephan Pilz stephan.pilz@stephan-pilz.de |
    | www.stephan-pilz.de |
    | ICQ#: 127823481 |
    +-----------------------Oooo------------------+
    oooO ( )
    ( ) ) /
    \ ( (_/
    \_)

    Visual Basic help question

  • Howto dynamic call of a method
    S Stephan Pilz

    You are right, but not exactly :) Will make a self written AJAX-call with different parameters. Some parameters describes the call of the method. Please don't panic about the security. Is an internal website with different authorization mechanism. Stephan

                   \\\\\\|///
                 \\\\  - -  //
                  (  @ @  )
    

    +---------------oOOo-(_)-oOOo-----------------+
    | Stephan Pilz stephan.pilz@stephan-pilz.de |
    | www.stephan-pilz.de |
    | ICQ#: 127823481 |
    +-----------------------Oooo------------------+
    oooO ( )
    ( ) ) /
    \ ( (_/
    \_)

    Visual Basic help question

  • Howto dynamic call of a method
    S Stephan Pilz

    Hello, I have a class with many static methods. Now I want call methods from this class during runtime. The name of the method and the parameter names/values are given by string. (Background: The methods contain code for filling comboboxes and I want to write an AJAX-Solution to fill different types of comboboxes initiated by user-click inside a web page) Now I'm in a state of confusion, if that's possible. NOTE: Must be work with Framework 1.1 !!! Can anybody help me, please ? Stephan

                   \\\\\\|///
                 \\\\  - -  //
                  (  @ @  )
    

    +---------------oOOo-(_)-oOOo-----------------+
    | Stephan Pilz stephan.pilz@stephan-pilz.de |
    | www.stephan-pilz.de |
    | ICQ#: 127823481 |
    +-----------------------Oooo------------------+
    oooO ( )
    ( ) ) /
    \ ( (_/
    \_)

    Visual Basic help question

  • Problem with FileInfo.Exist and network access
    S Stephan Pilz

    Hello Ben, An application pool is it not and this is not possible. Your second idea works, but I have also a test for the filelength (System.IO.FileInfo.Length). Did you have an idea to change this part too? Thanks Stephan

                   \\\\\\|///
                 \\\\  - -  //
                  (  @ @  )
    

    +---------------oOOo-(_)-oOOo-----------------+
    | Stephan Pilz stephan.pilz@stephan-pilz.de |
    | www.stephan-pilz.de |
    | ICQ#: 127823481 |
    +-----------------------Oooo------------------+
    oooO ( )
    ( ) ) /
    \ ( (_/
    \_)

    ASP.NET sysadmin help database question

  • Problem with FileInfo.Exist and network access
    S Stephan Pilz

    Hello guys, I have a lot of documents in filesystem of a web server (1). An other web server (2) should offer access to this documents too. That works fine and my generated links to the documents will load the document inside the browser. My problem is, the documents (the name, not the data !!!) and the path are administer in a database and I have a test, if the document exist, before I provide the link. The code for test is follows:

    fi = New FileInfo(strPhysPath)
    If fi.Exists = False Then
      ' do an error message here
    else
      ' generate a link
    end if
    

    For this check I need a physical path and I have it in different ways. As "normal path" (i.e. "x:\documents\pdf\test.pdf"), if the code runs on web server1 (the server, where the documents are stored), as UNC-Path to a shared folder (i.e. "\\server1\documents\pdf\test.pdf") and/or as a network drive path using the shared folder (i.e. "y:\pdf\test.pdf" where y: -> \\server1\documents). The last both variants I must use on web server2 and here I get always: File not exist using the code above. No errors, no execptions. Why? Did anybody have other ideas ? Thank you very much Stephan

                   \\\\\\|///
                 \\\\  - -  //
                  (  @ @  )
    

    +---------------oOOo-(_)-oOOo-----------------+
    | Stephan Pilz stephan.pilz@stephan-pilz.de |
    | www.stephan-pilz.de |
    | ICQ#: 127823481 |
    +-----------------------Oooo------------------+
    oooO ( )
    ( ) ) /
    \ ( (_/
    \_)

    ASP.NET sysadmin help database question

  • iostream issue [modified]
    S Stephan Pilz

    One little bu should be the missing semicolon in the result stream between szServer und "User". c_str() returns a const char*. Maybe the external lib want modify the char* getting through parameter ?

                   \\\\\\|///
                 \\\\  - -  //
                  (  @ @  )
    

    +---------------oOOo-(_)-oOOo-----------------+
    | Stephan Pilz stephan.pilz@stephan-pilz.de |
    | www.stephan-pilz.de |
    | ICQ#: 127823481 |
    +-----------------------Oooo------------------+
    oooO ( )
    ( ) ) /
    \ ( (_/
    \_)

    Clever Code sysadmin debugging help

  • sorting
    S Stephan Pilz

    Dont fill it from System.Data.DataTable. Create a view System.Data.DataView and set the Sort-Property. BR Stephan

                   \\\\\\|///
                 \\\\  - -  //
                  (  @ @  )
    

    +---------------oOOo-(_)-oOOo-----------------+
    | Stephan Pilz stephan.pilz@stephan-pilz.de |
    | www.stephan-pilz.de |
    | ICQ#: 127823481 |
    +-----------------------Oooo------------------+
    oooO ( )
    ( ) ) /
    \ ( (_/
    \_)

    ASP.NET question css algorithms

  • Virus mails
    S Stephan Pilz

    I will inform you, that I get some virus mails in last weeks from sender webmaster@codeproject.com. :mad: I KNOW, THAT THE SENDER IS FAKED!!!, but may be there are some security leaks in CP, that a crawler can collect many real existing mail addresses, because the virus mail was sent to my CP-only-specific mail account. :confused: I'm not infected, thanks to AVG :) Cheers Stephan

                   \\\\\\|///
                 \\\\  - -  //
                  (  @ @  )
    

    +---------------oOOo-(_)-oOOo-----------------+
    | Stephan Pilz stephan.pilz@stephan-pilz.de |
    | www.stephan-pilz.de |
    | ICQ#: 127823481 |
    +-----------------------Oooo------------------+
    oooO ( )
    ( ) ) /
    \ ( (_/
    \_)

    Site Bugs / Suggestions com security

  • Select statement
    S Stephan Pilz

    All 3 expressions for between must be the same datatype. If Rdate is from Type Date you must convert FromData.value and ToDate.value to a Date. This conversion depends on the database system. Look there for more information. If you use SQLServer see in Transact-SQL-Help for command 'CAST', 'CONVERT','BETWEEN' and 'DATETIME'. Regards Stephan

                   \\\\\\|///
                 \\\\  - -  //
                  (  @ @  )
    

    +---------------oOOo-(_)-oOOo-----------------+
    | Stephan Pilz stephan.pilz@stephan-pilz.de |
    | www.stephan-pilz.de |
    | ICQ#: 127823481 |
    +-----------------------Oooo------------------+
    oooO ( )
    ( ) ) /
    \ ( (_/
    \_)

    Visual Basic question database 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