Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Events are not firing
Message
From
08/11/2004 12:43:14
 
 
To
05/11/2004 16:06:02
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
00958327
Message ID:
00959254
Views:
15
I figured this one out myself...

I guess it is bad practise to bind a control in the OnPreRender event. I moved the lines of code refering to binding of the controls to the Page_Load event and everything worked fine.



>I have placed a control break in the InitializeComponent area of the UserControl and found that when I click on one of the Edit or Delete buttons that it fires the InitializeComponent code. Does this make any sense?
>
>>Hello,
>>
>>I am using the mmDataGrid object and have tied the UpdateCommand, DeleteCommand, EditCommand and PageIndexChanged commands to the grid. They are not firing. They were working.
>>
>>I have checked to ensure the events are in the InitializeComponent area of the UserControl. I have double-clicked on the methods in the grid object to make sure they connect with the scripts. I have placed a control-break in one of the methods to see if the program will stop there. Unfortuneatly it did not stop or process any of the code.
>>
>>I have also deleted the connection to the code and reconnected the code to the object, with still no effect. I have had this problem of disconnected code before, but have always been able to connect it and get it running again.
>>
>>This time I am stumped!!! Any help would be appreciated.
Gordon de Rouyan
DC&G Consulting
Edmonton, Alberta
Email: derouyag@shaw.ca
Previous
Reply
Map
View

Click here to load this message in the networking platform