Click here to Skip to main content
15,906,947 members
Home / Discussions / C#
   

C#

 
AnswerRe: DateTime Pin
Mohammad Dayyan11-Aug-08 12:21
Mohammad Dayyan11-Aug-08 12:21 
AnswerRe: DateTime Pin
Paul Conrad11-Aug-08 12:29
professionalPaul Conrad11-Aug-08 12:29 
AnswerRe: DateTime Pin
nelsonpaixao11-Aug-08 14:37
nelsonpaixao11-Aug-08 14:37 
QuestionXML elements not showing values Pin
Ekjon11-Aug-08 11:11
Ekjon11-Aug-08 11:11 
AnswerRe: XML elements not showing values Pin
Christian Graus11-Aug-08 11:18
protectorChristian Graus11-Aug-08 11:18 
GeneralRe: XML elements not showing values Pin
Ekjon11-Aug-08 11:25
Ekjon11-Aug-08 11:25 
GeneralRe: XML elements not showing values Pin
Ekjon11-Aug-08 12:23
Ekjon11-Aug-08 12:23 
QuestionHelp with calling external applications from C# Pin
charlieyv11-Aug-08 10:26
charlieyv11-Aug-08 10:26 
<b>Hello fellow coders,
Anyone know how to implement a C# script into a html href tag so when someone clicks the link, the script executes?
I've done it with javascript, but I cant get it to work under C#. I'm using asp .net IIs and all the things I need.</b>

<pre> string path = "C:\\Program Files\\Common Files\\Microsoft Shared\\Help 9\\dexplore.exe";
string keyword = "default";///get the keyword from the code somehow...this is just an example
string argumentos = "/helpcol ms-help://ms.vscc.v90 /LaunchFKeywordTopic " + keyword;
/// "/usehelpsettings VisualStudio.9.0";
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo(path, argumentos);
System.Diagnostics.Process.Start(startInfo);</pre>

<b>I need that piece of code to be executed when I click a html link, that btw is created dinamically by code.
...
The page source code is this:</b>

<pre>
<![CDATA[<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="WebApplication1._Default" %>]]>


<script runat="server">
public void opendexplore(){
string path = "C:\\Program Files\\Common Files\\Microsoft Shared\\Help 9\\dexplore.exe";
string keyword1 = "String"; ///"default";get the keyword from the code somehow...this is just an example
string argumentos = "/helpcol ms-help://ms.vscc.v90 /LaunchFKeywordTopic " + keyword1;
/// "/usehelpsettings VisualStudio.9.0";
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo(path, argumentos);
System.Diagnostics.Process.Start(startInfo);
}
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>

<a href="Default.aspx" onclick="opendexplore()">CLICK</a>
</div>
</form>
</body>
</html>
</pre>

<b>Thanks you for your help</b><pre></pre>
AnswerRe: Help with calling external applications from C# Pin
Manas Bhardwaj11-Aug-08 10:50
professionalManas Bhardwaj11-Aug-08 10:50 
AnswerRe: Help with calling external applications from C# Pin
Mohammad Dayyan11-Aug-08 12:29
Mohammad Dayyan11-Aug-08 12:29 
Questionwindows forms data business objects or database Pin
bfis10813711-Aug-08 10:05
bfis10813711-Aug-08 10:05 
AnswerRe: windows forms data business objects or database Pin
Pete O'Hanlon11-Aug-08 10:37
mvePete O'Hanlon11-Aug-08 10:37 
GeneralRe: windows forms data business objects or database Pin
bfis10813711-Aug-08 11:33
bfis10813711-Aug-08 11:33 
GeneralRe: windows forms data business objects or database Pin
Pete O'Hanlon11-Aug-08 21:56
mvePete O'Hanlon11-Aug-08 21:56 
AnswerRe: windows forms data business objects or database Pin
Wendelius11-Aug-08 10:40
mentorWendelius11-Aug-08 10:40 
GeneralRe: windows forms data business objects or database Pin
bfis10813711-Aug-08 10:58
bfis10813711-Aug-08 10:58 
GeneralRe: windows forms data business objects or database Pin
Mark Churchill11-Aug-08 19:03
Mark Churchill11-Aug-08 19:03 
GeneralRe: windows forms data business objects or database Pin
bfis10813711-Aug-08 19:10
bfis10813711-Aug-08 19:10 
GeneralRe: windows forms data business objects or database Pin
Mark Churchill11-Aug-08 19:27
Mark Churchill11-Aug-08 19:27 
GeneralRe: windows forms data business objects or database Pin
Wendelius12-Aug-08 8:25
mentorWendelius12-Aug-08 8:25 
QuestionJavascript and C# Pin
MinaFawzi11-Aug-08 9:07
MinaFawzi11-Aug-08 9:07 
AnswerRe: Javascript and C# Pin
Pete O'Hanlon11-Aug-08 9:18
mvePete O'Hanlon11-Aug-08 9:18 
AnswerRe: Javascript and C# Pin
led mike11-Aug-08 10:35
led mike11-Aug-08 10:35 
Question[Message Deleted] Pin
tkrn11-Aug-08 8:59
tkrn11-Aug-08 8:59 
AnswerRe: Report Viewer to automatically print? Pin
Wendelius11-Aug-08 9:40
mentorWendelius11-Aug-08 9:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.