ASP Coding
After the bad events of Thursday and Friday I finally managed to do some work over the weeked….and luckily I managed to get ALOT done, this did involve staying up till 2am Sunday Morning! Then working solid from 9-2 on Sunday…but my gallery is nearly complete.
Over the last few days I’ve got the Links from the Gallery to the PhotoDetails page working, the login working, the logout working, the My Photo’s working, and today got it to display the Average Rating int he Gallery and My Photos page…but not yet on the Photo Details.
There were some problems though, for instance on Sunday at about 2 some of the code didn’t work, and it kept coming up with an error (can’t remember what) but it didn’t like some code…I got very confused with it but had to leave it because I was going to a Football game which I couldn’t miss!
I get back from the match a few hours later, don’t do anything to the code just run it and it works! Which confused me a bit as I had no idea why…on Monday in the Tutorial it worked fine as can be expected, I show Kat, Claudia and Ollie the site and everything I had done so far worked.
I look back at my code and it’s messed up! There are “tab” spaces between words for example on one line it was Response.Write(“Loca tion”) when I try and get rid of this space it puts it back again. Anothr error was with Response.Write(rs.Fields(“Description”).Value) instead it had Response.Write(rs.Fields(“Descript”).Value) I close the page without saving it and re-open it but now it gets rid of all my Writes and instead leaves Wr…which means I have to put them all in again and also everynow and again it would get rid of a ‘(‘ or a ” or ‘<’ which is very weird.
I put everything right again, save and run it and it comes up with the same error as it did the night before…I go home to work on it and then it works again which threw me completely as I hadn’t done anything to it.
I leave it (don’t want to mess it up again just in case) and decide to leave it working till I can ask Mark in the tutorial on Tuesday. Which I did and he went through the code with me, I understood what it did and how but going through it with Mark gave me a better understanding of it now, so if it stopped working again I knew why and how to fix it (I hope).
Now I just need to work on my ratings, I’ve got the Average Rating to show up but not to write to the database so need to tackle that tonight, so over the next few days I can tidy up my code etc.
Online Photo Gallery
This assignment is going rather well (I think) I’ve done the most work on this (this is probably due to the tutorial sessions we have each week) but I’m not as far into it as I would have hoped.
So far what I have is the log in page (allowing the user to type in their e-mail address and password) which takes them to the welcome page (I have the memeber’s name show up as well).
The gallery page is also working…well part of it. When you type in the title of a photo and press search it’ll only show that one, and when the search button is pressed again everything is shown. At the moment, you do have to type in the whole title and not just part of it, I’ll be working on the code to change that later on just glad it’s done.
I haven’t done the links to each page (so when the photo is clicked it’ll bring up the details of it)
Today I’ve been working on the My Photo’s page, and this is when my computer started having problems (it would take forever to load this page when I run it in the browser, and I don’t know why) this meant I couldn’t do much work on it as I had no idea if it worked, and if it didn’t work why not (the debug wouldn’t run) I have however got it to show the first photo according to the member (although this has only been tried with the first member same with the Welcome page) and I haven’t yet been able to get it to show all the photo’s by that one member. (again when I go to test this the browser (both firefox and IE) take forever to load and then become “Not-Responding”.
I have just tried the pages on a different computer (to see if it works fine on there, and if need be edit the pages in Notepad) and for some strange reason, it doesn’t want to work…when I log on it goes straight to the LoginFail.aspx page and instead of displaying the site it shows the code instead, all of it including the ASP! And it doesn’t want to accept the username or password even though I know it’s right (copied and pasted both the username and the password) I even put the new Database location in (as on the computer I was working on it was drive F but on the other one it’s drive L) so am totally confused as to whats going on…and getting very annoyed too!
2nd Assignment
We got our second assignment from Mark yesterday (well not the brief just roughly what we need to do) when he first told us I thought Oh Crap how the hell am I going to do that!
But yesterday in his tutorials I was thinking about it again, and realised that it doesn’t appear to be as hard as I orginally thought it would…that is of course before I’ve started it, so I’ll probably eat my words in the not too distant future.
Should be getting the brief either today or in the next few days, when I can hopefully read through it and be able to break it down to easier tasks that I can do.
I’ll need to get the VBStudio software this time, was meant to for my first assingment (the number game) but never got round to it, but I think it’ll be very helpful if I got it this time as it means I can work on it from home and not only in the tutorial sessions at uni.