Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Events/objects what to use?

Status
Not open for further replies.

motte

Programmer
May 31, 2001
155
US
Hi all,

I've been working my way through asp.net with and without vs.net and have come up with what i can be regarded as, well, I don't know, but here it is:

How do I know what events to use for something and what objects/classes are used with those events?

An example.
Calendar control.
There is an ondayrender event. Making a call to a sub, how am I supposed to know I should use the DayRenderEventArgs? How am I to even know that it exists? How am I to know about the tablecell class?

I've been seeing this everywhere. This is the most recent. Is this just part of a huge learning curve? I feel there is so much out there and seem a bit overwhelmed when I look at it. I know I can not be an expert in everything, though I'd like to be.

Someone please let me know if this is a normal reaction. Is there anything out there that has a list of all these events, classes, properties of classes etc...Other than the sdk documentation.

Mike
 
I agree the learning curve is a steep one. You always seem to have to find out about 5 other things in order to get one thing to work. At first (not that long ago) I would go by an example found in the help and then abandon it because it was not complete and so I could not figure out what I needed to do to make it work. After using the help for a while I am finding myself better at identifying the right file to look at for certain information. But it is a process.

As to references we have one ASP.Net Programmers Reference by Charles C. Caison that is a listing of classes and members etc. It seems pretty good.

Well good luck with it, don't give up it gets better pretty fast even when you know there is still a lot more to be learned.

Crystal
crystalized_s@yahoo.com

--------------------------------------------------

Experience is one thing you can't get for nothing.

-Oscar Wilde

 
Hey Mike,

Yeah, don't fret man. There's a tonne of stuff to learn with .NET, and i don't think anyone's expected to become a pro overnight.

When I first started with .NET back in November, I had to mimic a form from Access in a web form. I had no clue how, and was convinced that it couldn't be done. 4 months and alot of time spent playing with the controls, I can do it with the datagrid and some custom templates. So don't worry about always feeling like you have to learn something, its not a bad thing.

Thats kinda one kewl thing with .NET: we're all in the same boat really.
:)

Jack
 
Hey Crystal and Jack! Thanks for the votes of confidence, and knowing that I am not alone in this struggle. I'll take a look into the book Crystal recommended. Thanks for your responses.

Mike
 
VS.NET's Object Browser may prove to be helpful, too. You can drill down through the namespaces (or use the search feature) and locate the event, method, property, enums, etc. associated with a particular class.

Just yesterday I was banging my head against my PC trying to figure out how to handle a click event on a node in Infragistics' UltraWebTree control. Neither the documentation nor the sample file provided any clue as how to handle tree events, except in a codebehind module (which is not what I wanted to do). In desparation, I rifled around in the Object Browser, and I finally found the event (NodeClicked) and the method that handles the event (onNodeClicked). This gave me the signature I needed for capturing the event and, viola! I was back in business!

Until now, I've never coded in ASP, and I'm learning everything about Web development at once -- plus trying to learn the new .NET environment. At times, I can almost feel my brain sweat...

Mark
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top