Mike Jonson

Mike Jonson

  • NA
  • 239
  • 193.9k

Download method from my uses class to HTML page. Please help!

Jul 28 2011 7:56 PM
For three days I think. I dont now why not work!

I created a custom control. Toolbar: System.Windows.Forms.usercontrol

And he added it to the html page.

<object id = "myToolBar" height="100" width="1000"
classid="http://localhost1477:/TestJob/MyToolBar.dll#MyToolBar.Toolbar">
</object>

The my class ToolBar has a method LoadXml ().
On the page I added a button. Pressing this button should call this method. How to call it? In the task just says that i need use javascript?

I have try this:

<script type="text/javascript">

function Button1_onclick() {

myToolBar.LoadXml("http://localhost:1477/testjob/res/xml1.xml");
}
</script>


But not work! Help to understand, I am suffering for three days)))) Please!


Answers (1)