Using Asp Variables Straight In HTML Code
I have a page which has a header finding out some variables from request.querystring and other places. Later on in the page in what is normal HTML code I want to use the variable but am having to do this:
<%
response.write "<A Href='" & shopurl & "' target='_blank'>Shop</A>"
%>
is there any way i can just have the line with the variable being interpreted without having to go into a code protect and write the line out with code. Something like this:
<A Href=%shopurl% target="_blank">Shop</A>
View Replies
ADVERTISEMENT
I'm doing a content management system, whereby the user can enter the HTML code for a currency symbol, eg £ for £.y . when I bring this data backup, say they want to edit the settings, then my ASP/HTML page is rendering the HTML code, eg £, rather than showing the original value, eg £.
If for example I put a space between the '&' and the 'pound;', eg & pound; then this will cause me problems because the user will think that they have to a put a space in or they file it with the space, which means the HTML code won't work any more. Is there a way round this?
View Replies
View Related
how I can display three straight columns (maybe possible to use some kind of tab?) using ASP. Assume the columns contain, first name, second name and address.
What should the ASP code look like to get this output? I don�t want to use tables (even though it should look like a table without borders have been used).
<%=John%><%=Doe%><%=Incognito Street 3%> <br>
<%=Jane%><%=Doe%><%=Leaf Street 13%> <br>
<%=Pete%><%=Wilkins%><%=Tree Street 8%> <br>
View Replies
View Related
I wonder how I can display three straight columns (maybe possible to use some kind of tab?) using ASP. Assume the columns contains, first name, second name and address. I don’t want to use tables (even though the output should look like as if a table with no borders had been used). The code below obviously isn't good enough for that purpose.
<%=John%><%=Doe%><%=Incognito Street 3%> <br>
<%=Jane%><%=Doe%><%=Leaf Street 13%> <br>
<%=Pete%><%=Wilkins%><%=Tree Street 8%> <br>
View Replies
View Related
I am looking for a script that will allow me to upload a file (I will be working with images for the time being) directly from my local computer to my web server, and for it to interact with my database, by automatically response.Writing a link to that file within a database field.
I have been googling but haven't come across anything.
Any ideas of where to get a free script or two?
View Replies
View Related
Here is the line that I am using.
response.write("<p style='color:" & Item"'></p>")
the word Item is a variable with hex code in it for color. This is pretty simple I think, but how can I get this variable to work with this HTML.
View Replies
View Related
I am designing an Interactive website that uses MySql. At the moment I have just designed the Login pages for users. However to do this I have a Login.html page and a Login.asp page. The values from the html form is posted to the asp page which checks the details against the databse and redirects the user acordingly.
However I would like to have just one Login.asp page where this is all done in. I have tried simply putting the html code into the asp page but the problem is that as soon as i run the login.asp page (on IIS), the asp code is also run. How can I change this so that only once the user clicks on the submit form button, only then the asp code is executed?
View Replies
View Related
I'm looking for asp or java script that encrypt html
code. That it will confuse some surffers that trying
to steal content.
View Replies
View Related
I have creating a simple ASP guestbook using an Access Database, is there any of disabling HTML code so that visitors cant post HTML in the guestbook entries?
View Replies
View Related
How do you put an asp code inside an html tag?
This is not working:
<a href="contact.asp?subject=Question about group
<%=(Recordset1.Fields.Item("group_name").Value)%>">Send a message</a>
I am actually putting above info in an Access field. People would be able to send me email through a form in contact.asp and I want the subject line reflect which page they came from.
View Replies
View Related
So, when my search returns the result I need one of the fields to be clickable and show the customer's info for the clicked customer.So, lets say we make the ID clickable.
So, my HTML has to look like:Code:
<input type = "submit" value="sqlrs("ID")">
How do I construct that in ASP since, using " in strings ends it and same with Response.write methods.
View Replies
View Related
is there any way to indent HTML code inside a simple textarea?
View Replies
View Related
How would I insert this code into a .HTML document rather than a .ASP document.
<%
Set MyFileObj = Server.CreateObject("Scripting.FileSystemObject")
Set MyTextFile = MyFileObj.OpenTextFile(Server.MapPath("content.txt"))
WHILE NOT MyTextFile.AtEndOfStream
Response.Write(MyTextFile.ReadLine & "<BR>")
WEND
MyTextFile.Close
%>
Works fine in .ASP but not .HTML.
View Replies
View Related
im using some wysiwug editor called htmlarea to add some articles to the DB through textarea (something like that we use to add threads) but when the html code contains a link for example it gives error coz of the the ("") in the html tags .. it's something like this Code:
View Replies
View Related
,I need to call a URL, receive the raw html in my VB Script code and parse it
to retrieve a value from a cgi generated web page on a remote Apache Web
server.
What is the best method to accomplish this in ASP 1.0?
View Replies
View Related
How is it you should format your ASP code to that when viewing the resulting
HTML text from the browsers "view code" it looks nice with line breaks?
View Replies
View Related
I have a e-mail function in serverside VB, how would i put html code in the body variable so when email is recieved it looks like html page in the body. right now it just shows up as text in the body of message,
<html><head></head><body><table><tr><td>one</td><td>two</td><td>three</td>
<td>four</td></tr></table></body></html>
There must be a way because i get emails with html ?
View Replies
View Related
inserting dynamic page code in .html page? i.e. i would like to insert a code which will display links. where my homepage link extension is .html. if it is .asp it would have been very easy. and also i would have worked fine. but now the problem is the homepage index file extension is .html.
so if i insert the code it is not displaying the links. i tried inserting the code in a separate file and saved as file.inc and gave the link from home page <!--#include file="file.inc"--> but still the link is not showing and not working.
View Replies
View Related
i have a database and the asp file. my database will have one table, a user table, with various fields like username, password, name...age.. all i need is the html code to make a simple form such as
Welcome to the add user page:
PLease enter a username (input box)
Please enter an email address (input box)
finally a submit button.
i then want the variables to run a 'signup.asp' file which i have, and be placed into a database.
View Replies
View Related
Currently, when I'm building dynamic pages I build a page (for example, default.asp?ID=2) to process one variable within the dynamic URL (ID), and find myself having to create a seperate page if I want to process 2 variables for the same content (i.e default.asp?ID=2&Dt=3).
Surely there's a way of loading different content on the page depending if the URL you to the page has either one or more URL variables - is there a way of doing this? I've been thinking about it, and would it be simplest just writing an IF statement (e.g : if the URL contains only one URL variable, load this content, if it contains 2 URL variables, load this other content.
Would someone please be able to give me an example of how this IF statement would be written?, as I've never had the need to write an IF statement before. If you are able to give me an example of the IF statement I'm after, would you be kind enough to comment it aswell so I can understand the methodology behind it?
View Replies
View Related
I have a table having 3 columns. There is a checkbox for each line. I
need to get those lines whose checkboxes are checked, and show those
lines to another webpage. Is there any way to do that? My concern is
that all information in the table are in <tb></tb> pairs without any
name tag. Any idea?
View Replies
View Related
can anyone tell me difference between environment variables and server variables.
View Replies
View Related
I'm looking for sample code that will require a use to enter a code from a scued image format.
I'm sure you've seen them before where the image is barely readable by a human and the user has to enter the code correctly to submit the form.
I'm looking for ASP code and NOT ASP.NET code as I am supporting a legacy site.
View Replies
View Related
i need to include the html inside another html, though it might appear simple, the catch is this, my one html is in one server and my another html is in another server.I cannot read the html and stream it as it has images and their path gets changed when i do that.
More over i donot have any control over the html which i am going to include all i have is a url http:abcxx.htm whose content i want to show in another asp page. The technology is ASP (vbscript and javascript).
View Replies
View Related
I'm not sure how to best describe my problem, so a simple example should help explain things:
I have two arrays, called set1_data and set2_data
if I create a variable like so:
firstPart = "set1"
and then assign like this:
copyOfArray = firstPart & "_data"
how do I make copyOfArray reference the set1_array, as opposed to just a string "set1_array" which is what it's doing?
I've had a good rummage round ye olde Internet but couldn't find anything there must be a keyword or function to achieve this?!?
View Replies
View Related
I've created a form, using ASP to pull through first and last names from a database into another database. I cannot get it to put a space between the names it pulls through!!! Can anyone suggest what a put between the two to get a space!!
<%= rsGetStaff.Fields("FirstName").Value %><%= rsGetStaff.Fields("LastName").Value %>
View Replies
View Related
I have an asp file that I made and I want to have it when you come to my site, the index.html redirects you to the .asp file, what is the code to do this?
View Replies
View Related
ASP is server-side technology.All it does is process data sent from a
client in a Request and generate html to be sent to the client via Response.
You'll probably get a quicker response by posting to a relevant newsgroup.
http://groups.google.com/groups/dir?sel=33584039
View Replies
View Related
What is the difference between HTML and ASP?
Apart from this,i know that ASP can display data from the text file of the server.Can HTML do such thing too?
View Replies
View Related
I need to make a javascript include file using asp. I know how to make the include file with a .asp extention, but I am haveing other truobles
How can I make the < in html code be displayed as < not hidden and executed as normal code? Ex. <body><font color="red">this is text</font></body> would be displayed as that not this is text (but colored red). There's some function... ...can't think of it... ...I kind of does replace(pghtml,">",">"), etc...
since I am getting the data from a database, I need it ALL to go on one line when I response.write it, how would I do this?
View Replies
View Related
I have an index.asp which consists of frameset and frames. The sub-frames
also consists of frameset and frames. This way, I can set the layout of my
webpages.
In one of the frames, I load Login.asp. When it is submitted to
doLogin.asp, I validate the login information. When I validate the password
successfully, I want the whole webpage (the index.asp and down) to reload
because it has to re-draw the menus on top. When the login is failed, it
redirects to Login.asp.
I am having a hard time doing this from my ASP page right after I validate
the login information.
View Replies
View Related
I'am new to the ASP and I have a question about how do I get the name of the form?
<form name="zoekbedrijven" id="zoekbedrijven" method="post" action="form_lijst_bedrijfseenheden_bdrf.asp">
How do I get the form name with ASP like in javascript:
document.forms[0].name
But this doesn't work but how should I do this?
View Replies
View Related
I have a PSD layout and I would like it coded in HTML (well ASP - ie basic, header/footer/middle - ASP not totally necessary) and table-less CSS.
PSD contains a few links up top which would require use of some image rollover technique.
Payment would be via PayPal. Please PM if interested and include experience you have with CSS.
View Replies
View Related