473,664 Members | 2,967 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ASP.NET 2.0 ICallbackEventH andler

I have a problem. If I look MSDN the interface who is in the message object
have two virtual method
GetCallbackResu lt
RaiseCallbackEv ent

The tocumentation say me:
void RaiseCallbackEv ent (
string eventArgument
)
but when I see the MSDN sample the method RaiseCallbackEv ent was implemented
:

public String RaiseCallbackEv ent(String eventArgument As String)
{
return eventArgument + " new value";
}

But when I compile the class with my RaiseCallbackEv ent i get ana error
because the method is not returning VOID
Any idea? Sorry for my bad english
Lorenzo Soncini
Dec 28 '05 #1
2 1201
the behavior was changed between the beta and the rtm. read the rtm
documentation.

-- bruce (sqlwork.com)

"Lorenzo Soncini" <lo************ *@technoservice .com> wrote in message
news:ub******** *****@TK2MSFTNG P09.phx.gbl...
I have a problem. If I look MSDN the interface who is in the message object
have two virtual method
GetCallbackResu lt
RaiseCallbackEv ent

The tocumentation say me:
void RaiseCallbackEv ent (
string eventArgument
)
but when I see the MSDN sample the method RaiseCallbackEv ent was
implemented :

public String RaiseCallbackEv ent(String eventArgument As String)
{
return eventArgument + " new value";
}

But when I compile the class with my RaiseCallbackEv ent i get ana error
because the method is not returning VOID
Any idea? Sorry for my bad english
Lorenzo Soncini

Dec 28 '05 #2
I reinstall my MSDN :-)
Online the documentation is ok..and I have solved the problem

Thanks
Lorenzo
"Lorenzo Soncini" <lo************ *@technoservice .com> ha scritto nel
messaggio news:ub******** *****@TK2MSFTNG P09.phx.gbl...
I have a problem. If I look MSDN the interface who is in the message object
have two virtual method
GetCallbackResu lt
RaiseCallbackEv ent

The tocumentation say me:
void RaiseCallbackEv ent (
string eventArgument
)
but when I see the MSDN sample the method RaiseCallbackEv ent was
implemented :

public String RaiseCallbackEv ent(String eventArgument As String)
{
return eventArgument + " new value";
}

But when I compile the class with my RaiseCallbackEv ent i get ana error
because the method is not returning VOID
Any idea? Sorry for my bad english
Lorenzo Soncini

Dec 28 '05 #3

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

Similar topics

1
1409
by: Mike | last post by:
When trying to compile in Visual Web Developer 2005 express beta (framework version )the source code using System; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; public partial class _Default : ICallbackEventHandler
1
567
by: Mike | last post by:
When trying to compile (using Visual Web Developer 2005 Express Beta; frameworkv2.0.50215 ) the source code below I get errors (listed below due to the use of ICallBackEventHandler. Ultimately I want to use a callback from the client side to update webcontrols based on user input without using postback. I am seeking a way to stop the compile errors. using System; using System.Data;
2
3127
by: Maya Nasri | last post by:
Hello everyone, I have upgraded to ASP.NET 2 and since then i had the code below stopped working after upgrading and modiftying the code: using System; using System.Data; using System.Configuration; using System.Collections; using System.Web;
1
1148
by: JimGreen | last post by:
I recently installed Release Candidate of VS2005 and I am not sure what the hell is the problem but ICallbackEventHandler definition on my machine looks like this: public interface ICallbackEventHandler { string GetCallbackResult(); void RaiseCallbackEvent(string eventArgument); }
0
1060
by: Edwin Knoppert | last post by:
Seems ICallbackEventHandler is meant for the 2.0 beta i guess ??? VWD forces me to public void RaiseCallbackEvent(string eventArgument) And using a public string GetCallbackResult() to return the value. I was looking about the js part for error handling, which i can't find. Even the c code example seems tot be wrong, see the param! public String RaiseCallbackEvent(String eventArgument As String)
3
3255
by: Harvey Triana | last post by:
Hello I try to implement ICallbackEventHandler follow sample in http://msdn2.microsoft.com/en-us/library/ms178208.aspx I add code line: Implements System.Web.UI.ICallbackEventHandler The IDE write this signatures:
0
972
by: Slim | last post by:
I made a page today that uses ICallbackEventHandler. I got to work, but with problems. 1. it is slow, it does not seem any faster than reloading the page. 2. the first time I fire the event it works fine, I get a result back from the server, but if I try to fire it again too soon it does not work. Q. am I supposed to be able to rebuild controls with ICallbackEventHandler? I have a table built at loading, am I supposed to be able to...
1
2012
by: Ben Schumacher | last post by:
I have a page that implements ICallbackEventHandler. I'm trying to accomplish auto saving a page everytime the user navigates away from the page. To initialize the callback, I fire the onunload event on the window as can be seen below. <script type="text/javascript"> window.onunload = Save; function Save()
1
1666
by: =?Utf-8?B?RGF2aWQgUmVoYWdlbg==?= | last post by:
I currently have a custom control that implements the ICallbackEventHandler interface. Currently it works when the control is added to a standard web form. It does not work however when added to Master Page’s Content Page or when placed in a user control. The result is the page load firing but the callback events never file. I have scoured the internet for days and seen literally dozens of questions to the same effect and no...
1
1611
by: Ian | last post by:
Question: Is there a way to multi-thread ICallbackEventHandler using delegates? Problem: I'm executing client-side calls to my page, which implements ICallbackEventHandler. I need to implement ICallbackEventHandler in order to access the state of various 3rd party controls I'm working with. I have one method in particular which takes a long time to process, roughly 30 seconds or so. My goal is to allow other methods to be
0
8437
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8348
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8549
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8636
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7375
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6187
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4351
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2764
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 we have to send another system
2
1759
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.