throwing event Page_PreRender


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 3 of 3

Thread: throwing event Page_PreRender

  1. #1
    Join Date
    Dec 2003
    Location
    Italy
    Posts
    250

    Question throwing event Page_PreRender

    Hello guys,
    I tried to use the Page_PreRender event of my webpage but It never activates and I never execute the code I putted in there, Why ?!?!?!?
    How can I activate the Page_PreRender event ?
    I would appreciate to have a sample in C#, please.

    Thank you

  2. #2
    Join Date
    Nov 2003
    Location
    Portland, OR
    Posts
    8,387
    There are lots of examples on the Web: http://www.google.com/search?q=c%23+onprerender

    If those don't help, why don't you post your code here and we'll see if we can figure out what's wrong with it.
    Phil Weber
    http://www.philweber.com

    Please post questions to the forums, where others may benefit.
    I do not offer free assistance by e-mail. Thank you!

  3. #3
    Join Date
    Dec 2003
    Location
    Italy
    Posts
    250

    throwing event Page_PreRender

    Hi Phil,
    Thank you for your help.
    The problem was I forgot to put this line of code:

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

    #region Web Form Designer generated code.

    that's why the code into the Page_PreRender event never executed.

    Thank you very much for your help

Similar Threads

  1. Event not received by host
    By Jeff Yeager in forum VB Classic
    Replies: 1
    Last Post: 01-26-2003, 05:15 AM
  2. How long before the next version??
    By _CAG in forum .NET
    Replies: 146
    Last Post: 08-12-2002, 11:40 PM
  3. Re: App Object (fixes)
    By Rob Teixeira in forum .NET
    Replies: 129
    Last Post: 06-06-2002, 06:23 AM
  4. REPOST-from VB.dotnet.technical
    By Sachin in forum VB Classic
    Replies: 8
    Last Post: 09-09-2001, 12:29 PM
  5. Com+ Event Again
    By Arger in forum VB Classic
    Replies: 0
    Last Post: 09-29-2000, 03:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center