Re: copying code of event of user control automatically

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



manojrane2000@xxxxxxxxx wrote:
hi,
how can  i copy code of event of usercontrol in form on which it is
placed  automatically. whenever control is dragged to the form.


Why would you want to do this? If you want the code to run whenever the event is fired, handle it in the usercontrol before firing the event.


Chris
.



Relevant Pages

  • Re: Instantiate/Load UserControl from DLL
    ... Would you mind giving out the code for FindControlQ? ... UserControl control = packageManager.GetControl; ... does not execute/interpret the actual ascx file that has the HTML ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Instantiate/Load UserControl from DLL
    ... Code Snippet Begin ...] ... UserControl control = packageManager.GetControl; ... does not execute/interpret the actual ascx file that has the HTML ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Dynamically Loading a UserControl
    ... only one user control is being rendered. ... SelectedIndexChanged event do a Server.Transfer and apend a QueryString to ... Requestquery string to know which control to load. ... > keeping track of what UserControl to load upon a page being posted back. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: "The system cannot find the file specified" appears peridically in runtime
    ... As for your questions - pix:DispOfficeMajor is indeed the usercontrol. ... before - the control is perfectly compiled. ... "public" part, root folder of the website - in which that control resides, ... As for your second suggestion - Reference problem. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Refreshing a user control
    ... Calling a public method of a UserControl that takes care of changing some ... grid (or other control on the page itself) gets bound to some data sourse; ... initially that label of UserControl gets its Text property set ... DeleteCommand event gets ...
    (microsoft.public.dotnet.framework.aspnet)