|
-
Jan 15th, 2004, 03:43 PM
#1
Thread Starter
Lively Member
Any ideas?[Resolved]
I am curious if this would be a feasible idea. I am wanting to create an app that allows a user to build a form the way he wants. I can do this easily by creating controls dynamically where the user wants. I then store the information of where he put them and so on in my database. The user can also set what table and field in the database he wants to link that control too. This I have done in my app.
Here comes the tricky part.
I am curious what would be best.
I can make this into a web page and use web forms or I can create a windows form for these too load back up in on the client station by reading the values from database
I would think web would load faster not sure though.
If I use web then i assume i would be using ASP Pages.
Which would be the best way to go....OR is there another way anyone would suggest.
Thanks
Last edited by OUSoonerFan; Jan 23rd, 2004 at 10:29 AM.
-
Jan 22nd, 2004, 01:20 PM
#2
Thread Starter
Lively Member
-
Jan 22nd, 2004, 01:51 PM
#3
Addicted Member
I am not sure why you would want to allow a user of your web site or windows application to create a page or form. So I am going to speak in terms of a tool to help you build basic application framework tuned to a specific project need.
I have developed several tools in the past (Coldfusion mainly) to speed production of my web sites. What I would do is create a site manager with navigation. Then I would build a page-builder page. This would include navigation, header, footer, basic content like forms, and data connection and queries. Most of those items are pre-built and just included on the page as a template. The way I did this was the page-builder would write the code to a new web page (CFM in this case) with all the code logic written. Then I also had it write another page that was a structure or resource that could be re-read by the page-builder to re-write or change items on the custom page. Now I have done the same thing by storing information in a database about the content of the page. Either way it didnt matter how fast the information was retrieved or written (which was not noticeable at all) to me because it was a personal tool.
-
Jan 22nd, 2004, 05:02 PM
#4
Thread Starter
Lively Member
I think i am explaining this wrong
Let me try again
Scenerio,
Agent logs into machine...they get a call. A script pops up showing informatin about the call.
this script needs to be created by the end users boss. each script the boss builds will access fields in a SQL database that the boss specifies.
this is not like a code script...it is a page containing field boxes, buttons, text, and etc.....
any ideas/
thanks again for help....
-
Jan 22nd, 2004, 10:51 PM
#5
Addicted Member
Yes. The scenario I explained is this:
If you write something like an administration site for the website which contains pages that modify certain base data that is used by the main site like categories and user accounts, etc. You can also write a page that writes a page (htm, aspx, etc.) The page writer can write the code that displays textboxes, list boxes, etc. i.e. in ASP.NET:
VB Code:
imports system.io
Function WritePage(ByVal strFilePath as string, ByVal strFileName as string) as boolean
Dim strWriter as stringwriter = File.CreateText(strFilePath & strFileName)
strWriter.WriteLine("<html><head></head><body><asp:TextBox id="TextBox1" runat="server"></asp:TextBox>")
strWriter.close()
return true
End Function
Of course you would put breaks and tabs after tags if you want the page to be correctly formated. But this will created an aspx page that displays a textbox server control. When the user calls the page they will see all the items that the "boss" created for the page.
Now the page that the boss uses to write the page could have for example:
----------------------------------------------------------------------------------
Filename: [TEXTBOX HERE]
Add New Item: [DROPDOWNLIST] <--- this would have a list of html or server controls
Item Page Order: [TEXTBOX] <--- Integer that decides what order the new item would be displayed on the page
Item Label:[TEXTBOX]
[BUTTON] <--- a button to click to add the new item which the info could be stored in a database.
---------------------------------------------------------------------------------
When the "boss" is done adding items and whatever else you include they can go to another page that maybe has a dropdown with the filenames that have been added and click a button say called "Write Page" and that will call the page writer routines to write the page and add it to the websites directory. Now you have a new page auto-created by whomever that can be used interactively as in any other aspx page.
-
Jan 23rd, 2004, 10:29 AM
#6
Thread Starter
Lively Member
Thanks,
I will look into that approach more....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|