I am running a rather large email list and want it to be processed directly on the server. I have been using ASPEmail from Persits, which has a SendToQueue function, but it still requires a lot of processing time in the browser, and often times out. Can anyone tell me the best way to do this?
I've been using SSIs for a while now. I'm now using them in a menu system. I'm trying to use multiple SSIs, that is SSIs within SSIs, but I'm just wondering if this will slow the pages down, and put too much strain on the server. I'll try to illustrate what I'm doing.
This is a dropdown menu system. Rolling over Link1 will reveal Link1-a, Link1-b and Link1-c, and likewise with Link2 and Link3: Code:
Is it possible to set up server-side mail services such that when someone e-mails to a certain address, the contents attached to that mail are processed and the processed content is returned to the user, again, as an attachment?I installed a server-side component for managing graphics. "Wouldn't it be nice," thought I, "if untutored staff could email graphics to a certain e-mail address to have them resized and returned to them.") I understand how to handle the graphics processing and the sending. I don't understand how to set things up so that e-mailing to a certain address will trigger the start of an application. Ideally you could do this all within ASP. Is this possible?
is it possible to open an excel file (used as a template) from server using server-side vbscript; then modify it or add values from client using client-side vbscript?
Following is a vbscript code extract triggered by a combobox OnChange event. arrVendorA and arrdefpack are server side arrays and i need the intCounter parameter to be the array index. Code:
<script> sub getstdPackByVendor(strPartNo, intCounter) dim selVendor selvendor= colSelect("cboVendor", intCounter).value
if selvendor= "<%=arrvendorA(intCounter)%>" then if "<%=arrdefpack(intCounter)%>" = 2 then colTD("txtStdPack" & intcounter+1 ).innertext = cstr("<%=arrVAStdPAckL2(intCounter)%>") end if end if end sub </script>
The following code is giving me a type mismatch error at the 'if' statements... any ideas, anyone ?
sub getstdPackByVendor(strPartNo, intCounter) dim selVendor selvendor= colSelect("cboVendor", intCounter).value
if selvendor= "<%=arrvendorA(" & intCounter & ")%>" then if "<%=arrdefpack(" & intCounter & ")%>" = 2 then colTD("txtStdPack" & intcounter+1 ).innertext = cstr("<%=arrVAStdPAckL2(" & intCounter & ")%>") end if end if end sub
How do I go about calling a server-side vbscript within a client-side javascript function? What I have is a page heavy on the javascript that has a number of functions, one of which is to begin a visual countdown with an onclick and also open an asp page containing the server-side vbscript, which initiates a wake-on-lan call. I had no idea how to call the vbscript within the javascript function, so this is why I opted for the vbscript asp page "pop-up" via window.open. Code:
I check to see if a certain submission button is asking for removal. If the removal is true, I update a recordset's delete column. This has been tested and it works. However, now I'd like to prompt the user to make sure that he/she wants to remove the record. Here's the code: ....
I have a Client Side Java Script which is supposed to re-load the options on my serverside ASP form.
I have been trying to get the syntax right to assign the Select box on the ASP form to a variable in my JavaScript so I can update the options. Can anyone either tell me if this is not possible or what the syntax should be. Here is some information.
Form Name = AddProdForm Select Box name = subprodline JavaScript Variable = form1
Here is one of the many versions of this line I have tried.
I m writing one code to invoke remote desktop service for given IP address. For that i m using mstsc.exe file to invoke RDP.
I have a no of links to be displayed on the page and on click of link, RDP for that IP should be called. Currently i m using one button to invoke RDP. Code:
I am starting to build quite a few pages that will have tables of data from an SQL database.
I have been building the table rows on the server side in VBScript, but I have been thinking about having the VBScript code just build array variables in the <head> section (or as local variables), and then have JavaScript functions on the client side actually populate the tables when the page loads.
I do plan to do other things like being able to sort the tables in JavaScript code on the client, limit the tables height and be able to scroll the rows, and click on a row in the table, and have the values populate a form. I will also need to be able to export/download/? some tables into Excel.
I am doing login page . (login.asp)As usual it has username , password textbox and a login button .i need to do client side validation for mandatory fields and I need to do server side validations to check for the hardcoded username and password .if it matches i have to redirect to another page(content.asp)
im trying to use the following code to log whenever a user clicks through this particlular message box - however, this currently logs regardless of whether or not the message box was clicked - im assuming this is because the server-side code can't see the client side if condition. but how can i set the varMsgBox variable as a server-side variable? Code:
Is it possible to have server1 do a post to another page on server2? Server2 page does it's thing and submit the results back to server1. All of this is done without any reference in the url. I tried server.execute and transfer but it only works on the same server.
Basically, I have a component on server2 inside my firewall. Server1 is for public use. Users enter server1 and request what report they want. The report should pass to server2 to instantiate an object and create a report on the fly and store the pdf on server1. Users just have to view or download it from server1. All this is done without the user knowing they left server1.
This does work if I sent the server1 form action to server2. But then it's on url now.
I've got page contant stored in an SQL database, some of these pages contain ASP code. But when I read the data out of the database and display it on the page it is displaying it "as-is", that is to say it's not processing the ASP code.
Is there a way to force the server to process what comes out of the database as if it were reading from a standard ASP file?
On this page I've a button and an iframe. When I press that button, on click event has: document.getElementById("iframeID").src="mypage.asp?test=xpt" .
On mypage.asp I've
test=request.queryString("test"); response.write test response.end()
I'm developing an ASP app and trying to make it XHTML strict. This requires the removal of all "name" attributes from form elements. Can form elements be read server-side in ASP with only an "id" attribute?
im completely new to server-side scripting, but im an experienced actionscripter in flash, but i want to learn server-side scripting as well, but i dont know where to begin, any advice on where to start?
I have inherited a set of asp pages that I now need to augment. In order to minimize changes to production code, I would like to make a "call" to an asp page from a new asp page. Existing code is using many Request.Form variables, and I would very much prefer not to change this code.
The new page will retrieve data that I would like to fill into Request.Form variables that are used in the old code. So, is it possible for me to set Request.Form variables from within an asp page and then fire off a second page that uses those variables as well as any Request.Form variables that were passed to the original page. Additionaly, it should all occur on the server, and the client would only get a response after all on the server is complete.
i have an asp page and id like to run some DOS commands to copy files around on the server to a new directory on the server, and then run an exe afterwards. some sites tell me its as simple as Code:
I have page which uses two server includes. The first displays a random banner advert. The second displays a form containing dropdown boxes populated from a database.
The includes work seperately but when I include them together I am getting an error. The includes share the same database but use different tables.
Does anyone have any ideas as to what could be causing the conflict between the two includes?
I would like to print to a printer connected to my IIS server. I mean "I DONT WANT TO PRINT ON EVERY PRINTER IN THE WORLD". (many answers are thinking javascript printing to the user side) I just want to print on the server side only for me (in ASP of course) Another thing to consider is that i use a local printer that generate PDF (Acrobat Distiller driver + ghostscript + redmon port redirector ). My server side printer name is "PDFPrinter" and its port is "RPT1:" I tried with FileSystemObject.CreateTextFile("RPT1:",True) but don't work.I saw many examples with: .......set objPrinter =CreateTextFile("LPT1:",True) so .... I also tried with Wscript.NetWork class but no sucess
I would like to achieve the equivalent of META REFRESH but without the HTML meta refresh and without JavaScript. In other words, on server side I would like to wait some seconds, then redirect the page. Is there any way to do this?
<%@ Language=VBScript %> <% dim a a=10 'I want b=a at this place %> <Script language=VBScript> dim b </Script> How can a'value be given to b by program?
I want to do some time based house cleaning chores on a server based on server time/date. I know how to do it based on a call from the client using asp, but is it possible to have a program residing on the server that comes alive based on server time (not a client call) and does it's tasks such as delete an inactive page, or more importantly, send out a cdonts e-mail to a client list? I should also mention that this is a shared Windows 2003 Server (Interland Blue Halo).
The book I am referring to learn ASP states the following about server- side includes:
============================================== The code in a server-side include file is inserted into the pages that use it BEFORE the page's ASP code is evaluated. This means that you can put ASP code inside the include file, and it will be executed like it was part of the page that includes it. On the other hand, it means that you cannot use ASP to determine which page to include. ==============================================
But as opposed to the last line in the above para, the following code makes use of ASP to determine which page to include: Code:
I've been pulling my hair out with javScript to no avail, so I just want to do this through some simple server-side form validation of a radio button. All I want to do is check that the radio is selected.Code:
<P> 1. Which method of learning are you seeking? <BLOCKQUOTE> <input name="1" type="radio" value="Traditional"> Traditional<BR> <input name="1" type="radio" value="100% Online"> 100% Online<BR> <input name="1" type="radio" value="Hybrid (Mix of online and traditional classes)"> Hybrid (<em>Mix of online and traditional classes</em>)<BR> <input name="1" type="radio" value="Not Sure"> Not sure<BR></BLOCKQUOTE> </P>
I have a sub wich is filling a combobox by a query from the database and with response write. If there is only one result then that option is selected like: Code:
Sub FillComboOperation( ...) ..... If objResults.Count = 1 and UCase(Required) = "TRUE" Then Response.Write "<option value=""" & objResult.Fields(OptionValue).Value & """ selected>" & objResult.Fields(OptionText).Value & "</option>" & vbCrLf Else .........
I am troubleshooting a web site (not written by me) and may of the pages use server side includes. This one page includes a page that return includes the page the included it.
The site is quite slow and when I first found this I thought that this was the primary cause of it. Then I thought this page shouldn't work at all because it would create an infinite loop and should just recursively call the pages and eventually consumme all server resources and database connections.
However it doesn't appear to act that way and the page does display and there is no endless calls to the SQL statements in the two pages. Is there something that prevents recursive calling when using SSIs?
I am trying to print a file from an ASP script but haven't been able to find any way of making this happen.
I have an EPL (Eltron Thermal Printer language) file that is being generated from the script and I want a way to print this file. An EPL file is basically printed the same way as a postscript PRN would be printed. From a command prompt I can type:
copy label.EPL LPT1
and get the thing printed. I want to be able to do this same thing within ASP.
I have tried creating a batch file and calling that from ASP using the code at http://www.aspfaq.com/show.asp?id=2059 but that didn't seem to work. I did give permissions to CMD and Command but it's still not working. Is that because "copy" is part of Command? I also tried DynuExec but that didn't do the trick either.
Is there any way to copy a file to LPT1 from within an ASP script at all? How about JavaScript? I'm ok with any kind of creative solutions...it doesn't have to be elegant since this will only be used as an internal application.