Sunday, May 10, 2009

How can I install asp support on my server?

I have got a apache instant miniportal virtual web server but it does not have asp support. How can I add asp support and other features such as SQL support etc?

How can I install asp support on my server?
Is this running on a Linux box or a Windows box? I've done this on a Linux box, but I would have to assume that it will work much the same way on a Windows box, seeing as you're using Apache. The way I've done it is to use Perl and install Apache::ASP. There is some configuration involved, but the is nicely documented in the docs that come with the Apache::ASP module.

pink flowers

How do I use a negative number as an argument in an if statement in asp?

I'm trying to write some code in ASP to basically say the following:





if x %26lt; -2 then


y=4


end if





However, the statement never makes it through when x really is less than a negative 2. I've tried putting parentheses around the -2, but that doesn't help.





Any ideas?

How do I use a negative number as an argument in an if statement in asp?
try "if x+2 %26lt; 0 then"





if not, make sure you are comparing what you think you are comparing...





"if CLng(x) %26lt; CLng(-2) then"
Reply:You could try x %26lt; (0-2) then...


How to enable/ disable functions and hide or show visibility in asp?

I am using ASP ver. 3 and would like to know how to code my radio buttons to show or hide some text fields. I would also like to enable or disable form options.





If anyone knows how to write this code, it will be greatly appreciated.

How to enable/ disable functions and hide or show visibility in asp?
Well the ability to actually hide and show elements of a form to the user is done through javascript and manipulating their CSS values. This isn't something that ASP directly manipulates. It can show elements and such based on an if statement though like if someone selected a checkbox to show the username field and then hits submit, the next page can detect that they checked this field and run something like ...





if request.form("enableusername") = "usernamefield" then


response.write "%26lt;input type='text' name='username' size='30'/%26gt;"


end if





But like I said, if you are looking for them to just click a button and it suddenly show a field, that is done through javascript. Look at altering its CSS properties.





Hope that helps. The page below shows a thread where they provide a toggle function for toggling the elements.


How to connect to a microsoft sql server if you are using asp?

I am teaching myself asp programming. I now want to ask the codes man can incorporate into his asp codes so that his sql server can be seen on the net. thank you.

How to connect to a microsoft sql server if you are using asp?
%26lt;%


dim con, rs


set con=server.CreateObject("adodb.connectio...


con = "Provider=SQLOLEDB.1;Persist Security Info=False;User ID=sa;Password=sa;Initial Catalog=database name;Data Source=(local)"


str="select * from pims_event"


rs.open str, con, 1, 2


%%26gt;





Even you can learn ASP, SQL Server from http://www.w3schools.com This is very useful site for Beginner...





Thanks


Kailash
Reply:Usually you use ADO which is ActiveX Data Objects if using ASP. If you are using ASP.NET then you use ADO.NET. Basically they are a set of objects used to connect to databases. I would look for tutorials on using ADO.


What is a good alternative to ASP if you are on a linux server?

I want to upload files from the website and attach visitor's informtation to that media file. If I had the site on a window's server, I would use ASP, but my client wants to use a linux server.

What is a good alternative to ASP if you are on a linux server?
its php
Reply:There are three best alternatives:





1. CGI with Perl


2. CGI with PHP


3. Module PHP





CGI has various security problem. Module PHP has known to be the most popular. As a database, MySQL would be excellent. Web sites designed with PHP/MySQL are most likely to be portable to windows servers as well. That is possible if you do not use any Linux specific feature. That wouldn't be the case in most situations.
Reply:YEah so instead of using a language that is tied to windows, you should use a cross-platform language like PHP.
Reply:Use PHP.
Reply:If you're on Linux, PHP is the way to go
Reply:There are several options: Such as CGI, AJAX, and perhaps a java app or Javascript..





Look on http://www.hotscripts.com


Or @ http://www.developer.sun.com for starters..

night garden

Can I tell a web server to output an asp to pdf through adobe distiller installed on the server?

I want to write an ASP command line that tell the server to open an ASP file in the server’s browser then print the file using adobe distiller installed on the server (regular adobe distiller not adobe distiller server), and save to a specific location on the server, is that possible?

Can I tell a web server to output an asp to pdf through adobe distiller installed on the server?
You would have to execute some external commands to even make that possible. Your best bet is to have ASP write the data in Latex and then have an external program pick up any latex file in a specific directory and have it convert to a pdf. Latex is a report generator language that is very easy to learn and there are tools available to convert a Latex file to pdf.





Resources:


Latex: http://www.latex-project.org/


Latex to PDF: http://www.math.uakron.edu/~dpstory/latx...


http://www.p-joeckel.de/pdflatex/





Enjoy!


How to retrieve user information from facebook by using classic asp?

I am trying to develop small applications on facebook by using classic asp. There are tons of information on how to do it in php or .net, I am wondering if it is possible to do it in classic asp.


I would appreciate if anyone can provide some help.


A simple program that can be added by facebook users and can retrieve the users id will be very helpful.





Many thanks.

How to retrieve user information from facebook by using classic asp?
dude your question is too technical for the morans that usually answer here on facebook ... very few that would understand what are you talkin about :)





As for myself i don't think i have anything relevant ... however if i run into anything that would help you... promise i will email you or msg ;)





wish you all the best and by the way great idea ;)


Asp......?

ASP = active server pages

Asp......?
and
Reply:I totally agree with you man... Your words of wisdom.... So my answer is yes.