473,511 Members | 15,197 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to use a webcontrol with Javascript.

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.
Jun 26 '06 #1
2 1676
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: 44*********************@news.orange.fr...
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.

Jun 26 '06 #2
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:44*********************@news.orange.fr...
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.

Jun 26 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1652
by: chris | last post by:
Hi there, I would like to add an onClick event to a webcontrol which calls a function which is in the code behind an not a javascript. Would that be possible? Something like this: ...
5
1915
by: Jon | last post by:
I would like to pass a reference of a webcontrol into a javascript function. Below I have a snippet of code. "me.selectedValue" returns undefined. I was hoping that would return the value that...
1
1274
by: Edward | last post by:
hello, everyone, I build one tree menu using TreeView webcontrol , everything is ok, from tree node click, one sub-frame(main) can refresh its content with new url. My question is, I have...
9
2649
by: kw | last post by:
What is the proper way to get the element ID for a client script? For example, suppose in the WebControl: TextBox t=new TextBox; t.ID=this.ClientID+"X"; .... Then elsewhere we want to access...
0
2934
by: Demetri | last post by:
I have created a web control that can be rendered as either a linkbutton or a button. It is a ConfirmButton control that allows a developer to force a user to confirm if they intended to click it...
4
1523
by: patrick.sannes | last post by:
Hi there, I'm creating a custom control with Javascript and CSS. It will be a nice overlay calendar with a result textbox. My main problem is that the Javascript is realy huge, so you want to...
0
1263
by: pagates | last post by:
Hello All, For links in my page, I would like to change the window.status to show something a little friendlier than "javascript:WebForm_DoPostBackWithOptions(.............)". I thought that...
2
13835
by: P4trykx | last post by:
Hello I'm want to add some custom attributes to WebControls using WebControl.Attributes.Add("abc","234"); So the html output will look like this, <input type="hidden" abc="123" /etc. I know...
3
5683
by: Tomasz J | last post by:
Hello Developers, How do create a custom WebControl (not UserControl), exposing OnClick event? I reviewed countless examples found by Google, but came across nothing helpful. Below I attach...
0
7237
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7349
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5659
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5063
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3219
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1572
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
780
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
445
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.