Wednesday, 11 March 2009

MasterPage and web.config

After sorting the database connection, there was still some problems with the page loading. As it was showing the same error page given before. This time the page was tested without debugging.



The debugging is not enabled as it creates problem in the web.config file when it is deployed to a web server as it is mentioned in the dialogue box above. So I ran the without the debugging option.


There was also issue using the MasterPage on the webpages, masterpages maintain the consistency and functionality of the site however there were issues concerning the usage. Problem was if the asp.net page is being developed on 3.5 and .Net framework is different such as 2.0 then this problem occured. The master pages was not compiling on the web server. So the use of masterpages was a problem and had to be removed from the project.

It was mentioned that the web.config file should be removed from the website folder to prevent this error, however even after removing the web.config file from the site it still gave th error. The webpages were designed without the use of the Master Page.

database connection error

As I have uploaded the website online, it was giving the error that it was having a 'server error'






After getting the error I then sent Nick an email for the server error, as I felt that it was an error from the server side, as when it was tested on the local server on my machine it did not give any problems.




It was mentioned I configure the web.config file to see the problem. The web.config file was configured as it was mentioned on the error page, by putting customerror tag. After putting the tag and running the website it listed the error shown below.



The error shows that there is a problem with the database connection as it was not a valid path. After sending the error message to Nick I got the database path which was needed to connect to the MS Access database using OLE DB connection string.


The current database path was using the local host server connection, but when the website was uploaded on the server the connection path changed and it was no longer able to recognize the database path. Even though the database path was using the server tag = ~/database/mim0444cw1.mdb it could not locate the directory. So the full database connection path for the server to my database was used.





This solved the issue for the database connection.




















Sunday, 8 March 2009

Google search domain

First the domain will have to be submitted to google, and then the verification process stated that the meta tag will need to be inserted, which is shown below.









Then it showed that the site verification was complete on the google webmaster.










then after verifying the website, and submitting to google for the URL, it was then google search with the domain name of my site www.dhakawear.com and google search listed it on the search pages shown below.


Saturday, 7 March 2009

Implement scrolling records

In order to get the scrolling recrods to function, first the grid view was chosen, it is simple way to display records from the database, however it is restricted in its design features.







then the accessdatasource is configured to show records from the product table, here we will show products only for women.






the sql query is set to products where records with the gender value of 1 is retrieved.




Then to enable the scrolling of records the page selection from the gridview is selected.












Then the pager settings are configured to next, previous, last.




Friday, 6 March 2009

Task 3 URL forwarding-email-forwarding

For forwarding the email first the email account was created.




Email forward process is shown the email address that it would be forwarded to is displayed on the forward email




Forward domain URL to web server account.


Web page design

Master page designed will be used on all the web pages it is shown below.





Home page for the website is shown below.



A table is create to display record from the one category (women), another table to the left is created to shown (men) category.

Page to display the records from the database is shown below.




It uses the same master page , however it now uses gridview to display the records.

Monday, 2 March 2009

Page load error




Server error after configuring the web.config file there is problem with the database path.



Having developed the home page and testing it locally it was succesfully running. Shown below.
















After transferring the webpage to the university server it however gave this error.












As the page was working perfectly I did not figure out what the problem was, so I searched on the google groups and found posts relating to the page load error. I found out that the server supports Asp.net 2 after checking my website it was built on asp.net 3.5 which the server does not support so I had to configure the site to run on the asp.net 2 version shown below.








After configuring it and copying the updated site to the web server it gave no error.