473,386 Members | 2,042 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,386 software developers and data experts.

how do i generate the page prerender event in visual studio 2005

I know how to do it in vs 2003, please help!

Sep 18 '07 #1
5 7388
you have to type it in yourself in the InitializeComponent method. Yes -
just where it says "do not modify the contents of this method with the code
editor" !!

put

this.PreRender += new System.EventHandler(this.MyPage_PreRender);

if you're lucky it will auto-complete after you type the +=

Andy

"Bjarke" <bj********@gmail.comwrote in message
news:11**********************@r29g2000hsg.googlegr oups.com...
>I know how to do it in vs 2003, please help!

Sep 18 '07 #2
"Bjarke" <bj********@gmail.comwrote in message
news:11**********************@r29g2000hsg.googlegr oups.com...
>I know how to do it in vs 2003, please help!
If you're using C# and have AutoEventWireup="true" in your page directive,
just type it...
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 18 '07 #3
actually I just remembered that I asked this very same question a while ago
and someone showed me this rather obscure way of doing it:

- open the page in design view
- right click on the background of the page
- select view component designer
- on the properties page you can now select the lightning bolt
- double click an event name to generate the code

"Andy Fish" <aj****@blueyonder.co.ukwrote in message
news:OO****************@TK2MSFTNGP04.phx.gbl...
you have to type it in yourself in the InitializeComponent method. Yes -
just where it says "do not modify the contents of this method with the
code editor" !!

put

this.PreRender += new System.EventHandler(this.MyPage_PreRender);

if you're lucky it will auto-complete after you type the +=

Andy

"Bjarke" <bj********@gmail.comwrote in message
news:11**********************@r29g2000hsg.googlegr oups.com...
>>I know how to do it in vs 2003, please help!


Sep 18 '07 #4
VB is so much easier

"Andy Fish" <aj****@blueyonder.co.ukwrote in message
news:%2*****************@TK2MSFTNGP05.phx.gbl...
actually I just remembered that I asked this very same question a while
ago and someone showed me this rather obscure way of doing it:

- open the page in design view
- right click on the background of the page
- select view component designer
- on the properties page you can now select the lightning bolt
- double click an event name to generate the code

"Andy Fish" <aj****@blueyonder.co.ukwrote in message
news:OO****************@TK2MSFTNGP04.phx.gbl...
>you have to type it in yourself in the InitializeComponent method. Yes -
just where it says "do not modify the contents of this method with the
code editor" !!

put

this.PreRender += new System.EventHandler(this.MyPage_PreRender);

if you're lucky it will auto-complete after you type the +=

Andy

"Bjarke" <bj********@gmail.comwrote in message
news:11**********************@r29g2000hsg.googleg roups.com...
>>>I know how to do it in vs 2003, please help!



Sep 18 '07 #5
On 18 Sep., 17:27, "Just Me" <news.microsoft.comwrote:
VB is so much easier

"Andy Fish" <ajf...@blueyonder.co.ukwrote in message

news:%2*****************@TK2MSFTNGP05.phx.gbl...
actually I just remembered that I asked this very same question a while
ago and someone showed me this rather obscure way of doing it:
- open the page in design view
- right click on the background of the page
- select view component designer
- on the properties page you can now select the lightning bolt
- double click an event name to generate the code
"Andy Fish" <ajf...@blueyonder.co.ukwrote in message
news:OO****************@TK2MSFTNGP04.phx.gbl...
you have to type it in yourself in the InitializeComponent method. Yes -
just where it says "do not modify the contents of this method with the
code editor" !!
put
this.PreRender += new System.EventHandler(this.MyPage_PreRender);
if you're lucky it will auto-complete after you type the +=
Andy
"Bjarke" <bjarker...@gmail.comwrote in message
news:11**********************@r29g2000hsg.googleg roups.com...
I know how to do it in vs 2003, please help!
Thanks a lot Guys! its quite Odd that its so complicated that most
people assumes it is no longer there...

Bjarke

Sep 18 '07 #6

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

Similar topics

1
by: Franko | last post by:
I get the following error. Please help c:\inetpub\wwwroot\WebApplication1\WebForm2.aspx(6,38): error CS1001: Identifier expected c:\inetpub\wwwroot\WebApplication1\WebForm2.aspx(6,52): error...
3
by: William LaMartin | last post by:
If I create a RadioButtonList with, say, two items, then after the page loads and I select one of the items and then click on a button whose click event contains some code to display the...
2
by: Visual Systems AB \(Martin Arvidsson\) | last post by:
Hi! When i develop my web application i have a set of javascript that is used in several pages. Also the title is the same for all pages. And certain controls have events that are in the...
3
by: JG | last post by:
Hi all, I have a simple aspx page. On the page there is only one button. When I click on the button, the event sequence is Page_Load, Button1_click and Page_PreRender. How do I supress the...
1
by: steven.varr | last post by:
Hi, The system I am working on handles web page navigation in the following fashion: When a button is clicked on a web page a post-back is triggered. The page_load event occurs as usual with the...
8
by: TS | last post by:
Hi, i have inherited a page from another user. The page is the target frame in a frameset. for some reason the whole page runs twice (page_load, init, etc. all run twice) I can't figure out how...
4
by: Eddie | last post by:
Hello, there. I'm just a newbie for ASP. I made a webpage with VS2005. The page contains nothing. It's a default page when I created webpage in the VS2005. IE shows me error message that he...
1
by: John Dalberg | last post by:
I am trying to send a webpage with datagrids as an email so I use the code snippet below. In one of my datagrids, I reformat some rows in the datagrid's Prerender event. The code behind of the page...
9
by: Anubhav Jain | last post by:
Hi, I am having few .net source files(.cs or .vb) and I want to dynamically generate the corresponding .net project file(.csproj or .vbproj) for them without using visual studio.So that I could...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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
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,...
0
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...

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.