I got that right now but i want the variable, console to be placed along with news so when it selects from the db it selects from gcnnews or whatever variable it's on. How do I do that?
I need to assign a value to a variable, but this variable name is dependant upon another variable!! I am including the code below so you can see it, cos if not I am sure you are thinking whattt?? Code:
I created an Email sender to get emails out of my database, and send it! But when they get the Email it goes into Junk Mail, which most people dont read. Just wondering is there a way of sending the Email, and for it to NOT go into junk mail?
I have many buttons that mapping many textbox, when I click button, I want to show a string that contains button number( and the mapping string ), but it failed.
Here is the code: ///////////////////////////////////////////////////////////////////// <%response.write"<input type='button' name="'btUS95resone"&" a &"' value='Save' onclick='resone("&a&")'>"%>
function resone(cnt) { alert("document.all.txt_note"+cnt) }
////////////////////////////////////////////////
It seems that the component I called is not there...
Artist Name: Kiss Song Title: Rock and Roll All Night Running Time: 04:38
And I need to be able to get the artist name and song title in asp and display it on a website. The thing is, the text file changes with the song being played on the radio. How can I do this?
I've been given an ASP app written with server side javascript. This app needs to get the username of the person currently logged in to windows (Request.ServerVariables("AUTH_USER") in vbscript). I found a way to get this variable in javascript, but then it wouldn't let me split it (server kept saying method not supported). So I've gave up on getting the username with javascript, and have set variables in VBscript at the top of my page. How do I access those variables within the javascript portion?
i have a textbix name "building" inside my system where the user might input one or several building name in it seperated by a comma. How can i extract each of the value in it? For example, "PG2, PG7, PG6", i want to extract each of them.
I am having difficulty in displaying Response.Write rsVacancies("Title") variable more than once. If I remove it from the page title it displays within the description tag but does not display in both. Code:
I am tring to search a database with an SQL statement via a web page. I am using Dreamweaver to build my page. The search works great when I hard code the table field into the Recordset. However, I would like to implement a variable on the field in the table to do the search on.
For Instance, a user can make a selection in a drop down box and then enter the text in a text field. I am having trouble implementing the drop down box variable into the code. I suspect I need the WHERE to be a variable just as the LIKE parameter but I keep getting errors. Code:
I have one condition for getting the image in an included file. If the file which is including the included file is from parent folder if should pull the image directly from Image folder, otherwise it should change the path like Code:
if c.fields("id")=request.cookies("id") then response.write "This is you" else response.write "This is " & c.fields("name") end if
c.movenext loop
the request.cookies("id") does not work! no variable will work in its position, either. the 'if...then' statement above will only work with c.fields("id")="something", not a variable, like i want. how can i get around this?
I have a HTML-only file, and asp file that do a databasequery.How can I do a query in the html file, like this: DBLookup("2").The asp file execute the query and respond with the result. Send it back to the htmlfile and put it were the "DBLookup("2")" is. I can not have any asp code in the html page.I have a php file that works like this, but how can I do the same with asp?
how can I name a variablewith the value of another variable to make the first more dynamic.Code:
<% sql = "SELECT * FROM table" set rs = cnn.execute(sql)
submodule = rs("ID_submodule")
counter_"submodule" = 0 %>
The idea is where it says "submodule" is the value of the submodule, because this part of the code is a loop that checks all the table registries. Then the 0 would be 1, 2, 3.. depending of the quantity of registries associated with the ID_submodule related.
I have a variable in an app called GenericTitle which contains text, a persons job title funnily enough. I want to check whether this variable contains the word "director" and if it does, then redirect to another page for example. Can somebody post some code that would let me check this?
I've got a form in my website where the users has to type a message. Is any code in ASP where I can get the last word of the message? Ex If I user types "Active Server Pages" is any code to get the word Pages and put it in a variable?
Is there any kind of variables (i think session vars?) that stores the data in it for ever.. I mean i have a project with textbox and button, every time some enter a data to this textbox I want it to store "var=var+1" number of times people done inputing.. then I can show this value in a page.
I am getting the table name from another page, and i wanna generically use the table name in the select statement
the code..
Dim Tbl
Tbl = request.querystring("Tbl_Name")
rsUsage.Open "Select * from '" & Tbl & "' where ReceptorName LIKE'" & Pri_Key & "'", strConn. i wana do something like that. how do i use a variable for the table name in the select statement?Could someone tell me the proper syntax usage.
I am trying to set up a CDOSYS email to send mail to my customers from my website. I have no problems sending either plain text or HTML mails (ish) from the code I already have. The main issue i am having is that the mail will always be filtered into the junk mail folder on outlook 2003 and hotmail. (they are the only two I am testing).
Is there a way to prevent this from happening? I know one solution would be to ask the customers to set the "from" email address as "known" but for my scenario, this is not really going to be sufficient. You may have noticed I had an "ish" next to my HTML mails. I have found that when the mail using images is recieved in outlook, it converts the mail to plain text by default, but hotmail just rejects it all together.
I often get mail from other websites (newsletter etc etc) and they dont seem to be filtered, plus if there are any images in the HTML email that is sent to me, outlook gives me the option to download them if I would like to. How do I get this sort of system in place?