Go Back   CodingForums.com > :: Server side development > ASP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 01-24-2003, 06:45 AM   PM User | #1
charon
Regular Coder

 
Join Date: Jun 2002
Posts: 317
Thanks: 0
Thanked 0 Times in 0 Posts
charon is an unknown quantity at this point
link the doc/excel file instead if creating web pages

hi,

We are property company and we need to update the interest rate which send by respective bank regulary, to save time, would it be ok for me to just add those document/excel files in the Link instead of updating it on the Web Pages, it is really time consuming.??? It is a normal practice???


Please advice!
charon is offline   Reply With Quote
Old 01-24-2003, 07:41 AM   PM User | #2
raf
Master Coder


 
Join Date: Jul 2002
Posts: 6,589
Thanks: 0
Thanked 0 Times in 0 Posts
raf will become famous soon enoughraf will become famous soon enough
I don't quite understand the situation.
But my moto is : "code once, run forever". I almost never update the webpages content.

I don't quite see why you shouldn't create a databasedriven webpage that displays the new data. How do you receive the data and where/how do you store them?
(I'd set up some fully automatic proces)
raf is offline   Reply With Quote
Old 01-24-2003, 01:52 PM   PM User | #3
justame
Regular Coder

 
Join Date: Jun 2002
Posts: 676
Thanks: 1
Thanked 0 Times in 0 Posts
justame is on a distinguished road
cha...
/me would just a rename® the newest just a rrivedfromthebank® xls to say for example...
todays.xls

n' thennn in the page??? have the 'link' going to ...<a href="todays.xls">for just a uptodate® rates click here</a>

n' thattt way??? you just a have® to rename the 'file' n' upload it...vs having to just a change® the link in the page alll the time...

'cept doing its /mes way??? there are just a two® drawbacks...
1...the newest ...todays.xls... file would just a overwrite® the older one currently on site...
2... just a depending® on howww the viewer has their 'view xls pages' properties set??? theyyyd either a...just a view® it in the prog...orrr b...theyyyd just a haveto® download the page n' thennn open it...

sooo ifin' youre reallly wanting to give those newest rates the fastest/easiest way??? you should continue to just a change® the numbers/rates on the page itself vs having the viewer just a click® here to get the rates...

just a suggestion® or two...goodluck...:O)))
justame is offline   Reply With Quote
Old 01-24-2003, 04:24 PM   PM User | #4
BigDaddy
Regular Coder

 
Join Date: Sep 2002
Location: Bugaha, NE
Posts: 330
Thanks: 0
Thanked 0 Times in 0 Posts
BigDaddy is an unknown quantity at this point
I don't see one problem with that whatsoever.

That's essentially what you're doing every time you change any page on your site.

If you don't want to lose the old one, I'd recommend creating a folder named "old" and copy each previous-day's file into that before saving the new one into the directory. Go into the old folder and change the name of it to whatever the date was if you want an archive.

Or just change the name on it before you copy the new one in.
BigDaddy is offline   Reply With Quote
Old 01-25-2003, 12:21 AM   PM User | #5
whammy
Senior Coder

 
Join Date: Jun 2002
Location: 41° 8' 52" N -95° 53' 31" W
Posts: 3,660
Thanks: 0
Thanked 0 Times in 0 Posts
whammy is an unknown quantity at this point
Is this information already available in a database? If not I'd make one, and then just generate an Excel file on the fly... check out this post, it has a number of solutions to easily creating an Excel file on the fly from database information:

http://www.codingforums.com/showthre...ght=excel+file
__________________
Former ASP Forum Moderator - I'm back!

If you can teach yourself how to learn, you can learn anything. ;)
whammy is offline   Reply With Quote
Old 01-25-2003, 06:29 AM   PM User | #6
charon
Regular Coder

 
Join Date: Jun 2002
Posts: 317
Thanks: 0
Thanked 0 Times in 0 Posts
charon is an unknown quantity at this point
hi,

Guess I need to explain my problem again.
Actually my problem is very simple.
Due to the format of my excel file is not fixed and too complicated, so I can't do it as database driven page. (I know there have ways to do it, but i have no idea).

The excel file which contain the bank interest rate for buying properties are sent by banker to our sale person, and our sale person will upload the files via administration directory, the files will be replaced. If I want to present it on web page format, then I need to manually create the page and change the figure whenever there has changes.

I create Link for user to access to the file as below:
<font face="Arial, Helvetica, sans-serif" size="2"><a href="pid/pidef.xls" target="_blank">End Financier</a></font>

attched herewith the sample of my excel file

My concern is, can I do like that, is it consider a normal practise??

Please advice!
Attached Thumbnails
Click image for larger version

Name:	untitled-1.jpg
Views:	105
Size:	38.0 KB
ID:	625  
charon is offline   Reply With Quote
Old 01-27-2003, 09:05 AM   PM User | #7
raf
Master Coder


 
Join Date: Jul 2002
Posts: 6,589
Thanks: 0
Thanked 0 Times in 0 Posts
raf will become famous soon enoughraf will become famous soon enough
I really don’t understand what you’re trying to do. If you want to display the content of 1 or more cells from your excel file OR you want to display the whole workbook (that change overtime in that excel-file), then just check out the help-function in excel (contains a whole list of helpfiles on webpublishing). You can create a sheet in excel that contains only these data (that refers to data on other sheets, using a function), and display this sheet.

Of coarse this means that you need to get the excel-file updated somehow (still not clear how you’re doing that). You could do this by creating a (second), interactive, webpage (with user restrictions, so that only you can change the data in the spreadsheet. The spreadsheet will be updated, the data to display will be updated, and the users get an updated value in their browser.

I don’t think it’s good practice (but then, I don’t like spreadsheets). I’d focus on the way you get the new data, and to automatically process it. Should be easy. Storing this data in a txt or xml file and then just displaying this (using FSO) in your webpage.

But maybe I’m completely off.
raf is offline   Reply With Quote
Old 01-27-2003, 02:22 PM   PM User | #8
BigDaddy
Regular Coder

 
Join Date: Sep 2002
Location: Bugaha, NE
Posts: 330
Thanks: 0
Thanked 0 Times in 0 Posts
BigDaddy is an unknown quantity at this point
I think the issue is that charon does not have access to the data other than the excel file that gets uploaded daily. It is not in a database, nor can the people that provide it be convinced to make it accessible to a database....right?

Ultimately, if the user only wants to do it one way, that's pretty much the way it has to be done.

If that's the case, I see no problem with just replacing the old files in the directory with the new one.

Having said that, I would suggest as a long-term solution to see if you can maybe provide some sort of data entry page to allow them to enter the information in, and it would be stored in a database--if that's possible.
BigDaddy is offline   Reply With Quote
Old 01-28-2003, 01:04 AM   PM User | #9
whammy
Senior Coder

 
Join Date: Jun 2002
Location: 41° 8' 52" N -95° 53' 31" W
Posts: 3,660
Thanks: 0
Thanked 0 Times in 0 Posts
whammy is an unknown quantity at this point
I would totally agree with that - but first I would check to see if they could just send you a file you can easily parse (i.e. XML, .csv, etc.), and you could use some of the techniques above so all that would need to happen is someone uploads the file, or whatever, and your page is automatically updated.

Almost any company will easily be able to provide this, I would think especially a bank.
__________________
Former ASP Forum Moderator - I'm back!

If you can teach yourself how to learn, you can learn anything. ;)
whammy is offline   Reply With Quote
Old 01-29-2003, 01:35 AM   PM User | #10
charon
Regular Coder

 
Join Date: Jun 2002
Posts: 317
Thanks: 0
Thanked 0 Times in 0 Posts
charon is an unknown quantity at this point
access and have a look!

Thanks whammy and BigDaddy....

For better understanding, may be your can access to my site and have a look.
you access to http://www.setiahomes.com/contact.asp?#endfi

and click on any od the link under the End Financier.

This time sure you all 100% understand what I'm trying to say.

The excel files will be upload by our Banker/Sales Person (if the bank send the file to them), and the old file will be replace.

Thanks so much for your time.
charon is offline   Reply With Quote
Old 01-29-2003, 02:19 AM   PM User | #11
whammy
Senior Coder

 
Join Date: Jun 2002
Location: 41° 8' 52" N -95° 53' 31" W
Posts: 3,660
Thanks: 0
Thanked 0 Times in 0 Posts
whammy is an unknown quantity at this point
I see... can't you just have them upload the file with the same filename each time, which will overwrite the existing file?

Then you don't have to update anything.
__________________
Former ASP Forum Moderator - I'm back!

If you can teach yourself how to learn, you can learn anything. ;)
whammy is offline   Reply With Quote
Old 01-29-2003, 03:53 AM   PM User | #12
BigDaddy
Regular Coder

 
Join Date: Sep 2002
Location: Bugaha, NE
Posts: 330
Thanks: 0
Thanked 0 Times in 0 Posts
BigDaddy is an unknown quantity at this point
Lol....yeah, I think that was the question.
BigDaddy is offline   Reply With Quote
Old 01-29-2003, 02:09 PM   PM User | #13
justame
Regular Coder

 
Join Date: Jun 2002
Posts: 676
Thanks: 1
Thanked 0 Times in 0 Posts
justame is on a distinguished road
Quote:
Originally posted by whammy
I see... can't you just have them upload the file with the same filename each time, which will overwrite the existing file?

Then you don't have to update anything.
just a ^5s® there wha...n' couldnt have just a said® it betterer /meself...hehehe...ohhh waittt../me rereads her just a first® post...:O))) .../me did /me did /me did...lol...
justame is offline   Reply With Quote
Old 01-29-2003, 04:19 PM   PM User | #14
Roelf
Senior Coder

 
Join Date: Jun 2002
Location: Zwolle, The Netherlands
Posts: 1,110
Thanks: 2
Thanked 28 Times in 28 Posts
Roelf is on a distinguished road
not everyone can read justamese
Roelf is offline   Reply With Quote
Old 01-30-2003, 02:25 AM   PM User | #15
charon
Regular Coder

 
Join Date: Jun 2002
Posts: 317
Thanks: 0
Thanked 0 Times in 0 Posts
charon is an unknown quantity at this point
hi, whammy,

yup, first i will check if the file exist by compare thier name, if yes, the the old file will replace...how is it?? OK or Not???)
charon is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:15 PM.


Advertisement
Log in to turn off these ads.