Call C# code-behind method with a <li> onclick...
Posted
by Joris
on Stack Overflow
See other posts from Stack Overflow
or by Joris
Published on 2010-06-01T18:42:51Z
Indexed on
2010/06/01
18:43 UTC
Read the original article
Hit count: 889
Hey'all
I got a li - list, one with an onclick:
<ul class="tabs">
<li><a href="#tab1">Foobar_1</a></li>
<li onclick="doMethod"><a href="#tab2">Foobar_2</a></li>
<li><a href="#tab3">Foobar_3</a></li>
<li><a href="#tab4">Foobar_4</a></li>
</ul>
Now, the method I want to call when clicked on a tab (the li's), updates an UpdatePanel, so a gridview is shown.
I know it must have something to do with AJAX, but I ain't got a clue how to move on now...
so basically: how to call a c# method using AJAX?
© Stack Overflow or respective owner