Auth_user :: Get Username From Windows Showing Prompt Box?
I use auth_user for get username from windows, when I upload that page on server and user open the page that contain this code ,it shows a prompt window and wants username and password ,it's common or it must get automatically from windows?
View Complete Forum Thread with Replies
Sponsored Links:
Related Messages:
Auth_user :: Get Username From Windows
I want to my web page get username from windows and use this username for limitation access of user to pages, my authentication is windows I thinks because user input username for login to windows, and auth_user has value of username I think maybe it doesn't need to get username again, but you say it's normal.
View Replies !
View Related
Windows Username
I have a problem with ("auth_user") in asp,I try to use windows username and password in asp page for limitation user access to pages, but this server variable returns empty string
View Replies !
View Related
ASP Grabbing Windows Username
Anyone know how it is possible for windows to get the name of the user logged in? I know if you do : Request.Servervariables ("AUTH_USER") it displays the username of the person logged in, but is there a way to get the "Full name" of that user in the active directory? Ie, if they log in with the username jsmith, I from that I know there full name is John Smith.
View Replies !
View Related
ASP, CDO For Windows 2000 & Embedded / In-line Images Showing As Attachments
I have been using the CDONTS.Newmail object for a number of years to send nicely formatted HTML Emails with inline images. I am now trying to switch over to using CDO and I cannot reproduce this functionality. I am using the AddAttachment method instead of the old AttachURL method but the attached images just show as separately attached files rather than in line in the HTML. According to MSDN: "If you populate the HTMLBody property before calling the AddAttachment method, any inline images are displayed as part of the message." Well, I am doing that but it is not working. The images show up as if I had attached them using the old AttachFile method. Code follows....
View Replies !
View Related
Hyperlink Appear Only If Windows %username% Equals Employee
Trying to set up an asp page where the rank and file employees can view the results of an Access 2k database with the standard links, etc. Certain employees have been tasked with updating things in the database. I would like to set up the ASP page to query the %username% variable on the Windows systems that view it, and if it is a match, then present a link to update the Access 2k database. Is it possible and where would I look for help/assistance with it?
View Replies !
View Related
Capture Client's Windows Login Username
I am running an application in Windows Server 2003. The clients with Windows XP Professional will access the application through the web browser. Can I know how can I grab the Windows login information like username DOMAINUSER1 from the client and apply it to the login credential in my application?
View Replies !
View Related
Auth_User Blank
I am trying to use AUTH_USER from request.servervariables but the field is blank. I am using Windoze server 2003 with IIS5. I know there is a fix because I did it a long time ago with our old NT server running IIS4 but I cant remember how I got it to work. We are all authenticated users on our Domain so this is available, I am able to get IP info and such. I seem to remember some kind of ASP code that did the fix by altering the way the web server displays info.
View Replies !
View Related
HTTP AUTH_USER
Can I set the ServerVariables AUTH_USER and AUTH_PASSWORD without requiring the client to actually enter an HTTP login and password? I have an asp page setup that authenticates a user against the user information stored in our database. Now, after authentication via our database, I would like to set the AUTH_* server variables so that when I can redirect this client to a directory which is set up to require authentication to access. The important thing here is that the only thing the user sees is my authentication mechanism, not the standard HTTP authentication window. I also don't want to maintain a zillion user accounts on the machine, I want set all the users who authenticate against my database to be set to the same AUTH_USER.
View Replies !
View Related
AUTH_USER LOGON_USER
I have used the same syntax in two pages and sometimes each server variable is return, and sometime it is blank. In fact, I created a test page this morning which worked fine, and then an hour later the variables are blank. I read some of the threads about the anonymous user box in IIS, but this just seems strange. P.S. Each PC in our environment is authenticated through active directory (just to logon to the PC, not security applied to the web folders).
View Replies !
View Related
Prompt() Into Textbox
How do you get a javascript prompt() box to put whatever you enter into the prompt box into a text box. So for example you would be typing in a textbox and you would want to add a word in bold, so you click the a button, a prompt box appears and then you enter the word you want in bold and then click ok and it adds it into the box where the cursor is within the box with the tags <b> </b> .
View Replies !
View Related
Prompt To Print Page
Is it possible to prompt the user to print an asp page? For example, in this instance, I have created a job logging and monitoring system. At the completion of the job, I would like the user to be prompted if they want to print the job. If they say yes then the page is printed.
View Replies !
View Related
Login Prompt Always Pops Up
everytime i access my localhost it always prompts me to enter my user name and password....is there a way for me to access my asp page which is mssql database driven with going thru this username and password thingy?
View Replies !
View Related
Determining Command Prompt Error
When I run the following code, i get an error: 80070002 corresponding to line18: wshell.run (name). When I copy & paste this command to prompt it works fine. Have tried other simple commands such as ping as they work fine. Any idea what error number could be or how I could output the error the prompt might be giving. Code:
View Replies !
View Related
Basic Authentication No Prompt Login Box
I have a problem with basic authentication. I redirect a user from a page to another. I don't want to get the NT prompt login, I want the user to be logged in automatically. I want to send the username/password to the page. I have read something about cookies and sending username/password through the header. With the new Windows Update 832894 it is no longer possible to use http(s)://username:password@server/resource.ext Is there any other way to redirect to another page and pass the username and password.
View Replies !
View Related
Bring PROMPT() Information To Next Page
I have an ASP page that contains an A HREF tag. This will load a new page and carry some variables to the new page. What I want is that, whenever a person click the item,the prompt box comes up and ask "why are you not working item." Whatever the person types as the response, I want it to be also carried over to the new page and stored as a variable. I think that JAVASCRIPT could achieve this, but I do not know how. Can anyone tell me the script that willl accomplish this? The information I have in the page itself is as follows: <a href="somepage.asp?repp=<%=avariablefromthepage%>&pot=<%=anothervariable%>&wantfix=n" value="no" onClick=''whyNotDone();''>Not Done</a>
View Replies !
View Related
IIS Basic Authentication Login Prompt
IIS raises login dialog box prompt on browser for resources protected using basic authentication. That login prompt gives user 3 attempts to enter correct userid/password. IIS throw 401.1 error if third attempt fails. Does anyone know how to change this number of attempts. Is it possible or impossible to do ?
View Replies !
View Related
XMLHTTP To Prompt File Upload
I am trying to upload a file on my web server to another website using XMLHTTP. My code logs onto the other website automatically and navigates through about 4 pages to the file upload screen. If I were trying to post regular form data to the site it would work fine, but I have to some how mimic the <input type="file"> box and enctype="multipart/form-data" parameter of the form within the XMLHTTP post. I know I have to turn the file and other form data on my server into a binary stream and send it to the receiving website.
View Replies !
View Related
Prompt "Save As" Dialog For Image
I'm trying to force save as dialogue using this code in download.asp..but when it runs it prompts for download.asp to save or open. code snippet (from aspfaq.com) Response.ContentType = "application/x-unknown" ' arbitrary fn = "wallpaper_1_1.jpg" Response.write "<br>" & Server.MapPath("wallpaper") & "<br>" FPath = Server.MapPath("wallpaper") & fn Response.AddHeader "Content-Disposition","attachment; filename=" & fn Set adoStream = CreateObject("ADODB.Stream") adoStream.Open() adoStream.Type = 1 adoStream.LoadFromFile(FPath) Response.BinaryWrite adoStream.Read() adoStream.Close Set adoStream = Nothing I want this page to prompt save image option, not page itself.
View Replies !
View Related
Password Sessions - Prompt Password Change
I created sessions to authenticate username and password. How can I utilize this same script to alert the user to change password at 3rd login? In other words when a user logs into a site after the 3 or 4th time which ever, they are prompted to change their password. Code:
View Replies !
View Related
Showing XML
Can anybody help me with displaying two xml content in a asp page. i want it to be shown with collape and expand feature (with those + and - feature when an xml file is opened in explorer). i tried having html frames but i am not able to add menu in the same html page. right now i have menu and two text boxes to display this xml content. i want to use something else instead of text boxes to display xml in indented form. i thought i could use browser component in asp page but it doesnt work.
View Replies !
View Related
Video Showing
I have an active-x control on my asp that loads a wmv video file.But i have a problem viewing the video until i have download the whole video on the active-x control. Is there a way to see a portion of the video without complete download?
View Replies !
View Related
Showing Tif Files
I have a strange problem on WindowsXP proffessional with IE6 ,when i try to display a tiff file ,it is not showing ,small red x is comming up. I tried by dowloading latest IE from microsoft but no use. This is working fine on win2k IE6.Here is the html file I am using to display the tif file. <html> <head> <img SRC="http://192.168.0.30/test/test.tif" BORDER="1"> </head> </html>
View Replies !
View Related
Showing Reminders
I make a intranet Project For a Company.In that Project i make some reminders that can send each other users.When the Reminder come it should be alert like yahoo or Msn means Reminder should be show right side of the Taskbar and it's come like fade.
View Replies !
View Related
New Pages Not Showing Up
i have just uploaded the new files to a website i have rebuilt. I have refreshed IIS and restarted the website but the new files are not showing through on directories that existed before eg subscribe etc. The new directories that didnt exist before work fine but would the internet connection in our office be caching previous pages that are no longer there and trying to access them?
View Replies !
View Related
Showing Records For Each ID
I'm really trying to make this work. I have a dbtabel with following fields. ID PlayerID Date Point I want to show each players point like this "1,2,5,6,4,8,9", but i want the script to first add up which player who has the most points, and then list them in order of wich player who has the most points... 1,3,5,6,4,5,9 2,1,1,3,2,3,6 2,5,6,4,1,1,0 Each row is each PlayerID's row. Is this possible.
View Replies !
View Related
Updates Not Showing
my problem is The updates on my asp files are not reflected in the browser. Till recently everything was working fine. Today I installed new updates on my windows 2000. After all the cached asp contents are appearing and the updates are not getting refreshed. I dont know if this is becoz of the updates on my OS. I had a file addfield.asp. It was working fine, I made some changes and they worked. But after that my updates are not reflected. If I rename the file to addfield1.asp. I am getting the desired results. Again if I change the contents of this file, they are not appearing.
View Replies !
View Related
Images Not Showing Up
why some of my graphics wouldn't be showing up? I'm using css and everything looks fine in dreamweaver until I upload it then half my graphics are not visible on the page but they are there because I can still click on them, I just cant see them. Any reasons?
View Replies !
View Related
Records Not Showing
I inherited a database driven site, which displays events pulled directly from an access 2000 database. when these events are edited in the admin system, or when a new record is added (again via the admin system), the record will no longer show up as being editable on the choose_event.asp page. I checked the database, and the changes are being made.
View Replies !
View Related
Showing Companyname In URL
ok so I wrote a template based CMS.... A small company requires a website, they come to my site www.mutedesigns.co.uk/sbs and choose a template, pay, register, edit ther details and pages and then view their site simple and it all works yay! Code:
View Replies !
View Related
Showing Shared Dir
I'm working on a Intranet, and found this code to list the contents of a directory. However, the only directory I've been able to show is the dir where the script itself is (Inetpub/Scripts). How can I redirect to a directory somewhere else on the network ? Code:
View Replies !
View Related
Showing Birthdays In ASP
I have a table called 'players2005' with fields of 'player' and 'pdob' The 'pbod' is a DATE realted to the players date of birth. Using ASP how can I call the access database to show members that date of birth is today. I have the rest of the script but just nedd a SQL statement Code:
View Replies !
View Related
Code Showing
I've been working on a page at work, which has been fine, yet when ive come to try it at home, i load the page (the page loads fine) but i see all the code etc that was hidden before. example what i see at the top of the page: <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%<% OPTION EXPLICIT %<% 'dim oCdoMsg, oCdoConfg, st but i see tons more than that, basically all the code to the next %>
View Replies !
View Related
Showing Only Null Fields
What to only show the Null fields on an ASP Update form. eg. <% If "Recordset1.Fields.Item("B15-1").Value" = IsNull then %><input type="text" name="B151" value="<%=(Recordset1.Fields.Item("B15-1").Value)%>" size="32"> ...etc get what i mean? Needs to be per field - as the exact fields will differ from record to record Any ideas?
View Replies !
View Related
Showing Different Pages (AbsolutePage)
I'm using AbsolutePage to show the results of my recordset in different pages; of course if there is a lot of data, it's gonna show all the links (for example 100 pages, 100 links) So I want to do something like this: pag. 1 2 3 4 ... 97 98 99 100 and of course without showing "..." if there are less than 4 pages. What's the easiest way?
View Replies !
View Related
Showing Records For Each User...
I have a Golf leaderboard based on points given to each player after each match. That works fin, but is it possible to show everys players record after his or hers name. At the time it looks like this. Mike 7,50 Peter 5,45 etc. My code is like this Code:
View Replies !
View Related
Some Data Not Showing In A Form
I am using SQL 2000 database and MS Server 2003. I am pulling in data from a sql table. For some reason, when I include the following line: <tr><td><b><%if rs("Street_dir")<> "" then response.write rs("Street_dir") & " " end if%> <%=rs("Street_num")%> <%=rs("Street_name")%> <%=rs("Street_suf fix")%></b></td></tr> then the following line does not display: <tr><td><%=rs("remarks")%></td></tr> The REMARKS data is blank. But, if I remove the upper address line, then the REMARKS appears. The address is 1111 Main so that does not seem to be the issue. The address information is VARCHAR fields, 255 characters. This works fine on another server where my files used to be, but I just moved to a new server.
View Replies !
View Related
Pictures Not Showing After Upload
I have an upload facility which is working fine. uploads to a folder (photos) through aspsmartupload and database. Ive checked the folder, n database to see if the file is being uploaded and it is. ITs just not being displayed properly on the site. ALl the pictures come up with a little white box with a red cross in it, in the top left had corner.. so its identidied as an image , but its not showing the actual image. .
View Replies !
View Related
Showing All Spaces Without Using The
I am using ASP to read code from a text file that I am displaying on my page. Because I do not want the code from the text file to be executed, I used the Server.HTMLEncode() method to display it as it is in the file. However, the spaces used to indent lines is still removed by the browser. I cannot use VBScript's replace function to replace all spaces with because that would replace all spaces, including ones that I do not want replaced as well as majorly increasing the size of my file. Is there any way to display the spaces used to indent the lines without manually writing a function to do it?
View Replies !
View Related
Showing An Include File
I would like to have the option to show and include file which has a one line table with a red background and printing to pull info out of a SQL database but only if there is data in the table. Basically it is to show breaking news when it happens before there is an article. The SQL table is called breakingnews and the column is called brknews. If the column brknews has nothing in it, I don't want the table to show up on the page but if there is data in it, I want the colored table and text to show up on the page.
View Replies !
View Related
Showing File Extension
If you'll notice, there's a comment in this snippet that drops the extension. How can this be modified so that the extension IS shown? Set myFileSys = Server.CreateObject("Scripting.FileSystemObject") Set Folder = myFileSys.GetFolder(Server.MapPath("/meetings")) for each file in Folder.Files If Not file.name = "index.asp" Then FileName = Left(file.name, (Len(file.name) - 4)) 'drop the extension FileSize = cint(file.size / 1024) 'convert into kilobytes and drop the decimal Response.Write("<li><a href='/meetings/" & file.name & "'>" & FileName & "</a> - " & FileSize & " K<br>" & chr(13)) End If next Set myFileSys = nothing
View Replies !
View Related
Showing An HTML File
Showing an HTML file in part of a Webform.I have a Webform with some buttons on the left side of the form. What I want when clicking one of the buttons is to show an HTML document in a part of the Webform (as if it was a Frame page).
View Replies !
View Related
Showing Default Option
How do I display 'Please Select' as the default value my code is below.Code: <option selected>Please select</option> <%SQLStmt = "SELECT magcode FROM Magazine ORDER BY Magcode" Set rsDistMags = Connection.Execute(SQLStmt) Do WHILE NOT rsDistMags.EOF%> <option value="<%=Trim(rsDistMags("magcode"))%>"<%If Request("magcode") = Trim(rsDistMags("magcode")) Then Response.Write " Selected" End If%>><%=Trim(rsDistMags("magcode"))%></option> <%rsDistMags.MoveNext Loop%> </select>
View Replies !
View Related
Pivot Table Not Showing
I see a similar unanswered post here, I face the same issue.Does Win XP have some bug with Microsoft Office Web Components 11.0 ?I am unable to see a pivot table which I added, in my web page.Strangely enough, this control is showing perfectly in Win 2K with the sameweb page.
View Replies !
View Related
Pages Showing Codes In IE
when i try to view an ASP page in my IE web browser, all i see are the codes used to design the page but when i preview 'em in Dreamweaver its okay.Why is it so ?does it mean if i publish my asp pages to the web; thats how they'll be on other people's browsers ?what do i do to be able to see the actual web page and not the codes in an ASP page.
View Replies !
View Related
Dynamically Showing Datediff
I have a datediff comparision value on my form. Since one of the dates inside the datediff is: now(), I'd like to know if there's a way to show the result dinamically (without reloading the page..). I can't see how to do it from server side...It's possible to use js to fill the field or reload only the field value? detail: I'll need to submit the current diftime value along the other input values on my form at the end of process.
View Replies !
View Related
Without Record - Page Not Showing Up
I have an ASP page in a table style (heading and data). At the beginn of each month (actually only the first day) there is no data in my database and so-with nothing to show up on the ASP page. If I would like to open the ASP page over the net IE is telling me that it cannot find my page. Is it possible that, even if there are no records to show, at least the heading is shown on the Internet?
View Replies !
View Related
|