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


ADVERTISEMENT

Passing QueryString URL As A Paremeter In QueryString

The subject sounds confusing but here is what i want to do. I have a
button on my page which says

OnClick="javascript:window.open('reportsContainer.asp?pag eURL=Report1.asp?intCurrentPage=1&blnRetrieveFlag=1&Show=1',TasksRPT');"

Now on the Conatiner.asp what i do is
if Request.QueryString("Show") = 1 then
pageURL = Request.QueryString("pageURL")
end if

And then i set the pageURL along with intCurrentPage and
blnRetrieveFlag parameters to my fram src as

<frame height=500 scrolling=auto name="pageFrame" id="pageFrame"
border=0 src="<%=pageURL%>">

Code:

View Replies View Related

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 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 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 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

Querystring

is it possible to check if a variable is present in the querystring, or is that unneccesary? will it assume the variable is empty if it is not present in the querystring?

View Replies View Related

QueryString

i have a hyperlink from a results page:Code:

Response.Write "<TD>" &"<a href = JobDetails.asp?id=" & rs("JobID") &" >" & "Click Here" & "</a></TD>"

the sql statement in JobDetails.asp =
Code:

sqlstr = "select * from Jobs where JobID = '" & Request.QueryString("ID") & "'"
rs.Open sqlstr, conn

im getting this error when i click the hyper link

line 20 is the rs.Open sqlstr, conn line

this error seems to happen with dates but i dont have any dates at all.

View Replies View Related

Querystring

I want to write a page which will
load a default page for me with some links and all. lets say someone
clicks on the link, which not only points to the same page but also
passes a querystring. Looking at the querystring I will then display
data from a database.
So my question in short is... Is it possible to have a single asp page
which can return either a default page where no querystring is passed
or a result from the database when a querystring is passed?
If the answer is yes, then is it a good idea to do this or have 2
seperate pages?

View Replies View Related

QueryString

I've got a request form for samples of our product that we send out. The form is being linked from our ebay auction pages. In the link from the auction page I'd like to include the model number of the sample that they're requesting. (ie. /sampleRequest.asp?AS240)

Then, on my sampleRequest.asp page which contains the input form I'd like to include a hidden field which holds the value of that querystring. Finally, upon submitting this form I'd like that value to be placed into the sampleModel field in my Requests table in my database.

The problem I'm having is how to populate the hidden form field with the querystring form the ebay auction page. Code:

View Replies View Related

Querystring

I have a querystring like this:

checkbox1=2&checkbox2=1&checkbox3=2checkbox1=5&checkbox9=1&checkbox3=1

I would like to insert each set of checkbox1, checkbox2, checkbox3 into a table like field1(checkbox1), field2(checkbox2), field3(checkbox3). Remember each set of 3 checkboxes are 1 unit inserting into a table. Is this possible?

View Replies View Related

QueryString

I am trying to maintain some ASP code that I did not generate and the programmer who did has a very different style than I do so I am having some problems. Hopefully someone out there can help me by answering my question.

I have the following line of code:

If (isEmpty(Request("dir"))) Then.....

Now my question:
Could the Request("dir") used above be the same thing as using Request.QueryString("dir")???

View Replies View Related

QueryString

I just noticed though that when I include the file name to the folder it worked.

ie unitingrhythms.co.uk/?size=4 - no output
& unitingrhythms.co.uk/index.asp?size=4 - outputs 4

can the querystring be read when the file isn't shown?

View Replies View Related

QueryString

i have a querystring on one page where the url looks like:

delete.asp?name=test2.pdf&type=file

on delete.asp i have:

Dim name, type
name = Request.QueryString("name")
type = Request.QueryString("type")

It gives me an error for some reason.

View Replies View Related







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