My Link Isnt Coming Our Right
I want the link to come out as
search_results.asp?s1=Issue&s1t=Cancelled
but instead its coming out as
search_results.asp?s1= &s1t=Cancelled
I can't figure out why all of a sudden my variable s1 doesnt have a value once I hit the submit button. Here's my long extensive code. The important bits are the part where I response.write the s1 and s2 and s3 values, they show up on the first page but when I hit the submit button for some reason, they have no value anymore.
View Replies
ADVERTISEMENT
i have not really altered anything in my web page but no everytime i try to load it it says
Microsoft VBScript compilation error '800a03ea'
Syntax error
/Student/StudentLogon.asp, line 48
Sub DisplayStudentLogin
even if i remove this function it then says there is an error with the next one please help
View Replies
View Related
I have seen a code to populate a list box from a data base table. Earlier I gave my own values using HTML coding like :
<Option Value="P-159">P-159</Select>. It was working fine but not after using code to build a list box, it is not coming in form value as input and next redirecting page retutns with error:
two codes pages are attached : profile page and search page. Profile page sends input to search page and search pages returns the output.
View Replies
View Related
i created a global.asa file with notepad and put it in the root directory
<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
Sub Session_onStart()
session("mary") = "mary"
End Sub
</SCRIPT>
now in my asp code i put <%=session("mary")%>
and restarted my machine, and check the value of mary and there was none whats wrong here?
I didnt put a reference in my asp page to the global.asa file. I assume asp looks for it itself ?
View Replies
View Related
I was going to use the DateDiff function for something, so I looked up the syntax real quick at w3schools. Here's what they have:
document.write(Date & "<br />")
document.write(DateDiff("m",Date,"12/31/2002") & "<br />")
document.write(DateDiff("d",Date,"12/31/2002") & "<br />")
document.write(DateDiff("n",Date,"12/31/2002"))
Output:1/14/2002
11
351
505440
I put the same code into a simple test document to verify, except for mine has Response.Write. All my numbers came out negative. If I reverse their positions, I get positive numbers. Is the example above wrong or is there something going on with my PC?
View Replies
View Related
I'm showing page contents text coming from database, normally the contents are plain text or in html formatting... it works fine.. but I want to add ASP code within page contents, as well... i did try but it dispalys ASP code as it is in the output...
is there any way to execute those asp code lines coming from database...?
View Replies
View Related
A few days ago all my Request.ServerVariables began coming up empty. I was using Request.ServerVariables("AUTH_USER") for basic authentication but now its useless. Our server administrator tells me he installed some "patches" last week but doesn't think he caused the problem. All I can say is that before the patch they worked fine. Anyone have any ideas on where to look for a solution?
View Replies
View Related
I run a site and one of our services is a "free online quote" .I've made the whole form, including the .asp backbone to send it off (the file itself is .asp, but im pretty sure the language is in VB). It was working fine, but now the forms will come back blank most of the time. I know they cannot be submitted blank, because I have required feilds there.
The weird thing is, it was working flawlessly, then it started to crap out once or twice, now it rarely submits a real one.It might not be my coding, but I am really lost at this point.I'm using godaddy for a host btw.
View Replies
View Related
My xml file format is below:
<content> node have HTML format data i read xml file i got values but not in html format i also post asp code for reading xml file Code:
View Replies
View Related
I have this is my code:
<%= linkRec("datein")%>
It displays the date like this: 12/14/2004
But I need it to display like: Dec 14, 2004 or something similar (not just numbers)
Is this possible?
View Replies
View Related
This is my first asp form so please be gentle with me It's a publications ordering form. I've got the form and the asp code setup, when the form is sent the name of the publication comes through but not the amount ordered - i'm sure i've made a simple mistake somewhere - can anyone spot why the order amount isn't coming through. Code:
View Replies
View Related
I need a date simple date function that would append the coming month value in my current month ...
View Replies
View Related
Does anyone know how to hide and show a link depending on the level of the user. Like I want the link to show if the person loging in is an admin, but if the person is a user than I dont want the link to show?
View Replies
View Related
How to get a link / url in a var ? This is what I need to do :
newmsg = " <a href="http://www.my-url"?pa=<%=userid%>> Click here </a> "
View Replies
View Related
Clicking url that points to an exe pops up Open/Save dialog box. But I want
only the Open option to be enabled
View Replies
View Related
How display a link like a plain text (not underlined) with css code.
View Replies
View Related
Having a problem getting my asp url to work. Im trying to pass a var and some of them have the & in them. This is breaking my url since it looks for another var with the &. If i put the %26 instead of the & manually it works fine. How do I get that to encode that on the link ?
I know the problem is the data that is in the heading field has & in them. I can not fix that part. Is there a way to force the & in the url to go to %26 ? Code:
View Replies
View Related
I would like to build a dynamic link based upon a value returned from a db
There is data in the db because objRS("Description") returns a value.
something like
Code:
if objRS.EOF then
%>
<a href="/somepage.asp?id="<% objRS("Id") %> "><%response.write(objRS("Description"))%></a>
<%
else
end if
I get
http://localhost/somepage.asp?id=
Nothing else at the end.
What am i doing wrong?
View Replies
View Related
To secure files on a site with authentication we have put the
attachments in a folder outside the IIS web site like this:
D:Documents<ItemID>filename.doc
where ItemID is a number which we use to check permissions inside our
application.
In order to download the file from the site we have made a binary
reader component (we could probably use SAFileUp or something instead,
but this works) to send the file through an ASP-file:
http://mysite/Docs/ShowDoc.asp?ID=<ItemID>
This works well.
So to my problem:
If I right click the link to save the file on my local computer (Save
target as), it will save the file properly, but the filename in the
Save As-dialog is ShowDoc.asp. I want it to be filename.doc instead.
Is it possible?
I've heard that on a Apache web server you can write the link like
this:
http://mysite/something/filename.doc?ID=<ItemID>
but then the server knows that it's
http://mysite/Docs/ShowDoc.asp?ID=<ItemID> it should load. If this is
possible in IIS, the Save As-problem will be solved.
View Replies
View Related
I am using this code
<table border="1">
<%
Do While Not rstSimple.EOF
%>
<tr>
<td><%= rstSimple.Fields("username").Value %></td>
<td><%= rstSimple.Fields("password").Value %></td>
<td><%= rstSimple.Fields("email").Value %></td>
</tr>
<%
rstSimple.MoveNext
Loop
%>
</table>
How can I make the email field a hyper link?
View Replies
View Related
I have the following link:
<A HREF=""Schedule.asp?JobNumber=" & RS("JobNumber") & "&PONumber=" &
RS("PONumber") & """>" & RS("JobNumber") ONCLICK= popup() & "</a>
I want the link to reference a function in the <Script> tag as
follows:
<script>
function popup() {
window.open( "Schedule.asp" , ""
,"top=40,left=40,width=200,height=100" ) ;
}
</script>
I am not sure where to place the ONCLICK code in the hyperlink as this
link is written out via response.write......Its all the " " & ' ' that
get me ...
View Replies
View Related
I have a database of literature and I've created a search page that pulls up the records matching the search criteria. However, I'd like to create a link to the article in pdf format, if it exists. I have a field in the database that contains the file name (and path), but not all records have a corresponding pdf file.
Code:
<td><a href="<%=(rs.Fields.Item("Article").Value)%>"><%=(rs.Fields.Item("Title").Value)%></a></td>
How do I check whether there is a corresponding pdf file before displaying the title with a link?
View Replies
View Related
I would like to have a link that when clicked, sends info to an ASP page to process, but does not submit the entire page. This way, the user will
click on a link and will not be taken to another page, but precessing will occur.
This is mainly for a 'Rating' Application.
Amazon.com does this and I want to know how they do it. Here is the link to the amazon page (you may need to be logged in)
http://www.amazon.com/exec/obidos/t...5480771-6490552.
View Replies
View Related
(1)I posted this in general but didnt get anywhere. Then I recalled seeing something recently on the web on an ASP site but cannot recall where.
(2)I have a list of pdf files avaiable for the user to view. When they click the pdf link, the pdf file opens. How can I make the link be a 'save' link? ie, when they click the link, windows treats it as a file to 'save as' etc...
What I vaguely recall on the ASP site was: 'How to hide the path of a download file by using an ASP redirect page'. I was wondering if anyone knows this method, and if they do, would it solve my problem in (2)
View Replies
View Related
I would like to put a picture on may page and I would like to use this picture as a button to execute an sql query, so when you clik on the picture you will hace displayed in the next page the product in the data base and other info like price for example.
I have this code to access the data base but I do not know how to use a picture s a buton to use it. Code:
View Replies
View Related
anyone in here got an idea on how i could transfer a value of a form text to another asp page just by using <a href="">
View Replies
View Related
My hidden field is
Code:
<input type=hidden name="action" value="login">
<input type=hidden name="ret_page" value="<% =request("ret_page") %>">
and my link is
<A href='register.asp?ret_page=<% =request("ret_page") %>
But the ret_page appears as /vfolder/Content.asp?ContentID=700.
How would I get rid of the /vfolder/ and just have the content.asp?contentID=700 alone.
View Replies
View Related
I am trying to create a link that takes a record ID and opens up a PDF file that is associated with the record ID in the database. The following code works
Response.Write "<a href=""file.asp?ID=" & rs("ID") & """>"
Response.Write rs("File Name") & "</a></td><td>"
I'm trying to rework this code to work a little more easier with Dreamweaver. I would like it to look a little more like this:
"<a href=""file.asp?ID=" & <%=(rsNews.Fields.Item("ID").Value)%> & """>" <%=(rsNews.Fields.Item("File Name").Value) & %>" </a>
I'm receiving a syntax error when I try and run it.
View Replies
View Related
one of my downloadable programs is redundant but there are still a bunch of
links out there that point to the .exe directly ...
how do I redirect the browser to another url when someone requests the .exe
file?
View Replies
View Related
If you have a webpage with frames, say a footer frame that contains links,
how can you get out of the frame if you click on a link in the footer. The
it works now, is if I click on a link, the page loads inside the small
footer frame. I'd like it to just get rid of the frames completely when I
clickon the link. Any clue?
View Replies
View Related
i wrote this:
Code:
response.write "<a href=" & "picture.htm?movie=" & movie & """>"
my variable is
movie="few words like this"
but when i start the page it links only to
Code:
picture.htm?movie=few
and i just dont know why ...
View Replies
View Related
I got a problem on how to link my page.
Example,
Firstly go to http://www.koolgift.com/index.asp,
Select Products button...
Choose "Apparels & Towels, Caps & Hats"...
then choose "5 & 7panel caps & winter caps"...
when you scroll down, you will see the Back link button..
when u click on it..it actually link you back to the previous page...
however i will like to link it back to the page where the
list of products under "Apparels & Towels, Caps & Hats" is...
this is my current coding for the Back link
<td width="766" valign="middle" align="right">
<a href="#" onClick=javascript:history.back(1)>
<p align="right"><font color="#FFFFFF">Back</font></a>
View Replies
View Related
How would you go about creating a link on a desktop through an asp page.
You know the old trick click here to bookmark this page?. I need to take that a step further, i need a link that when clicked it creates a link on the desktop to that page.
View Replies
View Related