473,503 Members | 2,698 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Object events

In ASP.NET 2.0, C# I can see object events only in design view.

That is very disturbing. I don't use design view at all. I work with source
view and code behind.

If you change language to VB.NET that you can see events also in code
behind.

In asp.net 1.1 that works.

Any idea?

regards,S
Jan 10 '06 #1
2 1271
if your talking about what I think ur talking, the way I do it is pretty
easy. First, I disable AutoWireUp. Then I override OnInit and I hook up my
events in there like it was in 1.1

protected override void OnInit(EventArgs e)
{
Send.Click += new EventHandler(Send_Click);
base.OnInit(e);
}
i actually changed the templates used in vs.net 2005, you can find them all:
C:\Program Files\Microsoft Visual Studio
8\Common7\IDE\ItemTemplates\Web\CSharp\1033 and modify them. i had some
problems with the cache of those, located
C:\Program Files\Microsoft Visual Studio
8\Common7\IDE\ItemTemplatesCache\Web\CSharp\1033
but it eventually all worked out,not quite sure how to be honest :)

Karl

--
http://www.openmymind.net/

"SimonZ" <si*********@studio-moderna.com> wrote in message
news:O5**************@TK2MSFTNGP11.phx.gbl...
In ASP.NET 2.0, C# I can see object events only in design view.

That is very disturbing. I don't use design view at all. I work with
source view and code behind.

If you change language to VB.NET that you can see events also in code
behind.

In asp.net 1.1 that works.

Any idea?

regards,S

Jan 10 '06 #2
Thank you Karl,

it's not what I mean.

In VS2003 you had 2 combo boxes on top: first one with objects and second
one with events.

When you selected the object from first combo box, the second combo box was
filled with the events of this object.

When you selected the some event from second combo box, the wrapper for this
event was automaticly added to your code.

Now in VS2005 it still works but only if you have VB as your language.

In C# that is gone. I don't know why?

Auto wire up is also something to think about. Maybe I'll try your way, but
it doesn't bother me a lot.

Thanks,
Simon

"Karl Seguin [MVP]" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net> wrote in message news:%2***************@tk2msftngp13.phx.gbl...
if your talking about what I think ur talking, the way I do it is pretty
easy. First, I disable AutoWireUp. Then I override OnInit and I hook up
my events in there like it was in 1.1

protected override void OnInit(EventArgs e)
{
Send.Click += new EventHandler(Send_Click);
base.OnInit(e);
}
i actually changed the templates used in vs.net 2005, you can find them
all:
C:\Program Files\Microsoft Visual Studio
8\Common7\IDE\ItemTemplates\Web\CSharp\1033 and modify them. i had some
problems with the cache of those, located
C:\Program Files\Microsoft Visual Studio
8\Common7\IDE\ItemTemplatesCache\Web\CSharp\1033
but it eventually all worked out,not quite sure how to be honest :)

Karl

--
http://www.openmymind.net/

"SimonZ" <si*********@studio-moderna.com> wrote in message
news:O5**************@TK2MSFTNGP11.phx.gbl...
In ASP.NET 2.0, C# I can see object events only in design view.

That is very disturbing. I don't use design view at all. I work with
source view and code behind.

If you change language to VB.NET that you can see events also in code
behind.

In asp.net 1.1 that works.

Any idea?

regards,S


Jan 10 '06 #3

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

Similar topics

3
3163
by: VijayShankar | last post by:
Can u be more specific on your question Anyway its not like Session variables are available for sometime and not available for sometime. When your session starts it is very much available...
5
2601
by: Sunny | last post by:
Hi, I have to implement client/server application. The client have to instaniate an remoting object via http and pass some auth info. If the auth is OK, the client should invoke a method (or...
15
3658
by: Tim Jarvis | last post by:
Hi, I have an object that I am binding to a text box, this object exposes a boolean field, and I have implemented a format event handler and a parse event handler for the binding object, where I...
12
2299
by: Ricardo Pereira | last post by:
Hello all, I have a C# class (in this example, called A) that, in its constructor, starts a thread with a method of its own. That thread will be used to continuously check for one of its...
2
4415
by: Dan | last post by:
I am having a problem trying to assign event handlers to the events of a remoted object. I have one program that registers the object for remoting, Another that connects and calls methods on the...
5
2496
by: Michael Moreno | last post by:
Hello, In a class I have this code: public object Obj; If Obj is a COM object I would like to call in the Dispose() method the following code: ...
16
2871
by: anonymous.user0 | last post by:
The way I understand it, if I have an object Listener that has registered as a listener for some event Event that's produced by an object Emitter, as long as Emitter is still allocated Listener...
6
6845
by: Jeremy | last post by:
I want each instance of an object to be able to listen for input events. When the event occurs, a method of the object should be called, such that "this" is in scope and refers to the object...
11
3942
by: Andrus | last post by:
I'm implementing entity object which should populate its properties from database when property is first referenced. In RDL reports I use object properties like MyObject.MyProperty MyObject...
4
2026
by: Joergen Bech | last post by:
I sometimes use delegates for broadcasting "StateChanged" events, i.e. if I have multiple forms and/or controls that need updating at the same time as the result of a change in a global/common...
0
7192
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
7315
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7445
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...
1
4991
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
3158
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
3147
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1492
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
721
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
369
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.