?
Solved

detecting postback in a server control

Posted on 2007-10-16
4
Medium Priority
?
463 Views
Last Modified: 2012-08-13
i've build a custom server control which inherits from webcontrol. inside it i have serveral check boxes which does a autopostback. I have some common functionality that should be triggered on a postback regardless of which control that fired it. so my question is this. how can I detect a postback in the server control in the same way as i would use page.ispostback if i was outside the server control.
0
Comment
Question by:oslonet
  • 2
  • 2
4 Comments
 
LVL 16

Expert Comment

by:McExp
ID: 20088751
you can still use IsPostback in the Page_Load event of custom control
0
 

Author Comment

by:oslonet
ID: 20088830
how do i access this inside the custom server control. i tried adding:

protected void Page_Load(object sender, EventArgs e)
        {

        }

however this function was never accessed on runtime
0
 
LVL 16

Accepted Solution

by:
McExp earned 2000 total points
ID: 20088944
The event you are searching for is:-
        protected override void OnLoad(EventArgs e)
        {
           //Code here          
        }
0
 

Author Comment

by:oslonet
ID: 20089054
thank you that worked just perfect :)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month14 days, 16 hours left to enroll

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question