473,385 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Adding page events

Greetings

I'm using C# in VS.Net 2002. Whenever I need a page PRE_RENDER event,
I add it manually. That involves going into the "do not touch section"
to add the handler. This is probably something really obvious that I'm
missing, but is there a way to add the event via the gui, or to see
what other events are available?

Thanks
Nov 15 '05 #1
3 3857
Jay, i'll take a stab-- will someone please flame up if i give
misinformation?

1. NEVER go into the do not touch section, the VSDesigner is so finicky as
it is that you run a great risk of losing work by confusing it (perhaps
EricGu can defend VSD but that's my experience). In any case DO add the
handler using += in your Form_Load or another suitable event.

2. I'm not familiar with PRE_RENDER, but i'm assuming it's like many other
properties, styles, etc-- if they haven't been "wrapped" by whoever wrote
the framework code, you need to wrap them yourself, and there is no standard
way-- some people make a TreeViewEx to make horizontal and vertical
scrollbars independently controllable, others might do it differently, etc.

3. and unfortunately again you can't see non-wrapped items via the dotnet
tools, for "advanced" windows programming in dotnet you need to either read
the old docs on MSDN-- or post on a newsgroup, or-- find a non extinct
dinosaur person who might have worked on the ms code base in previous
generations and who still remembers that PRE_RENDER exists!!

Best of luck.. enjoy!
"Jay Allard" <ja*@allardworks.com> wrote in message
news:46*************************@posting.google.co m...
Greetings

I'm using C# in VS.Net 2002. Whenever I need a page PRE_RENDER event,
I add it manually. That involves going into the "do not touch section"
to add the handler. This is probably something really obvious that I'm
missing, but is there a way to add the event via the gui, or to see
what other events are available?

Thanks

Nov 15 '05 #2
Hello

That doesn't really answer the question.

I've been going into the "Do not touch" section for more than a year
without a problem. I'm looking for the other way to do it.

Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #3
Jay Allard wrote:
I've been going into the "Do not touch" section for more than a year
without a problem. I'm looking for the other way to do it.


If you don't see it in the events section of the property window, there is
no other way.

--
There are 10 kinds of people. Those who understand binary and those who
don't.

http://code.acadx.com
(Pull the pin to reply)
Nov 15 '05 #4

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

Similar topics

2
by: Tim Marsden | last post by:
Hi, This is what I am doing, please comment if this is the correct way. I need to add controls to a form dynamically. Within the Page_Load event (is not Postback) I run a routine to create the...
2
by: JezB | last post by:
I'm adding WebControl objects to a Page dynamically on Page_Load, but I'm having trouble attaching events to these. For example, adding an image button :- ImageButton nb = new ImageButton();...
1
by: seanmayhew | last post by:
I have a form page that that while editing saves the data to an xml doc before submitting to db. On each page unload it saves the xmldoc as the user can add multiple items to the company like...
2
by: Oddball | last post by:
I am trying to create and add a number of ImageButtons to a page when a certain event is called. Not only am I suffering from my page running the "Page_Load" event three times, but I can't seem...
5
by: Steve Moreno | last post by:
Hi all, I've got a web form that I've written code to create an array of DropDownList controls on the page depending on how many records are pulled back. The code to create the controls is...
11
by: Neo Geshel | last post by:
Greetings. Hopefully someone will be able to untie this Gordian Knot I have found myself bound up in. I am trying to add a submit button dynamically to a PlaceHolder. This button will help...
3
by: Bart Van Hemelen | last post by:
I'm working on a project where the user of a site will receive custom content, depending on a set of parameters. The content will all be contained in UserControls (.ascx), that will be used as...
2
by: ChrisCicc | last post by:
Hi All, I got a real doozy here. I have read hundreds upon hundreds of forum posts and found numerous others who have replicated this problem, but have yet to find a solution. Through testing I have...
6
nomad
by: nomad | last post by:
Hello Everyone: I'm having troubles with some coding and Idon't know where it is. I have delevopled a calender where the client can add events to a day. The code worked perfect on my computer but...
1
by: swethak | last post by:
Hi, I am desiging the calendar application for that purpose i used the below code. But it is for only displys calendar. And also i want to add the events to calendar. In that code displys the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.