Connecting Tech Pros Worldwide Forums | Help | Site Map

How to use a webcontrol with Javascript.

Peregrin
Guest
 
Posts: n/a
#1: Jun 26 '06
Hello world.
I will try to explain my problem. I've a webcontrol with an interface which
provides a choice of methods. After including the webcontrol in a special
aspx page, I want to call an interface webcontrol method from a javascript
function part of special aspx page.
But I don't know how to call a public webcontrol method from a client side
javascript function ?
Thanks for response.



Steve B.
Guest
 
Posts: n/a
#2: Jun 26 '06

re: How to use a webcontrol with Javascript.


Take a look at the Page.GetPostBackEventReference method (beware, VS hide
this methods until you choose to display advanced members).

This allow you to create postbac clients events in order to help you fire
server method.

Steve


"Peregrin killSpam" <r.duprat@~I~~I~peregrinsolutions.com> a écrit dans le
message de news: 449feeec$0$880$ba4acef3@news.orange.fr...[color=blue]
> Hello world.
> I will try to explain my problem. I've a webcontrol with an interface
> which provides a choice of methods. After including the webcontrol in a
> special aspx page, I want to call an interface webcontrol method from a
> javascript function part of special aspx page.
> But I don't know how to call a public webcontrol method from a client side
> javascript function ?
> Thanks for response.
>
>[/color]


bruce barker \(sqlwork.com\)
Guest
 
Posts: n/a
#3: Jun 26 '06

re: How to use a webcontrol with Javascript.


for client code to call a server method, it need to send a request to the
server and parse the results. this is typically done with an ajax library
nowdays. google ajax, and pick you fav (or write one).

-- bruce (sqlwork.com)

"Peregrin killSpam" <r.duprat@~I~~I~peregrinsolutions.com> wrote in message
news:449feeec$0$880$ba4acef3@news.orange.fr...[color=blue]
> Hello world.
> I will try to explain my problem. I've a webcontrol with an interface
> which provides a choice of methods. After including the webcontrol in a
> special aspx page, I want to call an interface webcontrol method from a
> javascript function part of special aspx page.
> But I don't know how to call a public webcontrol method from a client side
> javascript function ?
> Thanks for response.
>
>[/color]


Closed Thread