I have a asp page which need to launch lets say x.asp in a pop up window the asp page itself has a bag load of responce.write's within and i was wondering if i could lanch x.asp in a pop up window 100 x 100px etc etc.
When i use this it also gives me the domain name as well as the username. (example, amrswbouse) I know i can do js to trim off the first few letters but i want to know if there is a server variable that will save me the effort.
I have over 6000 record in a SQL Server database (in one table) and trying to fetch all these records at once but it always fails. I have tried every thing, increased Script time out function to 300 even to 3000 but still same. Used response.buffer=false too but no change.
I am executing a stored proc that starts a sql server 2000 job and everytime I call the proc from my asp.net 2.0 page it gives me the error message that this particular job id does not exists, any suggestions?
I have followed the steps in the MS article 288367 to enable Word to run from a web page. I have done this several times and it has worked OK. However, at a customer site I am getting the following error: Access denied attempting to launch a DCOM Server. The server is {000209FF-0000-0000-C000-000000000046}.
This AppId is the Word.Application object which the article does not mention, it only talks about the Word.Document object. You have to create the Application object before you can create the Document object, so does the Application need the same DCOM settings to be applied to it?
set ws = server.createobject("WScript.Shell") ws.Run strcommand
The exectuable gets launched but does not complete as the control is passed back to the ASP page. How do I wait for the Executable to finish before getting back to the user.
This will launch the file in an IE window. I was wondering if it would be possible to have the same link above but have word open the file instead of IE? Have something like a jscript function that does onclick...blah..blah. Is this possible? If so, any sample coding or where to get more information.
Is it possible to open a new MSN Messenger window from a link on a site using ASP? I want to try and use it like a live chat link, but want to use the audio and webcam facilities MSN provides.
Haven't managed to find much on search engines and not sure where to start. I notice that this forum provides a link to send an MSN message to members, but it didn't seem to work when I clicked one(it just opened up a new window and then redirected to the home page).
I am trying to launch word from an asp page. I need to pass data picked up from a recordset into a word template and then email the resulting merged word doc to the user. I keep getting the error:
Microsoft Word (0x800A1772) Word could not fire the event.
It appears the problem lies with the path. As I am only running this locally on my pc at present the code path I have is:
set MyWord = createobject("Word.Application") MyWord.Documents.Open "D:sitewebprojsummariesEnvUtil.doc"
This is where the Word Doc is located. Am I missing something?
I have written an ASP application using our IIS server which retrieves data and displays them in a nice grid. My boss wants the application to create a .txt file of this data when a button is clicked and then open Notepad with this new file so that it can be saved locally on a user's harddrive.
I can create the file itself fine, but trying to launch Notepad client-side with this new .txt file has proven to be an absolute nightmare. It is a nightmare because I've gotten errors such as from "Automation server can't create object" to others that are a constant, annoying road-block to what seems to me ought to be a simple trick.
Bottom line, how do I do the above without getting errors (opening Notepad with the file created)? Again, Notepad is what my boss wants used, so with that I need to know the solution with ASP (not ASP .NET).
Can anyone get me started or point me to a resource for some help?
I have an ASP page that displays various boxes, tables, and information. I want to be able to click an "Email" button and have the asp page save the page as an attachment (html?) and then launch Outlook and automatically attach the page to it and enter the email address of the person I want to send it to.
I can't just send a link because the page is generated on an Intranet and I need to send it to people outside the network. So, I need to save a print screen of the page and then have Outlook grab that and the recipient's email address and put those into Outlook so the sender can review and send out.
i am having a problem with ASP not doing the requestion action of Response.Write based on conditions of a code entered on a first page. The codes are below. I made the second page from template of another that yall helped me with and it aint working.. Code:
Was curious if someone could help me out. I'm setting up a website and using Server side includes to make it easier for maintaining. I've got a contact form that will be included on several pages and I need to know from what page the forms is getting posted from. If I can figure out how to pass one value to a hidden field I can use the form as an include instead of hard coding the whole form into each page.
Ideally the value to be passed could be coded into each page then asp could pick it up and insert it into the hidden field. Any one point me in the right direction for accomplishing this. I don't have a clue about asp other than the basic include statement.
May i know isit can use asp to send an automail when customer fill up the registration form. i need to send a automail to his email verify the customer details. is it any free source code to write?
Since ASP server scripts use VBScript by default, does it mean it is redundant to put the following in ASP page? Then when do we need to use this? In client-side VBScript?
I want to be able to write a gif in my ASP app. Not even sure if it is possible with response.write. I want to replace the 'Member Log In' text with XXX.gif, and still have it linked to login.asp....
I am trying to retrieve info from database and display it in the form. The problem I having is when I try to change the info in the form, it is not changing and I don't know why. table.fieldname = payroll
Code:
payroll = rs("payroll") If payroll = "something" Then payroll = "Some Payroll" End If
In the form table: <input type="text" name="payroll" value=<%response.write(payroll)%>>
I want "Some Payroll" to be displayed in the form instead of "Something".
<% username = Session("username") if ("" = username) Then Response.redirect "login.asp" response.Write("Sorry, you are not logged in.") response.End End if %>
How do i write that Sorry, you are not logged in ... to the login.asp?
I've tried using a FSO to write to it directly. I've even managed to write a script for windows scripting host and invoke it from ASP, using standard output redirection (">") to redirect output to a file with no problems.
However, I can't seem to send writes to LPT2: from ASP, even through the other script.
It works perfectly fine if I invoke the WSH script at a command prompt using precisely the same command line, but when I do it from inside an ASP page, I get nothing.
Are there some permissions for the port I have to set or some such? I honestly have no idea how to get it to work.
If it is relevant, LPT2: is a mapped port for a network printer.
Yes, this is related to my previous thread, but I'm down to a much, much more specific problem.
I am trying to check for the final sql statement before passing it to a database. I want to build the statement using user input in three text boxes. However, the sql statement does not give me the right statement. Instead it gives the following message: Error Type: Request object, ASP 0102 (0x80004005) The function expects a string as input. /sailors/loginverification1.asp, line 14 CODE: <% strSQL = "select PeopleNameFirst, PeopleNameLast, PeopleClubCode from People where " & _ "PeopleNameFirst ='" & Request.Form(txtFirstName) & "' AND " & _ "PeopleNameLat ='" & Request.Form(txtLastName) & "' AND " & _ "PeopleClubCode ='" & Request.Form(txtPassword) & "'" Response.Write strSQL %>
Does any one know how I can position the output at certain point? Such as If I want to print "hello" starting at position 50 from the left in the file.
I am creating html string in a component that transforms xml into html. Works o.k. with small html strings, but takes forever to response.write big html strings. Is it possible to speed it up?