lost event problem

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi

I have problem that when I am upload my application to the client server, I
am losing buttion event on some pages. on some pages button event is working
fine ro some pages is not working. I am not able to find any solution so
plase help me out this problem.

regards,
bhavik
 
Hi!

I've had this behavior when copying and pasting webcontrols with the wysiwyg
editor in Visual Studio. Events have a tendency to be removed when this is
done. Can you confirm that the event handlers are added in
InitializeComponent()? I.E. a button named btnOK should have a line like
this in C#:
btnOK.Click += new System.EventHandler(this.btnOK_Click);

Unless you're writing VB.NET of course, then I think it should be enough
with the handles keyword on the method. Please post what language you're
using, if it's VB I have to pass. :)

HTH,
L-E
 
Hi Lars-Erik Aabech

Thanks for valuable replay, but this is not solution of my problem. I tell u
the procedure how I am uploading to the client machine.
First we check all page events. If all page events are working fine then we
make a web setup of our application. We run that setup
On our location machine than after we upload all pages to the client server
which are contain in setup. Like aspx pages, all .dll, web.confg, global.asax
and etc…
So there is not problem of event lost in event handlers in
InitializeComponent(). We are using C# language.
When we check setup pages then all events are working fine but when we
upload to the client machine at that time events are lost.
I am not able to understand what problem with client server.
 
Back
Top