Call Notepad from aspx

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Call Notepad from aspx

    No Java required here.

    Check out:
    [url]http://www.devx.com/dotnet/Article/7914/0/page/2[/url]

    Also look at the System.Diagnostics.Process
    namespace. .Net has all the functionality you'll need.

    Tim Stall
    >-----Original Message-----
    >How can I get a button on the ASPX returned HTML to open
    a local txt file
    >for edit?
    >I need the txt document to be editable from the client
    (txt file is on the
    >client machine) and not launch in the browser, but
    instead launch notepad.
    >I am sure that will require Java, so can someone post a
    snippet that would
    >help me on that venture?
    >
    >Thanks!
    >Troy
    >
    >
    >.
    >
    Tim S. Guest

  2. Similar Questions and Discussions

    1. passing a token from pageA.aspx to pageB.aspx
      I am trying to get pageA.aspx gridView to pass a key (say deptID) to pageB.aspx which will use the value passed as a filter in it's own griView...
    2. InDesign CS HELP comes up as a HELP.HTML in NOTEPAD
      Clicking on InDesign CS HELP (or F1) brings up a help.html file in Notepad. It works OK in the other components of CS. ??? What to do? Is this...
    3. Prints to ASC II in Notepad?
      I have Windows XP; Acrobat 6.0. It has been behaving strangely lately. If I click on print to PDF it prints to Notepad in ASC II. I then have to open...
    4. I need a nice PHP notepad program
      Hello ng, I'm currently doing my PHP work in Notepad. It works, but I was wondering if there's a software program around that would aid me in my...
    5. Notepad Question
      I want to use the new feature of Notepad in XP, "Go to". The option is always grayed out. I really wan this feature. How do I get it to work.
  3. #2

    Default Re: Call Notepad from aspx

    It needs to be at the client side. I don't expect the clients to have the
    ..NET framework. My interpretation of the article you directed me to is an
    article to wait for an external process at the server to complete.

    Requirement: I need to add a links or buttons to the HTM file that is
    generated on the fly that will open text documents in notepad for edit. I
    will also need to open a PDF in the full version of acrobat (if installed on
    the client) so comments can be added to that document. I assume this will
    require java script to launch a specific application or application by
    association. Can anyone please point me to a sample solution of doing
    something like this?

    Troy

    "Tim S." <timstall@hotmail.com> wrote in message
    news:00f801c34a2e$61279180$a401280a@phx.gbl...
    > No Java required here.
    >
    > Check out:
    > [url]http://www.devx.com/dotnet/Article/7914/0/page/2[/url]
    >
    > Also look at the System.Diagnostics.Process
    > namespace. .Net has all the functionality you'll need.
    >
    > Tim Stall
    >
    > >-----Original Message-----
    > >How can I get a button on the ASPX returned HTML to open
    > a local txt file
    > >for edit?
    > >I need the txt document to be editable from the client
    > (txt file is on the
    > >client machine) and not launch in the browser, but
    > instead launch notepad.
    > >I am sure that will require Java, so can someone post a
    > snippet that would
    > >help me on that venture?
    > >
    > >Thanks!
    > >Troy
    > >
    > >
    > >.
    > >

    Troy Murphy Guest

  4. #3

    Default Re: Call Notepad from aspx

    It needs to be at the client side. I don't expect the clients to have
    the .NET framework. My interpretation of the article you directed me to
    is an article to wait for an external process at the server to complete.

    I need to add a links or buttons to the HTM file that is generated on
    the fly that will open a text document in notepad for edit. I will also
    need to open a PDF in the full version of acrobat (if installed on the
    client) so comments can be added to that document. I assume this will
    require java script to launch a specific application or application by
    association. Can anyone point me to a sample solution of doing
    something like this?

    Troy


    *** Sent via Developersdex [url]http://www.developersdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Troy Murphy Guest

  5. #4

    Default Re: Call Notepad from aspx

    The main problem is that this is a security violation. Do you want web
    sites taking control of your computer and launching programs
    indiscriminately? I know I don't. That's why browser security settings
    usually prohibit this.
    If the browser security settings have been adjusted to allow this, then you
    could use a WSH script or a COM CreateObject command to launch a client side
    app.
    To adjust the browser security, the setting you'll most likely need to
    adjust can be found on the Internet Options dialog under the Tools dropdown
    menu in Internet Explorer. Go to the security tab. With local Intranet
    selected (assuming this is an intranet app), click the "Customize Level."
    button. Find the setting titled "Initialize and script ActiveX controls not
    marked as safe" and change the selection to either "enable" or "prompt."

    --
    I hope this helps,
    Steve C. Orr, MCSD
    [url]http://Steve.Orr.net[/url]


    "Troy Murphy" <troy@solutionsoft.cc> wrote in message
    news:%23mjg0HiSDHA.212@TK2MSFTNGP10.phx.gbl...
    > How can I get a button on the ASPX returned HTML to open a local txt file
    > for edit?
    > I need the txt document to be editable from the client (txt file is on the
    > client machine) and not launch in the browser, but instead launch notepad.
    > I am sure that will require Java, so can someone post a snippet that would
    > help me on that venture?
    >
    > Thanks!
    > Troy
    >
    >

    Steve C. Orr, MCSD Guest

  6. #5

    Default Re: Call Notepad from aspx

    I guess that makes sense. So, how can I allow the browser to open content
    for edit? I suppose I cannot use an edit region on an HTML page without the
    IIS engine?

    I know this question goes a bit beyond the scope of this newsgroup, but the
    need is derived from an ASP.NET solution.

    This is the requirement:
    The user connects to our web application to generate an HTML file and a
    series of PDF documents. These are are then transfered to a removable media
    that will then be opened from workstations that do not have network
    connections. These computers are controled and custom applications are
    restricted. The HTM file generated contails a link to the PDF, a
    description of the document, and a comment section. The user needs the
    ability to update this information so the changes can later be migrated back
    to our web site. How can I accomplish this?

    Troy

    "Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
    news:uLdxPdjSDHA.2480@tk2msftngp13.phx.gbl...
    > The main problem is that this is a security violation. Do you want web
    > sites taking control of your computer and launching programs
    > indiscriminately? I know I don't. That's why browser security settings
    > usually prohibit this.
    > If the browser security settings have been adjusted to allow this, then
    you
    > could use a WSH script or a COM CreateObject command to launch a client
    side
    > app.
    > To adjust the browser security, the setting you'll most likely need to
    > adjust can be found on the Internet Options dialog under the Tools
    dropdown
    > menu in Internet Explorer. Go to the security tab. With local Intranet
    > selected (assuming this is an intranet app), click the "Customize Level."
    > button. Find the setting titled "Initialize and script ActiveX controls
    not
    > marked as safe" and change the selection to either "enable" or "prompt."
    >
    > --
    > I hope this helps,
    > Steve C. Orr, MCSD
    > [url]http://Steve.Orr.net[/url]
    >
    >
    > "Troy Murphy" <troy@solutionsoft.cc> wrote in message
    > news:%23mjg0HiSDHA.212@TK2MSFTNGP10.phx.gbl...
    > > How can I get a button on the ASPX returned HTML to open a local txt
    file
    > > for edit?
    > > I need the txt document to be editable from the client (txt file is on
    the
    > > client machine) and not launch in the browser, but instead launch
    notepad.
    > > I am sure that will require Java, so can someone post a snippet that
    would
    > > help me on that venture?
    > >
    > > Thanks!
    > > Troy
    > >
    > >
    >
    >

    Troy Murphy Guest

  7. #6

    Default Re: Call Notepad from aspx

    Hello Troy,

    Using System.Diagnostics.Process can't work as you want since it only launches application in server side and maybe in
    another desktop since asp.net is a service program.

    The method I could think of is to use Client side script to do so. In asp.net, you could use Page.RegisterStartupScript Method
    to allow ASP.NET server controls to emit client-side script blocks in the Page. For how to write such scripts, you could post
    the question in public.scripting group.

    You could also refer to [url]http://www.whirlywiryweb.com/q%2Flaunchinie.asp[/url] for another method. Hope it helps.

    Best regards,
    Yanhong Huang
    Microsoft Online Partner Support

    Get Secure! - [url]www.microsoft.com/security[/url]
    This posting is provided "AS IS" with no warranties, and confers no rights.

    --------------------
    !From: "Troy Murphy" <troy@solutionsoft.cc>
    !References: <#mjg0HiSDHA.212@TK2MSFTNGP10.phx.gbl> <uLdxPdjSDHA.2480@tk2msftngp13.phx.gbl>
    !Subject: Re: Call Notepad from aspx
    !Date: Tue, 15 Jul 2003 10:06:14 -0700
    !Lines: 66
    !X-Priority: 3
    !X-MSMail-Priority: Normal
    !X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
    !X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
    !Message-ID: <ORXOpNvSDHA.1684@TK2MSFTNGP11.phx.gbl>
    !Newsgroups: microsoft.public.dotnet.framework.aspnet
    !NNTP-Posting-Host: 206.40.220.138
    !Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
    !Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:159303
    !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
    !
    !I guess that makes sense. So, how can I allow the browser to open content
    !for edit? I suppose I cannot use an edit region on an HTML page without the
    !IIS engine?
    !
    !I know this question goes a bit beyond the scope of this newsgroup, but the
    !need is derived from an ASP.NET solution.
    !
    !This is the requirement:
    !The user connects to our web application to generate an HTML file and a
    !series of PDF documents. These are are then transfered to a removable media
    !that will then be opened from workstations that do not have network
    !connections. These computers are controled and custom applications are
    !restricted. The HTM file generated contails a link to the PDF, a
    !description of the document, and a comment section. The user needs the
    !ability to update this information so the changes can later be migrated back
    !to our web site. How can I accomplish this?
    !
    !Troy
    !
    !"Steve C. Orr, MCSD" <Steve@Orr.net> wrote in message
    !news:uLdxPdjSDHA.2480@tk2msftngp13.phx.gbl...
    !> The main problem is that this is a security violation. Do you want web
    !> sites taking control of your computer and launching programs
    !> indiscriminately? I know I don't. That's why browser security settings
    !> usually prohibit this.
    !> If the browser security settings have been adjusted to allow this, then
    !you
    !> could use a WSH script or a COM CreateObject command to launch a client
    !side
    !> app.
    !> To adjust the browser security, the setting you'll most likely need to
    !> adjust can be found on the Internet Options dialog under the Tools
    !dropdown
    !> menu in Internet Explorer. Go to the security tab. With local Intranet
    !> selected (assuming this is an intranet app), click the "Customize Level."
    !> button. Find the setting titled "Initialize and script ActiveX controls
    !not
    !> marked as safe" and change the selection to either "enable" or "prompt."
    !>
    !> --
    !> I hope this helps,
    !> Steve C. Orr, MCSD
    !> [url]http://Steve.Orr.net[/url]
    !>
    !>
    !> "Troy Murphy" <troy@solutionsoft.cc> wrote in message
    !> news:%23mjg0HiSDHA.212@TK2MSFTNGP10.phx.gbl...
    !> > How can I get a button on the ASPX returned HTML to open a local txt
    !file
    !> > for edit?
    !> > I need the txt document to be editable from the client (txt file is on
    !the
    !> > client machine) and not launch in the browser, but instead launch
    !notepad.
    !> > I am sure that will require Java, so can someone post a snippet that
    !would
    !> > help me on that venture?
    !> >
    !> > Thanks!
    !> > Troy
    !> >
    !> >
    !>
    !>
    !
    !
    !


    Yan-Hong Huang[MSFT] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139