javascript - What is the easiest way to trigger a C# class from an asp.net page? -
in asp.net page have 3 labels:
- a default name filter by
- filled list of names want click on new filter
- filled list of items filtered
2 , 3 both filled content loaded in c# code behind it. when page loads, automatically filtered default text of first label. want click on other labels call method triggered on page load filtering clicked on name.
my problem i've tried replacing first label whichever name clicked on , loading content again filtered first label, seems reset label it's default text filtering same way does.
perhaps ajax easiest way haven't tried basic example doing great.
if have more questions ask.
you can use page methods. have sign method [webmethod] attribute tutorial here
Comments
Post a Comment