Important alert: (current site time 7/15/2013 11:49:55 PM EDT)
 

winzip icon

ASP Code Generator

Email
Submitted on: 6/1/2001 12:57:09 AM
By: Joel Konecny  
Level: Advanced
User Rating: By 30 Users
Compatibility: ASP (Active Server Pages)
Views: 57633
(About the author)
 
     the engine i am providing is an asp code generator that i am currently using on my website (www.intratelligent.com) to allow asp developers to upload access databases online and build simple asp interfaces to interact with their data. (insert / update / delete and reporting functionality). although it is coded in vb, it can be compiled into a dll to be used as an object referenced by asp. otherwise it can be run as a stand-alone vb app. i have included a screen shot and added commenting to my code to make it more understandable. if you do not have a lot of experience in vb and asp this will be difficult for you to modify although it can be implemented by anyone.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

6/1/2001 6:18:17 AMMalik Muhammad Younus Awan

Excellent work!!!
(If this comment was disrespectful, please report it.)

 
6/18/2001 2:36:38 PMRJ

This is a fantastic project.. Any plans to expand it so as to handle dependancies within tables, ie to add dropdown boxes to the HTML to limit the input ranges etc..?
5 Globes from me ;-)
(If this comment was disrespectful, please report it.)

 
8/26/2001 7:15:05 PMMichael

Dear Joel,
This is Excellent toll. Thank You, Thank You, Thank You !!!!!!!
(If this comment was disrespectful, please report it.)

 
9/26/2001 3:27:36 PMsteve

Joel,
One Word: AWESOME ! Thanks for the Code. I had been working on something like this for an oracle database -- you saved me hours of endless programming.

-- I am modifying to work with Oracle and other databases..a simple addition I've done so far is to allow for changing the field names -- only for the asp, not in the actual table (I'm using a Legacy Oracle db with fieldnames that are anything but friendly) ..

(If this comment was disrespectful, please report it.)

 
12/17/2001 11:04:19 AMJohn Ellsworth

Great work, Joel. And thank you for posting it.
(If this comment was disrespectful, please report it.)

 
2/1/2002 5:47:39 PMnasseroff

Hi,
I can not see and download the cod ??
thank you.
(If this comment was disrespectful, please report it.)

 
8/1/2002 8:23:51 AMDave

nasseroff, it's below the Screenshot.
All i gotta say is 'WOW' great work.
(If this comment was disrespectful, please report it.)

 
1/12/2003 5:19:40 PM

WOW, AWESOME !! it's an incredible Project, keep up with the good work, excellent work!
(If this comment was disrespectful, please report it.)

 
2/17/2003 7:55:35 PMJoel Konecny

thanks all. i am currently developing a code generator that is based off of the sql dmo (sql server). the generator is template based so it allows the user to customize code generation for many different things ~ i currently have templates to generate vb com code, for a data and a business class tier. it also generates many different types of stored procedures based on table design. the generator even includes an auditing tool (trigger generation). i will release source soon, but if someone would like to take a look at it early, e-mail me for source.
(If this comment was disrespectful, please report it.)

 
2/27/2003 3:46:45 PM

A REAL INGENOUS SOFTWARE ....
UNIQUE SOFTWARE OF ITS KIND..

HI, hope u gonna be fine & enjoying life.

Will u plz tell me that how can i retrieve the properties of each field for SQL & Oracle Databases..(as u are retrieving for Ms Access Database)

For Each objField In objTable.Fields
Erase arrProperties
For Each objProperty In objField.Properties ..........

AND is there any connection string foe Ms Access in DAO via DSN ?

Thanksfully,

Shujaat Kagathra.
(If this comment was disrespectful, please report it.)

 
3/3/2003 10:00:52 PMJoel Konecny

i would suggest using dmo for sql server as you are able to retrieve certain properties (extended) that you can not through adox. i have run into a few errors using adox and stretched it to it's limits. in my opinion microsoft has purposely inserted errors into retrieving certain db information to keep 3rd party tools from seemlessly integrating with their tools.
(If this comment was disrespectful, please report it.)

 
5/28/2003 1:58:57 PMkwickdoc

I couldnt believe this. One fo the few flawsly working submission in the planet.
(If this comment was disrespectful, please report it.)

 
6/29/2003 8:03:16 PMCrss B0NES

Finally, I had to do some small tweaking. But I got it to work over my remote connection. GREAT JOB!!! 5 Aqua Globes frm me.

Like the previous note says. Its good to find an example that actually works. WOW. Thanks again.
(If this comment was disrespectful, please report it.)

 
7/23/2003 2:30:21 PM

I'm sorry, but how do you open the ASPGen.vbp and interprate Form1.frm?

Thanks
(If this comment was disrespectful, please report it.)

 
7/23/2003 2:33:07 PMJoel Konecny

you will have to use visual basic to run this application. the vbp extension is a visual basic project.
(If this comment was disrespectful, please report it.)

 
10/29/2005 7:55:25 AMYasfir

When I run the code it creates the ASP files necessary,however it says "Duplicate data entered in Primary Key Field" even though this is not the case. Any Ideas????????
(If this comment was disrespectful, please report it.)

 
11/23/2005 5:43:35 AMG. B. Oladimeji

Thanks.
Your code generator is fantastic.
Thanks for the good job.
(If this comment was disrespectful, please report it.)

 
6/29/2006 2:33:05 AMsachinThamke

Hi
This is Greate Job u have done. Congrats. I m planning to start new project for asp.net 2005. will it work for that or not.

(If this comment was disrespectful, please report it.)

 
5/23/2007 8:23:34 AMsandeep

the best for code for ever in db to asp sytem
(If this comment was disrespectful, please report it.)

 
7/30/2008 1:00:10 AMalexloy

well i face the same problem as yasfir
which says "Duplicate data entered in Primary Key Field" first i thought is my database problem but even with no relation and remove primary key but still there is the "duplicate data enter ed primary key failed"....why???
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.