|
Look also in ASPIn.com. This site has references to other sites with tutorials, examples, etc.
If you are looking for paying ASP host, you can try 123HostNow.com(Feel free to strip referral info from link). Cheap and a lot of features with great support.
If you want a free web hosting, look at same ASPIn.com, you'll find there a list of them
Philip Patrick
"Two beer or not two beer?" (Shakesbeer)
Web-site: www.saintopatrick.com
|
|
|
|
|
tbbooher wrote:
what would you all recommend?
You can do a login system using ASP, VBScript and a database (SQL or Access or Oracle or even XML flat file etc.)
I recommend you read these very easy articles on 4GuysFromRolla.com: 4GuysFromRolla.com on Security
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
"The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge
Sonork ID: 100.9903 Stormfront
|
|
|
|
|
How would a login system work...?
Client side cookies can be used to store yer name/ID can scripts on the server read client cookies...?
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
HockeyDude wrote:
can scripts on the server read client cookies...?
Check out:-
Request.Cookies
Response.Cookies
Nish
Nish was here, now Nish has gone;
He left his soul, to turn you on;
Those who knew Nish, knew him well;
Those who didn't, can go to hell.
I like to on the Code Project
Sonork ID 100.9786 voidmain
www.busterboy.org
|
|
|
|
|
Is that ASP...?
I've only read quickly about ASP. However it's syntax is VB and thats what i started programming in, so i'm sure it easy enough. I've only done server side programming in Perl and it doesn't have Request.Cookies object which if my memory serves me correctly...ASP does...
Anyways...what yer saying then...is yes it is possible to read client side cookies...?
This is the only way i can think of implementing a login sytem like here a codeproject.
Happy thoughts!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Don't forget the almighty database! DBs are invaluable in creating login systems.
Jon Sagara
What about ?
Sonork ID: 100.9999 jonsagara
|
|
|
|
|
HockeyDude wrote:
How would a login system work...?
The easiest way is to try this simple login system from 4GuysFromRolla.com.
Simply put it uses ASP, VBScript and a database.
HockeyDude wrote:
Client side cookies can be used to store yer name/ID can scripts on the server read client cookies...?
Ok cookies are stored on the clients machine. When the client requests a page from the server the cookies that the site can access are passed long to the server in headers (I think.)
You can then use Request.Cookies() to process and change the cookies. It is VBScript and ASP but they are really easy and if you know VB you will have no problems.
Remember you only have access to cookies that you created or that are valid for your site. e.g. if your site is www.cnn.com and there is a cookie on the clients machine from www.bbc.co.uk then you will not even be able to see them.
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
"The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge
Sonork ID: 100.9903 Stormfront
|
|
|
|
|
Ok the why of what I am going to ask would take three days to explain, so I won't. I just need the how please
I have an ASP page which pulls some data from an XML file. Some of that data from the XML file is ASP itself. I need IIS to actually process that ASP data from the XML file isntead of just putting it in the buffer and sending it to the browser.
So I was thinking that what I effectively need to do is have the ASP page on the first run pull out the data, and then have IIS process the data I pulled out as well.
Any ideas or clues? thanks.
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
"The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge
Sonork ID: 100.9903 Stormfront
|
|
|
|
|
Rename the XML file on the server to ASP [the extension]
That way the ASP snips get processed.
Nish
Nish was here, now Nish has gone;
He left his soul, to turn you on;
Those who knew Nish, knew him well;
Those who didn't, can go to hell.
I like to on the Code Project
Sonork ID 100.9786 voidmain
www.busterboy.org
|
|
|
|
|
Nish [BusterBoy] wrote:
Rename the XML file on the server to ASP [the extension]
That way the ASP snips get processed.
I wish it were that easy. I thought of that originally but then I cannot use XSL to process the XML.
Basically I have an XML file which contains Page details and content.
I then have an XSL file for each browser and device.
The ASP page which is called originally merges the XML file with the correct XSL file and produces XHTML back to the browser.
However there is ASP in some of the XML content (it was a mission just getting around XML rules to allow ASP in XML) and that is the ASP which does not get processed and instead is sent as-is to the browser.
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
"The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge
Sonork ID: 100.9903 Stormfront
|
|
|
|
|
Paul,
Your questions get more and more confusing and scary. What (not why) in the world are you making there?
I guess, you could save your data to a file and then call Server.Execute() to process it. That is the only idea I can come up with at the moment...
|
|
|
|
|
Konstantin Vasserman wrote:
Your questions get more and more confusing and scary
*grins* And you step up to the challenge each time.
Konstantin Vasserman wrote:
What (not why) in the world are you making there?
A content management system. Though as usual I have gone way beyond the usual CMS features.
Konstantin Vasserman wrote:
I guess, you could save your data to a file and then call Server.Execute() to process it. That is the only idea I can come up with at the moment...
THANK YOU! Konstantin, you are a genius. It works brilliantly now! Man, can we hire you?
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
"The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge
Sonork ID: 100.9903 Stormfront
|
|
|
|
|
Paul Watson wrote:
And you step up to the challenge each time.
It's a bad habit I have - I can't stop working.
Paul Watson wrote:
Man, can we hire you?
Thank you, but I'm afraid that SA is out of my reach at the moment. Beside that, it would be bad for the business to have 2 employees spend all their time on CP at the same time.
|
|
|
|
|
The Eval function could do the trick. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/vsfctEval.asp
It looks like the jscript version is easier to use.
Good luck,
JC Aguilar
|
|
|
|
|
I'm trying to access from within ONE.ASPX (with ONE.ASPX.CS as source)
static class elements of TWO.ASPX (with TWO.ASPX.CS as source).
- It works when doing it inside VS.NET
- It fails when doint it myself (i.e. take a texteditor,
create WEB.CONFIG, GLOBAL.ASAX, etc. manually)
I think I must set an assembly-reference somwhere, but I don't know where
and how.
Can somebody tell me how to get this running WITHOUT VS.NET?
--
See me: www.magerquark.de
|
|
|
|
|
Can anyone give me a brief definition of .net?
I write web-based biz apps for the company intranet,
use ASP w/ Oracle backend. Company standard browser is
still Netscape 4.7. What software does .net require
to run on a server? (Win 2k?) -- what browsers does it
support?
In short, can i use it, given the limitations, and
if I could, what could it do for me?
TIA (thanks in advance),
-- Maeve
|
|
|
|
|
to run .net application,you have to install ".net platform" on that that
machine
Mazy
Don't Marry a Person You Can Live With...
Marry Someone You Can Not Live Without
|
|
|
|
|
mgk915 wrote:
Can anyone give me a brief definition of .net?
.NET is a lot of different things to a lot of different people.
To Microsoft it is what they are betting their whole business on.
To developers, it is a new development framework.
To average Joe users it is a set of web services and hope that in the future everything can talk to everything and all your information is managed in one location in a meaningful way.
mgk915 wrote:
What software does .net require
to run on a server? (Win 2k?) -- what browsers does it
support?
Until MS release the Windows .NET OSs you need to download the .NET framework and install it on your server and any client machine which requires .NET capabilities.
.NET is not JUST about the web or browser interfaces. If you are a C++ developer creating client/server apps then .NET can help you without forcing you to move to browsers.
Just read those main links I have given you, it is a lot of info but it is worth knowing.
mgk915 wrote:
Company standard browser is
still Netscape 4.7
Quit your company and become a Budhist monk so that you can cleanse yourself...
They should really change, even if it is just to Netscape 6.2.
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
"The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge
Sonork ID: 100.9903 Stormfront
|
|
|
|
|
have over 50 records in my database (Access). i want to only output 6 records, but randomly. another word, everytime I access that page, i want the page to genenrate 6 different record then the first time I look at it. thanks.
jlo-
here's the code i was orignially using.
<%
dim conn
dim rs
dim strsql
dim strconn
set conn = server.createobject("adodb.connection")
conn.open "movieslisting"
set rs=Server.CreateObject("adodb.Recordset")
strsql="select * from moviereview order by movietitle desc"
rs.open strsql, conn
If rs.eof then
response.write " < center >There are no records in the database"
response.write "< br > Please check back later"
response.end
Else
Do while not rs.eof and counter < 6
counter=counter+1
ID = rs("ID")
imgposterlarge = rs("imgposterlarge")
%>
< a href="moviereview.asp?ID=<%= ID %>"> < img src="/posters/<%= imgposterlarge %>" border=0> < b r >
<%
rs.MoveNext
loop
End If
%>
|
|
|
|
|
Open recordset with CursorLocation = adUseClient and Static CursorType.
Get RS.RecordCount
Call Randomize to initilize random-number generator.
Loop using For - Next .
Inside of the loop: generate random number between 0 and RecordCount-1 using Rnd function, use RS.Move myRandomNumber, 1 to position your recordset to your random record.
|
|
|
|
|
I would appreciate it if someone could please just point me in the direction of how to return a different file format to what the visitor accessed.
Ok, that is a bit confusing so let me explain.
I have an ASP file which combines, on the server side, an XML and XSL file to produce good old HTML and return it to the visitors browser.
Naturally the visitor might type http://www.paulwatson.com/default.asp and the browser then expects back an .ASP file stream.
This is all fine when I am using different XSL files to send back just HTML, but I am stuck on how when I want the XSL to transform an XML file into another XML vocab and return a .XML file to the browser when it is actually expecting .ASP
Do you get what I am trying to do? If so how do I change the output stream from this ASP file to "tell" the browser to expect an XML file and not an ASP file? Any pointers, classes, functions, ideas would be appreciated.
thanks
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
"The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge
Sonork ID: 100.9903 Stormfront
|
|
|
|
|
Paul,
Browser does not expect any particular type in response to its request. Instead server has to specify what type of document it is sending in the header of the response. You can send anything in response to http://www.paulwatson.com/default.asp. In order to change the type you have to do something like this:
Response.Clear
Response.ContentType = "MIME TYPE OF YOUR CHOICE"
Response.Write myData
Response.End
Mime Type can be "text/xml" or "image/gif" or whatever it is you are sending back to client.
You have to make sure that the above commands are the first Response commands in the page, otherwise it will not work. If you have something output to the client before those commands are executed - the default type will be "text/html". What I usually do is make sure that the first characters of the page are <% and the first command of the ASP is Response.Buffer = True .
|
|
|
|
|
Konstantin Vasserman wrote:
Browser does not expect any particular type in response to its request. Instead server has to specify what type of document it is sending in the header of the response. You can send anything in response to http://www.paulwatson.com/default.asp. In order to change the type you have to do something like this:
Response.ClearResponse.ContentType = "MIME TYPE OF YOUR CHOICE"Response.Write myDataResponse.End
Thank you very much Konstantin, that was exactly what I was looking for
Funnily enough I thought the same way as you. But if the browser navigates to an .asp and you try and return an XML file it simply spits out the "text" version of the XML file, not a "real" version of the XML file as it was "expecting" HTML back, not XML. It is hard to explain but try using an XSL file to transform an XML doc into another XML doc on the server side and then return it to the browser via asp. It does not do what you would think.
But your code works brilliantly, thank you!
Thanks for the other reply, you actually got it right first time
regards,
Paul Watson
Bluegrass
Cape Town, South Africa
"The greatest thing you will ever learn is to love, and be loved in return" - Moulin Rouge
Sonork ID: 100.9903 Stormfront
|
|
|
|
|
I've re-read your post and realized that you were perhaps asking something different than how to change type of the output. So I'll try to answer again...
You have to do all the XSL processing yourself on the server side by using transformations and then output the resulting HTML yourself:
Dim xmlDoc ' as DOMDocument
Dim xslDoc ' as DOMDocument
Dim strRslt ' as String
' ...
' Create your documents here
' ...
XmlDoc.load "yourXMLDoc.xml"
XslDoc.load "yourTransform.xsl"
' To output to a text stream
strRslt = xmlDoc.transformNode(xslDoc)
Response.Write strRslt
Is this what you were asking?
|
|
|
|
|
when i open a asp.net application in the web browser the asp.net controls such as textboxes will not appear on the browser,any suggestions
|
|
|
|