Hello
How call c# method use javascript in html page
I have method LoadXml("http://localhost/mysite/res/toolbar.xml") and need this method call in html page use javascript.
Example:
How call? Please, help
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Mike JonsonPosted Aug 3, 2011, 5:42 AM
Amit ChoudharyPosted Aug 3, 2011, 1:56 AM
If this is the case then Read this article HERE. Will surely help you solving your problem.
Correct me if I'm wrong. Hope this was helpful.
Mike JonsonPosted Aug 2, 2011, 10:03 AM
Windows Form Control:
height="100"; width="300">
I click my button and nothing. O, my God! I cant undestand why. Please help. Thanks
Mike JonsonPosted Aug 1, 2011, 5:09 PM
Amit ChoudharyPosted Aug 1, 2011, 4:05 PM
There are various ways to do this. Either you can call this method by a hidden button(Server Control) click event that could be fired any time using javascript code like this:
you can also use PageMethod to achieve this:
See this article Here. nice Explained.
Hope this was helpful.