Alternative Of #include

Is there any other way or trick to include an asp file in my ASP file than the classic html #include. In fact my filename (which is to be included) will be coming from database and #include statement doesn't support any kind of variables.

View Replies


ADVERTISEMENT

Alternative Of PHP

I have got the following PHP code which I am trying to convert to
ASP.cant find a replace function for Unset in asp which will discard the variable
if ($categoryid == "all")
{
$sql = "SELECT * FROM products where shopinspection=$shopinspection";
unset($HTTP_POST_VARS['categoryid']);
unset($HTTP_POST_VARS['shopinspection']);
}
else
{
$sql = "SELECT * FROM products where categoryid = $categoryid";
unset($HTTP_POST_VARS['categoryid']);
}
unset($HTTP_POST_VARS['Submit']);
while (list($key, $value) = each($HTTP_POST_VARS))
{
if ($value != "" )
{
$sql = $sql .=" AND $key=$value";
//$sql = $sql .=" AND solesource = $solesource";
//echo "<strong>$value</strong>";

View Replies View Related

Alternative To MS Access?

if there is any alternative software to MS Access for creating .mdb file?

View Replies View Related

Alternative Querystring - Using / Instead Of ? And &

Is is possible to pass parameters with this URL:
www.mysite.com/article/sports/football

instead of the usual method:
http://www.mysite.com/article.asp?c...tegory=football

And, if I need to add more parameters at a later time, may I then use
something like:
http://www.mysite.com/article/sport...321&language=EN

Also, I am using ASP, not ASP.NET.

View Replies View Related

Alternative To IIS On XP Home?

i have read a few articles saying that you can run IIS on XP home but it does not look too reliable to me and am not too willing to try, so is there an alternative set-up i can use to test my ASP before uploading?

i say this as all ftp hosts seem to want your code pre-tested before uploading .

View Replies View Related

Alternative Buttons

Looking for a way to switch between submit buttons. The default will be "start" and when the tech clicks on that, the button will start a timer, which I have already set.

The button then will switch to "stop" and when a tech has completed a job and clicks "stop" the timer will also stop and switch the button back to start.

I know how to track the time for each tech that starts and stops a job. I need a jumpstart on how to switch onclicks for two buttons.

View Replies View Related

CDONTS Alternative

I would like to set up an ASP page that sends an e-mail, but the server I'm working on doesn't have CDONTS installed for security reasons. I don't have any control over the server. Are there any alternatives to using CDONTS that will work or a better option?

View Replies View Related

Alternative To TEXTAREA

I know this is not a core .asp issue, but I'll try anyway. I've used the TEXTAREA element for a while, but as you know it's limited when it comes to formating part of the text inside a TEXTAREA.Does anyone have expirience using other text cointainer objects (Java/ActiveX), which is easy to use and easy to read values from when sending a form to a procedure .asp page?

View Replies View Related

IFrame Alternative

does someone knows what's the alternative of Iframe. Actually I have to use IFrame and it works in IE but NS 4.74 to NS 4.78 doesn't support IFrame.

So, I have to use alternative of IFrame so that my application can work in both IE and NS 4.74 to NS 4.78

View Replies View Related

WinZip / Other Alternative

I'm using ASP and I need to generate a ZIP file that contains a list of files that I'm pulling from a database. I've determined WinZip's command line parameters so that I can use it, the problem is I'm unsure how to run WinZip on the server.

Set WshShell = Server.CreateObject("WScript.Shell")

WshShell.Run("c:winzip.exe")

Assuming this would work, how do I get the process to terminate upon completion? I can't have 20-30 WinZip applications running on the server, I need it to handle what I send to it and then close. Maybe I'm taking the entirely wrong approach here.

View Replies View Related

Server.MapPath Alternative?

I have an asp file that gathers info from a form and sends to the database. im now changing the location of the database from the root path. I think that because of this i cannot use Server.MapPath method of sending data.

Coudl someone please help me out and let me know how i would change the code? Im quite new to this as you could probably see. Code:

View Replies View Related

Alternative For CDONTS.NewMail

Is there an alternative for CDONTS.NewMail for sending email? according to this article , CDONTS.NewMail works only on Windows NT/2000 Operating Systems.

Is there an alternative class that works on Windows XP to send email?

View Replies View Related

Alternative To Response.redirect

Is there another command in asp that I can use to send users to a different page.

I use response.redirect alot in our site and I suspect it is causing us ranking trouble as it is basically a 302 redirect.

I use it like this.

If user is not logged on > send him/her to the log on page and attach a variable showing where the redirection came from so they can return easily.

Is there another way?

View Replies View Related

Alternative Table Colours

anyways what id like to do is in my "do while" loop i want to create different background colours so its easier to read with large tables.

I know the code should be something like:

If variaiable isnot true then
bgcolour = blue
Else
bg colour = red
end if

i am, however, not quite sure ont he correct syntax for it?

View Replies View Related

Select Case Alternative

I would like to know if there is alterntiave to using Select Case?I have over 80 files that a user can select from a drop down list and 'read'. Rather than writing out 80+ lines with INC files, what is the other less code option?

View Replies View Related

Round Function Alternative

Good:
246/10 = 24.6
round(24.6) = 25

Bad:
246/100 = 2.46
round(2.46) = 2 (I want 3)

If I have a decimal, I want to round up. Always. How do I achieve this in ASP?

View Replies View Related

Alternative To Session Variables

i am using cookies to save a users login information which is then used again on another page to save data to a database. This works fine on certain clients' machines, but on others there is an error. Am i right in saying that it is because cookies are not enabled on their machines? If so, is there another way i can do this?

View Replies View Related

Alternative To Personal Web Server?

Is there a free ( has to be free ) web server that can run active
server pages like pws?

View Replies View Related

Alternative To Response.write

I'm trying to build a contact form using ASP. The form works properly but the code I found has "Response.write "Your email..." which appears on a white page after the form is successfully submitted. Is there a different function I can use that will redirect the use to another .html page (like a "thank you for submitting...") instead? Code:

View Replies View Related

Alternative To Username:password

Are you suffering from the same problem? In the past, you want to access to a secured page protected by Windows Authentication (e.g. Exchange OWA), you will make such redirection "http://usernameassword@domain/exchange/".

However, because of security and Microsoft's latest patch, it will be no longer working. I wonder what we could do now if we want to do the same.

View Replies View Related

'StrConv' Alternative (I Want Propper Case!)

In VB there is a command that can be used to convert a string into proper case, e.g...

msgbox StrConv("HELLO", 3)

Would say "Hello". However, there is no such function in ASP (it seems to be one of the few commands that was not exported into VBS....god I miss DoEvents too....used to abuse that command.....lol).

Anyway, do you guys know any methods that can be used to do the same thing? Basically I have a name all in CAPS, and I want it to be converted into Proper case so that it's easier on my visitor's eyes when they see it.

View Replies View Related

CDONTS Alternative Text Content

I'm using CDONTS and am trying to send an email out which displays in HTML for HTML-enabled clients, and plain text for non-HTML clients. Unfortunately I am using IIS4 so CDOSYS is not available (so I can't use the handy .Textbody or .HTMLBody properties). How would I go about it with CDONTS?

View Replies View Related

Alternative To <select> For Large Number Of Values?

My users have to select an value from a fixed selection of values. The
obvious choice of control for such a requirement is to use a <select> (i.e.
a combo box).

My problem is that sometimes, these combo boxes will have a *large* number
of values. There could be any number of values in them from 5 to 5 million
(unlikely it would be this large but possible).

Obviously 5 million is far too much to populate a <select> control with.
Does anyone have any suggestion as to how a user could select a value from a
*potentially* very large selection of values (i.e a suitable alternative to
the <select> control)?

View Replies View Related

Powerful MS HTTP Request Component - Alternative To ServerXMLHTTP!

Having just "discovered" it myself, I thought I'd draw everyone's attention to the fact that the WinHTTP 5.x object (which is used behind the scenes by our good friend the ServerXMLHTTP object) can be used directly in scripts.

This is useful because the ServerXMLHTTP object encapsulates XML-related functionality which is unnecessary for performing most simple HTTP requests, and thus by using the WinHTTP object directly you achieve higher performance, scalability, and reduced memory consumption... AND WinHTTP offers quite a few features that ServerXMLHTTP does not expose - including the ability to specify a proxy (and an exclusion list) from within the script (or to acquire them from Internet Explorer's settings), IPv6 support, and HTTPS/SSL support!

For more information .....

View Replies View Related

Include More Than 1 Include File

I want to be to call my menu from another file onto my page so that i dont have to add it to every page of my website. The problem is when i try to add it using the include method it says that only one include file is allowed on an ASP. The other include file is my connection string so i cant really take that out of the page because then nothing else will work!

How can i get the menu page included as well as the connecting string?

Have added the code below, i have highlighted the 2 include files that i want to use in blue, i have also left the div tag in for where i currently have the menu which is what i want to take out and have ther include file there instead, if that makes sense. Basically the bit in red i want to be able to remove from all of my pages and add the blue file above the red code in instead, but i dont know how!!!!! Code:

View Replies View Related

How To Include

How i can do <!--#include file="filename"--> dynamic with ASP, or any other way

View Replies View Related

#include

If I want to include a file to my webpage that is not placed in the same
folder asd the application, but in another folder on the same disk...

I found out that this is not going to work:
<!--#include virtual="D:/binaer.no/nova/test.asp"-->

Is there any other way to include from another domain account on the same
server?

There is going to be several applications that includes the same file, so
the trix ../../../ will not do it for me...

View Replies View Related

The Include

<%
I am trying to use "set con" in the include file. i used it before with simple text but when I use the connection object it doesn t work. is this possible in asp and what is the problem with the code below:

inc.asp file
VARMSG = "set con = Server.CreateObject("ADODB.connection")"
con.Open ("dsn=project;uid=sa;pwd=sa")
%>

mainpage.asp
<!-- #include file="inc.asp" -->
<%
Response.write
set rsTypes = con.execute("select * from firstmarch order by cat")
%>

View Replies View Related

Include Gif

Can someone advise how can I send an html message that include gif file using cdonts.
the gif cannot link to www, or any specific server location. user must be able to view when they open their email.no as attachment.

View Replies View Related

Asp Include?

I have asp page file0.asp which calls another asp page thru include. I have to set conditions tht....

originally the include should have file1.asp In the displayed file file1.asp user selects a hyperlink, it should take it as request and display the new file2.asp in same file0.asp in place of file1.asp.

so i want to display multiple pages on user request inside file0.asp. But originally when file0.asp loads it should have file1.asp. Code:

View Replies View Related

Include In ASP

how to include an asp file into an other asp file with checking condition first.I can do this easily in PHP, but in ASP, it seem that the content of included file is process before it read the code on page.So when I include a asp page into another asp page, I cannot choose which page will be include base on the condition.

View Replies View Related

If X Then Include Y

make a script for my forums (the header) involving the date and an included page. Quote:

If the month is 9 (September) then include page x
elseif the month is 10 (October) then include page y
else include page z

How do I go about doing that? I know how to do it in php, but I'm looking to do it with asp.

View Replies View Related

Include

I m trying to test an include example using the code below, but the page "aspsrc.asp" cannot be displayed.

--->aspsrc.inc page
<%
var msg = "testing testing"
%>


-->inc.asp page
<!-- include statement not to be placed within ASP delimiters -->
<!-- #include file=".aspsrc.inc" -->

<%
Response.Write( msg );
%>

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved