Question from a .net newbie
Hello,
I am trying to display output from my python code in aspx page.
Below is .net c# code that executes by the click of Button1.
protected void Button1_Click1(object sender, EventArgs e)
{
ScriptEngine eng = Python.CreateEngine();
dynamic scope = eng.CreateScope();
eng.ExecuteFile(@"C:\path\hello.py", scope);
Label1.Text = //display output in Label1
}
Below is the sample python script.
print "hello"
Could you please tell me how to display "hello" in Label1.Text?
Also any kind of information regarding passing data between python and asp.net is appreciated.
Thanks,
eng.ExecuteFile()return?