I have a feedback form which asks someone to enter their personal details and then submits them to db. There are input, checkboxes and selection boxes on form.
Now I want to allow user to edit this form. When user clicks 'edit', I retrieve all the values from db and populate the text boxes.
What happens with the options and checkboxes. How can I get these to reflect what their values in db? Also I have some drop downs allowing user to select date of birth ie. day drop down, month drop down and year drop down. How do I show user the details we have for them if I'm using drop downs?
I'm trying to get a very simple task to work. Using the users login name (gained from IE) I want to get their full name from AD (Win 2k and 2003 AD domain).I'm using this ASP code on the IIS server:
usr=mid(request.ServerVariables("LOGON_USER"),8) Set User = GetObject("WinNT://domainname/" & usr & ",user") response.write "Name is " & User.Fullname set usr=nothing
This code works fine when run on the server direct using wscript, but when served by the web server I get the error:
Active Directory (0x80070005) General access denied error
I have a working members code now where members can sign up, login to a protected page and log out. I now want to personalise each members login so when a member logs in it says welcome [username] etc and then when the use logs out it says 'thanks [username] you have logged out'. I tried to query my database but it doesnt work.
I am creating my student website. I have completed with student registration parts (student enrolment form, personal details) but now my client requirement is that if any student come to my website , he/she needs to register first so if they log on next time , screen will comes up with their all details. I tried to create login page and if they are not in database , they can register on my website. But I could not able to create in my website. There might be more users so need to have loop in my code. Once user log in their name and password , it will search in database and if database found that record in it , that page will redirect to my website page which will comes up with perticular student information. project details : XHTML (Front End), Java Script (Validation), ASP (Connectivity), MS ACCESS (DATABASE).
In retrieve among other data an emailaddress from an SQL table and put it in a tabel (see code below) How can I make the email address an active mailtolink
I added a column to my Access database and defined it as hyperlink. I added some URL in the fields and i was able to see the underline under each address. In my code i added the following line : Response.Write("<td align=right>" & oRS("info").Value & "</td></tr>") (The hyperlinks defined in my database as info). I'm able to see the hyperlink when i retrieve all other data but it appears as #http://www...asp# and with no underline what is the reason and how can i change this ?
does anyone knows how i can layout items retrieved from db such as example from this online shop site . most items retrieeved from db such as Accesss are always in vertical layout.
I haven't started to mess with this yet, but is it possible to store .ASP source script in a Database field, then use ADO to get the string from the field and then force the scripting host to interpret that string from the database and flush it into the buffer for output to the browser? I was thinking you'd have to use EVAL() on the string or something...Anyone done this yet? I was working with Vignette story Server a couple of years ago, and all of the TCL source script and html is stored completely in the database, only cached pages are in virtual directories.
The link for the photos are requested from the server and so the photo appears on screen. I can produce a long list by using the response.write *** & "<br>" or whatever. but is it possible to have it start on the next line after say 5 photos in a line. i.e. where each - is a photo
- - - - - - - - - - - - - - -
rather then - - - - - - - - - - - - - - or - - - - etc.
I'm attempting to read data written to a MySQL database and view it in the browser. I've searched the net for over 3 days and I've seen many posts that say it works great, but it's not working for me. The only thing that displays properly is a text file. Everything else is garbled. I desire to store & read PDF files though. Here's my code:
Am storing images on a database and users query the database to retrieve the images. I want to add a zoom in and zoom out button that will enlarge and reduce the images depending on which button the user clicks.
The user basically queries the database for some data, and I initially retrieve just part of the data matching the query...
I display the Primary Key as a hyperlink..and when the user clicks on a particular retrieved data..i want to display all the contents about that element alone on another new page...
The problem i am facing is that i do not know the syntax to use the onClick event within an ASP code:
I managed to retrieve a table from a database and displays records on the browser using the ASP code below.
but I also want some of the retrieved record be clickable and editable so if a user decides to upadate a record it can be clicked and updated. there are two options either redirect to another page and the selected records will be displayed again to be edited or edit them on the same page,I m not sure how to make the selected records editable using the code below. Code:
I have this dynamic array(shown below) that I need to match to values (1 - 10) that I am returning from the database via DSN connection object.
The values I need to match are on the same page (in their own table) but I am not sure how to match up the array indexes to these values. I want to be able to display the array result as part of or nested in another table. Code:
how I can repeat details in a ASP page. For example I have to fill in a a form which has the following quetion.Language : (a text box here to fill in the details)
and then a message with 2 buttons Do you want to insert another? YES NOWhen click on the button YES, I want my asp page to take the quetion "Language :" and the text box and copy it so the user can insert another value.How can I do it ??
Is there a way of detecting and then recording a visitors details(eg. browser, ip, country, OS...) and then storing that info to a database automatically?If, so, could you plz tell me how to record the info straight to a database without the user having to click on anything.
I have seen an example of a page that displays the users browser details in a friendly manner like this:
Your operating system : Microsoft Windows NT Your browser : Microsoft Internet Explorer 6.0
from a HTTP_User_Agent string like this: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) Can somebody give me some sample code of how I can extract this result out of the string, using asp.
I have a list of requests that I'm displaying. The client wants to be able to display the details of the FIRST request as the page loads.
Right now, as I loop through the recordset, I'm checking the querystring for "rid", and if rid = "" then I do a response.redirect to the page adding the rid value to the querystring from the recordset.
I'm thinking this is not very effecient, but I can't figure out anything better.. anyone have a good solution to show the details of the first item on the list?
I am looking to create an upload page for my website. I would like to have the user login and depending on who they log in as depends on which folder they upload to. I'd like to be able to upload multiple files, have the file size(s) show up on the form and also be able to calculate how much time it will take to upload the file.
Is it possible to run an asp script to display the details (i.e. last modifed time/date) of several files held on the client and or on the server running IIS (if i map it to the folder with the files in question).
im trying to work out basicly what i want to do his have a list of downloads and then at the top of the page have a form that has contact details that enables the download links and sends the details to an email address. is this possible and if so are there any scripts avaliable
I'm trying to build a details page that is reachable when a user clicks on the ID of a query that's returned multiple rows of data. The first piece of code is the querytest.asp page, and the second is the details.asp page. However, how do I get the user_id passed to the details page? Code:
The code below takes the script name of a page (which is always an asp file) and substitutes the asp extension with html and then inserts the file in the <frame> tag.
This code works file for a url such as www.somesite.com/file.asp But if the url includes an index eg www.somesite.com/file.asp#position1 how do I get the #position1 added to the file name that is used in the <frame> tag? Is there a server variable for # info? Code:
I have a button which runs and submits a form and if the name and contact details aren't filled out yet all it does is recalculate some totals.
BUT, my problem is that there is a checkbox in this form that is being cleared when the form is submitted at this stage, is there anyway to stop this??
I am of the understanding that the checkbox has to be in the form because when it is selected it adds a value to a field further down in the form.
There is also another text field that I need retained as well???
Just uploaded my database how to i create a simple page where i can enter customer details into my database. i would like fields like customer id, first name last name etc where the telephone number could be the primary key
Im trying to make a client area on my website and an not sure on how to go about editing clients details.When the client logs in they are brought to a menu where they can update there record. How can i get the appropriate record from the database so they can update there details?
I badly need help head sore from banging it off the wall. I have a Gridview which when a field is clicked on displays more details for that record in detailsview. I am using a single SQL table with fields for details and 3 image file locations.
I need to create a slideshow in detailsview to show these 3 images. I have no problem displying 1 image but don't know how to add a link to flick between images.