i'm trying to set this polling script up so that i can have it pull a poll by it's id, but the user gets to pick which poll id they want to view. Now it's trying to get the poll id from a sql dbase.
I need to find out how browsers identify themselves in WinXP in the UserAgent header. For example, I would use the following to identify the operating system is NT.if (Instr(UA, "winnt") > 0) or (Instr(UA, "windows nt") > 0) then strOpSys = "Windows NT"
i created my texbox in a while loop. that means when the texbox is displayed with the questions that come from the database it has the same name. how do i differentiate this textbox from the others.
i know i have to assign some variable to it but how do i do it? there is also a button at the end of the page that check the values in each textbox with that of in the database. basically the page displays lessons where the questions are retrived from the database. and its a fill in lesson.
I have several web sites running the same set of pages and all accessing the same common database tables. A field in all the records contains the web site address of the web site to which each record pertains, for example, this field in some records may contain www.upperbridge.co.uk.
When a web site page accesses a database table, it needs to select the records that contain its web site address. How do I identify which web site this page is in?, how does the page get hold of this web site address so it can use it to select the correct records in the common database tables?
I move from one form to another when I click to a radio button. I can identify which radio button I clicked by trapping its value. but my problem is that there are a set of radio buttons followed by values being displayed from a join table.
I want to know the values displayed from the table. so that based on which I can do my further processing. Like the radio button is showing the name of student, his id, story id...and 2-3 more things. when I select the first radio button (its value = 0 ),
how can I know that the selected one is for which student_id and for which story_id.??? Code:
I am still pretty new to .asp but I have a user db where I capture user log ins. When a user logs on session variables are created (e.g. User_ID, member_type) which I use to check user bona fides when they access user only pages.
Question: How can I determine when they leave the site or that they are still accessing the site?
I have had a trawl through ServerVariables but that only provides the info for my sesssion and nobody else.
I'm looking to distribute links to a site by mail, and then identify the users following those links. (ie. embedding user id in the url, and retrieving that data)
I think Dev sheds activate account feature does what I need, as does similar features of other sites, so I would think this is pretty standardized. Unfortunately, I can't figure out what I need to feed the search engines in order to elicit a tutorial....
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 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?