Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Building Controls / July 2003

Tip: Looking for answers? Try searching our database.

Basic Question

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mark Fox - 31 Jul 2003 12:09 GMT
Hello,

    I am not sure if this is possible, but it's a simple
enough situation that it seems as though it would be.

    I have a page main.aspx with a couple user controls
in it Control1.ascx and Control2.ascx.  I am attempting
to figure out how to hook up an event handler of some
sort in the user controls so that when the page is
submitted, I could handle it.  When I developed a custom
server control I did this through implementing
IPostBackEventHandler and IPostBackDataHandler, but I
don't know how to do this in a user control.  I tried
implementing the two interfaces in a user cotnrol, but
they didn't work.  Thanks for your help!
Teemu Keiski - 31 Jul 2003 14:29 GMT
Well, generally thinking you could expose a public event on the Page that
the user controls then specify handlers for it (that is called when Page
raises the event). But what kind of event it is about? What you have tried
for now? Please provide bit more details.

Signature

Teemu Keiski
MCP, Designer/Developer
Mansoft tietotekniikka Oy
http://www.mansoft.fi

AspInsiders Member, www.aspinsiders.com
ASP.NET Forums Moderator, www.asp.net
AspAlliance Columnist, www.aspalliance.com

> Hello,
>
[quoted text clipped - 11 lines]
> implementing the two interfaces in a user cotnrol, but
> they didn't work.  Thanks for your help!

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.