ASP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreASP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 23rd, 2012, 07:20 AM
Lenjaku Lenjaku is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2011
Posts: 4 Lenjaku User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 44 m 3 sec
Reputation Power: 0
Project help-how to save asp files in the db

I am working on a project for my college and I need to add lessons to a system.

Loading a complete lesson for my system is currently done by loading the text files from the database (which are currently stored as text lines)
adding some exercises (I use templates I wrote that consist the buttons and all that is needed, and I only get the text for
question and answers from teh database)

All that is done by flags where to load what.
It reads lesson text adds the templates for ex using the ex (questions and answers) text (from db) as needed.

I was wondering how it should b done.
Obviously my method is wrong.

Maybe I could make it so the lessons files stored in the db are created by templates which combine the ex in them and are saved and loaded as whole in/from the db(so when I load them I dun load parts of the lesson and parts of the ex using flags but simply the lessons as is)
and they will b saved as binary format so they use less space.

the problem would only b with redirection which I will have to change cause the page wun exist untill created.
it will b like loading the same page only with different output each time due to the user selection.

I saw some examples on the net....ppl simply write asp pages. I could do that, obviously writing all manually calling for templates functions to add repeatitive structures is the easiest way I dun have to deal with db storing anything...

Please tell me how u would do it :S

Reply With Quote
  #2  
Old April 23rd, 2012, 09:01 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Jun 2003
Posts: 14,233 Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 14 h 15 m 56 sec
Reputation Power: 4445
VBScript has Execute and Eval if you want to store the asp source in the DB and run it dynamically. You should carefully consider before using this method imho, there are lots of potential problems, like poor performance and security holes.
__________________
======
Doug G
======
It is a truism of American politics that no man who can win an election deserves to. --Trevanian, from the novel Shibumi

Reply With Quote
  #3  
Old April 23rd, 2012, 11:41 PM
Lenjaku Lenjaku is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2011
Posts: 4 Lenjaku User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 44 m 3 sec
Reputation Power: 0
Thank you for the reply.
I don't mind security holes since it is a project for school.
I just thought what ppl usually do I mean woudln;t it b wierd if I had tones of pages just for lessons? (maybe not if kept in lesson folder).

I am not trying to make things complicated but to keep them orgenized so I'd get a good grade.
If keeping them as asp pages in a folder is ok I';d rather go with that but if it;s wierd and space taking and the instructors coming to test me would think it is just an outcome of laziness I wouldn;t wnat that >.<;

Reply With Quote
  #4  
Old April 24th, 2012, 03:49 AM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Jun 2003
Posts: 14,233 Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level)Doug G User rank is General 52nd Grade (Above 100000 Reputation Level) 
Time spent in forums: 1 Month 4 Weeks 14 h 15 m 56 sec
Reputation Power: 4445
Visit some tutorials on database driven web applications which should give you an idea. Typically you'd have one set of code that would dynamically generate user pages from text data stored in the db.

[[www.w3schools.com]] is one place to find some asp and database samples.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreASP Programming > Project help-how to save asp files in the db

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap