Archive for the 'Uncategorized' Category

Re-exam

Re-exam will take place on Tuesday Feb. 19th at 13:00 to 15:00. The exact time schedule is available at the exam schedule page.

Q&A + Supervision

This morning, there was nobody at the Q&A session in AUD4 — we trust that this is because you all are doing well and there are no problems or questions. Remember that if you have questions, post them on the project page in order to share with everyone.

Since nobody showed up today, we will alter the procedure a bit for the coming two weeks. Instead Dario and I will have office hours, where you can consult with us.

  • Jakob will be available on Mondays (i.e. Dec. 3th + 10th) from 13:00 to 15:00
  • Darion will be available on Tuesday (i.e. Dec. 4th + 11th) from 09:00 to 12:00

If you need our help, please send us an email on beforehand so we know that you’re coming.

EF & ASP.NET example and office hours

We have had the last C# lecture this week. Form next week I will be available at ITU on tuesdays in 4D04.

Today at lecture we went through and example of how the entity framework can be used with the data binding capabilities of ASP.NET component. We have also seen what changes are needed when entity relations are involved. Note that data binding is a good tool for prototyping, but that in production code you might want to have more control over your database connection and queries.

Here is the code produced during the demonstration. Note that the example is associated to the database on my own machine. To run the code you need to change the database connection and generate the needed tables and data.

Hint on User Administration

While developing a prototype, you might what to use the Login and Authentication functionality of ASP.NET in your web application. ASP.NET provides you with a Login control and a CreateUserWizard control. Both these controls expect a specific table structure in a database in order to work.

This might not be ideal if your backend system already has a dataset for users. A simple way around this is to use the CreatedUser event from the CreateUserWizard. Within the event you can then add the code to create a uses within your backend system (sometimes it might be useful to extend the User table in the backend to incorporate the user_id of the ASP.NET authentication framework so things can be easily matched).

You can also use the customize option of the CreateUserWizard control to add extra fields.

MySQL and VS.NET 2012

There seems to be a problem with VS.NET 2012 and the MySql connector. In order to make the connector work within VS you have to install the latest beta version of the MySQL connector.

The problem is that this new connection does not work with the version of MySQL installed at ITU. If you want to use the new connection you will then have to host your own MySQL server or find a hosting that has a compatible version.

ASP.NET and Entity Framework Tutorial

Here is a very interesting tutorial on using ASP.NET data binding and the Entity Framework.

http://www.asp.net/web-forms/tutorials/getting-started-with-ef

You might find this very useful during your project.

Here is also a copy of the web programming chapter from my other book bevics2010_ch18. Use the same password as last time in order to open the file.

WinForms example code

As agreed in class, I am making the Todo List example available for you. The code follows the example from the book. In addition, it shows how to work with the Entity Framework rather than a simple collection.

WinForms_Example.zip

Extra Material for WinForms

The material related to WinForms in the C# book is very shallow. For that reason I have made available for you two chapters from another book. This new material will not be part of the compendium for the exam, it is there just to give you a better reference than the one you have (the internet is always a good place to find more material !).

You will shortly receive the scanned PDF of the selected chapters via email, including the needed password.

Course Evaluation is coming up…

… from 5 November we will be looking into how you experience the quality of our courses – you will be invited pr email. So please participate in the evaluation and tell us what works. And also what doesn’t work, so that we can do something about it. We are looking forward to hearing from you.

C# Assignment 43 is now voluntary

Today at lecture we have discussed the status of the hand-in assignments, since there are quite a number of groups that have failed them. It seems, that most of the burden (at least for some of the groups) comes from the C# assignments. There were mixed feeling on whether the C# assignments were too long or not. It has, therefore, been agreed to do the following:

The C# part of assignment 43 is not part of this week mandatory assignment (Networking with C#).

Note that Part I and Part II are still mandatory, so you still have to pass 8 out of 10 assignments. Groups that would like feed back on the assignment are still welcome to hand it in as as usual.

This should give you a chance to catch up, though I still recommend you do the assignment.

Next Page »