home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 1755
Discussions: 188,402, Posts: 2,243,608, Members: 232,631
Old January 6th, 2005, 12:37 PM   Digg it!   #1 (permalink)
Ultimate Member
 
Agent_Embryo's Avatar
 
Join Date: Oct 2001
Location: Sweden
Posts: 1,708
Send a message via ICQ to Agent_Embryo
ASP/JavaScript/Database etc...

Have to write an administration tool to add, remove and edit items in a database, in ASP. The database is Access (were it up to me I'd use PHP and MySQL, but it isn't so...). How would you go about this? I haven't written ASP in two years, so I'm a little rusty. I have done something similar before, and am digging around the code in that to see if adaptation is possible. Any suggestions about how each row would be put out? I'd like it to be simple to use and to have the option of deleting several items at once.

Also, how would you implement a JavaScript popup with an image on each item from the database. I have the image path in a database field for each item.

Agent_Embryo is offline   Reply With Quote
Old January 6th, 2005, 12:47 PM     #2 (permalink)
Real gangstas sip on Yacc
 
jkrohn's Avatar
 
Join Date: Oct 2001
Location: Suckas-ville
Posts: 4,549
Send a message via ICQ to jkrohn Send a message via AIM to jkrohn Send a message via Yahoo to jkrohn
This should iterate through everything
sSQL = "SQL STATEMENT"
set oRS = oConn.execute(sSQL)
while(not oRS.EOF)
'Iterating though each row
Respose.Write "Crap you want, " & oRS("field")
oRS.MoveNext
wend

Add is easy, make a form, post it to an add page and use the appropriate insert statement.
Edit, load it into a form using value="" to fill in the blanks, repost it onto the edit page and use Update.
Remove add a yes/no dropdown after each one with a value of the records id, or some other unique identifier. Give them all the same name and you will be left with name=valoue, value, value

Do a split and iterate through the resulting array with delete statements.

Jkrohn

jkrohn is offline   Reply With Quote
Old January 10th, 2005, 03:00 AM     #3 (permalink)
Ultimate Member
 
Agent_Embryo's Avatar
 
Join Date: Oct 2001
Location: Sweden
Posts: 1,708
Send a message via ICQ to Agent_Embryo
Right, the code for the "CMS" is coming together, although there are some issues.

I need to use a DSN-less connection for the database, meaning it will reside in the wwwroot , meaning I need a way of making it at least somewhat secure. I need a password somewhere, for the admin stuff. What is less bad, putting the pw in the code itself or loading it from the db? Loading it from the db would be worse, from what I can understand. Is there some way to envrypt the pw if it resides in the ASP code? How do I solve the security issues? Once again, I wish the host had at least SQL Server instead...

Also, haven't been able to straighten out the permissions so the db can be updated yet. But this is something I'll look into during the morning. I'm sorry if I type in a confusing way, I just got out of bed.

Agent_Embryo is offline   Reply With Quote
Old January 10th, 2005, 05:34 PM     #4 (permalink)
Ultimate Member
 
Agent_Embryo's Avatar
 
Join Date: Oct 2001
Location: Sweden
Posts: 1,708
Send a message via ICQ to Agent_Embryo
Right, so my main concern right now is the password bit.

If I understand it correctly, ASP has no built-in function for encrypting passwords using MD5 or similar.

Right now, my admin page is pw protected, but not in a secure way at all.

Suggestions, please.



/AE
Agent_Embryo is offline   Reply With Quote
Old January 10th, 2005, 05:40 PM     #5 (permalink)
Ultimate Member
 
Join Date: Jan 2003
Location: MA / NH
Posts: 1,497
Send a message via AIM to Blazer06
Blazer06 is offline   Reply With Quote
Old January 14th, 2005, 04:34 AM     #6 (permalink)
Ultimate Member
 
Agent_Embryo's Avatar
 
Join Date: Oct 2001
Location: Sweden
Posts: 1,708
Send a message via ICQ to Agent_Embryo
Blaze, I'm sorry I'm an amateur and integrating an encryption algoritm into ASP is beyond my abilities. There must be another solution for the whole password protection thing.

I mean the system I have now does work, but having the password in the script source feels less than perfectly secure, even if the server is setup right and doesn't allow for viewing script sources.
Agent_Embryo is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may 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
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Most Active Discussions
Is It Just Me? (2906)
Unarmed man on his stomach shot by .. (6)
Misery Loves Company... (2144)
New Build ( Finally ) (7)
CPU wont boot (7)
Building a gaming computer advice (5)
I think I just killed my computer w.. (24)
RCA 52Inch HDTV wont turn on (5)
Folderchat Weekday thread (444)
Recent Discussions
Please help! multiple problems! (4)
How to transfer music from iPod.. (0)
RCA 52Inch HDTV wont turn on (5)
New Build ( Finally ) (7)
Common Spyware Solutions (97)
How do you move a hard-drive to.. (4)
Laptop proccesor to desktop mob.. (1)
What is the best external enclo.. (0)
Partition Magic 7.0 (Unallocate.. (17)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 03:59 AM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28