Click to See Complete Forum and Search --> : Forum Help
fssoft
01-12-2004, 04:12 PM
k ummm..... i posted this in the JavaScript area and i guess it's not possible with JavaScript so i came here!
I wanted to know if it is possible to make a forum with ASP, like not your usual Database forum, one where it modifies the contents of the script or create a new page with content on it like say if you were to fill out a form and click submit and it creates a new page called say "new.html" now, when it is created you can add what content goes in that new page,like what they filled in the text box!
PeOfEo
01-12-2004, 04:30 PM
Yes it is possible in asp and asp.net. But why not use a data base, it is an esier and more organised solution for designing guesbooks forums weblogs and other things of that nature. You can append text file and there fore append .html files too, but doing it with a data base is just more powerful.
fssoft
01-12-2004, 05:53 PM
Oh my GOSH thank you for telling me this, the other people in the forum were telling me that you can't use JavaScript to create a forum, but you said you can create a message board or "Forum" with an HTML file and only HTML and JavaScript go in .HTML files right?
Since this is not the right forum, can you pease got to the Forum part in the JvaScript section or if you have MSN messenger can you add me?
e-Mail: FSSoft@hotmail.com
how do you make a new window pop up say like a password gat and then if the password is correct itchanges the window location of th browser it came from and not the pop up?
PeOfEo
01-12-2004, 07:20 PM
No, a forum cannot be made with java script, you can make it with an html file and asp or asp.net. You can use asp to put java script in html files, but you are definatly going to need asp or asp.net (or another server side scripts) to get it there to begin with. As a rule of thumb, you access server variables, to update files, to update data bases, and do secure logins / session state you always need a server side language. Always.
fssoft
01-12-2004, 08:38 PM
okay now i understand and now this is where it comes into the right topic:)
K aprox. how much ASP do i need to learn and APROX. how long will it take me to learn hat much and finally how do i use an ASP file on the web, because i went to view it as a "test" page before releasing, but it came up as a pop-up and it had nothing in it and here's the script i put in the .txt file
please tell me how to get my ASP files to work:)
<html>
<head>
<title>FS Soft Web Forum</title>
</head>
<body>
<%
response.write("Hello World!")
%>
</body>
</html>
PeOfEo
01-12-2004, 08:49 PM
If your server supports asp (you are looking at a server with a windows os and iis) then you just write the file, it is a form of scriping / programming so you are telling the server what html to write for you. You are having the server write your html according to your script. A basic forum is not much knowledge at all, a good forum can get pretty advanced. If you want something like mine (linked in my sig) you are going to need a pretty decent knowledge. Mine right now sucks, But I am working on a new version. I would say buy a book. In a month or two you will have the grasp of it to make lots of stuff. It really depends on your programming background. Do you know visual basic by any chance? If you have a good foundation in vb forget asp classic and use asp.net because it uses actual vb, not vbscript. It can also use c# which is more like java, so if you have java or c++ experience that would be the way to go. asp.net is far better then asp classic in almost every way, so if you are picking up a new technology pick it might be better to just start learning the newer of the two instead of the older of the two.
CardboardHammer
01-12-2004, 10:50 PM
Even if you don't have a VB background, go with ASP.NET over ASP classic anyways. If you've got to learn something, you might as well learn something better.
fssoft
01-13-2004, 06:43 AM
K thanx for wsrning me before i started learning ASP Classic :)
and i already know a fare-bit of JavaScript sooooo.......
and i might just want to learn ASP Classic because i want to learn it as fast as possible and it looks like ASP Classic is a lot faster to learn :)
But i will check out ASP.net and see
Thanx
ummmmm..........
Well what do you think would be faster and easier to learn?
PeOfEo
01-13-2004, 04:06 PM
asp.net has better language flexability then asp classic. If you want java script then so be it, JScript.NET. Just wanting to use java script does not limit you to asp classic. If I were you I would use vb or c# though because they are the two most commonly used. C# has a sytax similar to that of java or c++.
fssoft
01-13-2004, 04:10 PM
ok but does C# go in .html files like doesmost servers support it?
And in ASP.net how do you make it so when they press say a submit button it adds a variable to the "code" and everyone can view it so basically the only way to create a Forum without a DataBase, or is that even possible?
PeOfEo
01-13-2004, 04:14 PM
No you can make a forum by saveing data into a file, but that is a pain in the butt. A data base is much much more efficient. A data base will give you the ability to sort the data and select data without parsing it all into the form of strings and writing long algorythms to sort it etc. It will run faster and mean less code, and it will take up less space. All servers that have the .net framework and iis on them are going to support c# vb jscript.net j# and any other languages use to do asp.net in. http://europe.webmatrixhosting.net is great trial asp.net hosting, it is microsoft sponsored so basically you get all of the features of a for pay h ost such as uncapped bandwidth, sql server, no ads, smtp access, etc, all for free because m$ is generous.
fssoft
01-13-2004, 04:23 PM
k first off MS can sometimes be Generous but not always, such as
Windows XP Home 153$
and second i want to do more programming for more experience for some reason so maybe if you want could you help me do that. What i want to do is:
Save the Data the data to an existing file like a .asp file so i wanted to know how to do that, or save it to a .html file and once again i needed to know how to do that and well that' pretty much it, ya see i want a simple programming language to learn that will not take me long:)
Please Help
PeOfEo
01-13-2004, 04:28 PM
well why are you stuck on using a file to store the data is my question? The problem with it is you will have a hell of time trying to set it up so users can edit, quote, and do many of the other things that they can do on other forums such as this. You will also have huge problems if you want a full community with multi forums, and what are you going to do, have a separate file for every thread. It seems like a night mare ot me. In a data base each post could be its own entry, with its own id, and give all posts in one thread a unique value for one feild and boom you know which goes where, order that by post time/date, you are all set.
CardboardHammer
01-13-2004, 04:44 PM
MySQL = free database. You'd probably be better off using it with Apache (free webserver) and PHP (server side scripting similar in concept to ASP). And if you need an OS, they'll all work with Linux in addition to Windows. Just don't ask me for any help with any of it. There's a PHP forum for that.
PeOfEo
01-13-2004, 04:47 PM
asp.net is free to run, same with asp, and msde is pretty cheap (it might be free actually) The only problem is finding a major host that supports it. Because you still have to pay for the os, which would come bundled with iis 5 or 6. Thats why I like wmh so much. They have it all for free, in hopes that one day you will line the pockets of ms by buying all of their developer software, like vis studio .net etc.
fssoft
01-13-2004, 04:49 PM
actually i want to write my own forum, a unique way and heres how i would do it:
<Fol> = Folder
<sub> = Sub-Folder
<sub2> = Sub-Sub Folder
index.aspx
<Fol>General
index.aspx
<Sub>General
index.aspx
Forum.aspx
well you get the point, ya see i will organize it with folders :)
so it will kinda work :)
So what is the code for that thing iwanted last reply?
PeOfEo
01-13-2004, 04:50 PM
neg. That would get very nasty very fast, and take up huge ammounts of data because the asp scripts would have to be on every page. Running them through strings would require huge amounts of code and tons of work arounds.
CardboardHammer
01-13-2004, 04:55 PM
MSDE is free. And so is the use of mdb (Access) files. Creating mdb files without Access can be a bit of a PITA, however.
The ultimate solution to learing is to either take classes, buy a book, or search for tutorials on line. Asking questions without having some degree of background isn't going to lead anywhere in a hurry. Decide what you want to learn, then learn it. "I want forums" isn't a good way to learn. There are already free forums (ad supported) out there to use already, hosted an all (at least, I remeber this being true some months ago and I doubt it's changed yet).
PeOfEo
01-13-2004, 04:57 PM
Book was the road I chose. Run down to b&n pick up a $40 tome of knowledge, run home open it, read, get confused, try it myself, get more confused, read some more, understand.
fssoft
01-13-2004, 05:17 PM
k OMG i am a 12 yer old kid, i can't pull $40 out of nowhere, could you maybe add me to MSN and you could help me?
and this is how i like to do it even if DataBase is esier i need more experience.
EMail: FSSoft@hotmail.com
PeOfEo
01-13-2004, 05:21 PM
I am 16.... Use your christmas presents. I have an aunt that always gives me a gift certif to b&n. Mow some lawns.
fssoft
01-13-2004, 05:26 PM
ya well i got all my christmaas presents and there gone, i bought a new comp case and an optical mouse and a KeyBoard so ya im clea out of money so please help me do this thing in ASP, so please add me Messenger and maybe if you want you can help me with thi thing easier, because i really want to do this Message Board and release it, and if isell it i will give you Money!
EMail: FSSoft@hotmail.com
PeOfEo
01-13-2004, 05:31 PM
Ok, I did, but I actually know very little asp classic. I know how it works, the principals, but scriptingwise know little asp classic. I went straight to asp.net because I found it to be the better solution. That was... maybe 7-8 months ago.