Thanks, so should I still keep this in its own class file and move it in to the main project. The other thing i do also which I imagine is bad practice is bind or set the value of the text box at the same time.? Thanks
User 4333461
Posts
-
Winforms Update form label from a class library -
Winforms Update form label from a class libraryHi, I was wondering if anyone could help me. I have a solution which contains three projects. One for data access , one for business logic and the other contains for the winforms them self and is set as the startup project. In my winform I create instance of a method which is in BLL project. This creates the controls dynamically based on some fields in the database. I also attach the button click evens in this class. On the button click event I need to update the text in a label. How would I go about this? If I move the class file in to the starup project I can update it by passing the form name and updating a property. But I would like to keep the class file in the BLL project. Can anyone help? Thanks
-
High CPU on websiteHi, I was wondering if anyone could help me. We have a number of websites running on our server and the IIS process was causing high CPU. To narrow this down we put each website in to its own app_pool to help identify the website. We now know which website is causing the problem however we don't know what part of the site is causing it. This could be down to the coding etc. Is there any tool I could run/install to help identify the code or area of the site causing the problem? Any help would be much appreciated. As a temp fix we are recycling the app_pool every couple of hours to keep it down. Many thanks