asp

how to get the day from a particular date using javascript.

hi there, i am new to javascript. my requirement is .. i want to popup a message on particular days(like sunday,monday..) all through when a date is selected. i tried getday() function but it didnot work. please suggest me. i am tired of searching google ...

Excel import returns blank cells

I have had this problem forever and never managed to figure it out. I am importing an excel (.xls) file into an asp recordset. Most of the time this works great. I have column with the following values 4 4 5,6 3 Asp reads those values in except for the 5,6. I have tried formatting the cells and this makes no difference. It appears...

ASP redirect that passes Basic Authorization in header

How can I cause a redirect in ASP (pre .NET) to carry the Basic Authorization header as the ASP request. We tried using the following code . response.setHeader( "Authorization", "Basic " + strAuth ); response.sendRedirect( src ); response.flushBuffer(); The header is set on the response of the .asp, but not passed on to the request t...

Creating a header row with buttons in a Custom GridView

After posting this: http://stackoverflow.com/questions/509029/custom-header-in-gridview ...I have a related problem. I have added the table row during OnDataBound, and it shows up, the links are clickable. There are two problems with adding it here: first, if a postback occurs that doesn't DataBind, the row disappears; second, no events...

View Parametrized Query In VBScript ADODB.Command

How can I view the SQL code of my query after it has been parameterized by Parameters.Append ...

ASP Form problem

Hi I have an asp form that has a checkbox and dropdown menu. If the checkbox in not selected then I need to make sure the dropdown is either not selected or disabled. ...

How do I change a windows password through asp?

I have a web application that uses Integrated Windows Authentication to validate users. Most of them are remote and don't have access to a workstation to update their AD password. Rather than manually managing passwords my self, I'd like to put together a script so they can change them on their own. How would I update their windows pas...

dim ASP Array

I want to define an array. My question is Dim x(999) or Dim x(9999) will cost the same or Dim x(9999) will waste more resource? Thank you very much!! ...

ASP.NET in IIS7

Is there a way to configure ASP.NET in IIS7? I know this must be a stupid question, but in IIS7 I see an icon for ASP. Is this configuration for Classic ASP? Thx, Lieven Cardoen ...

How to create and run .asp extension file in visual web developer 2008

I want to know if it is possible to create and run .asp file in Microsoft visual web developer 2008? The problem is that there is no inbuilt .asp extension file given in visual web developer 2008. If anyone knows how to create and run this, please help me out. Thanks ...

how to access sql server from asp page

We have a legacy, homegrown timesheet system (ASP, microsoft sql server 2005) that I need to clone to another computer for backup purposes. (I know very little about this stuff, so pleas be gentle) I've got most of the pieces in place (IIS, Sql Server, table import / creation). But, the ASP page to access the timesheet pages is choking ...

global.asa where does it belong?

I'm moving some ASP code from one server to another. The location names are slightly different and I suspect that now the "global.asa" isn't getting called properly. The location is in c:\Inetpub\wwwroot\myApp. ...

Classic ASP, ASP.NET, IFrames and response.redirect issue....

A client has an asp page with an iframe. The Iframe loads an asp.net page inside the asp classic page. The ASP.NET page is responsible for connecting to a webservice, displaying some data, and then when the user clicks a button it does a response.redirect another classic asp page. Since the asp.net page is in an iframe, the asp page l...

Byte array in Classic ASP

How do I write the following code in classic ASP? I am using this code in an include file. byte[] bytes = new byte[stream.Length] Also it would be great if anyone can say how to create object for StreamWriter in classic ASP. Set sw = Server.CreateObject("System.IO.StreamWriter(stream)") I am not sure about the code inside quotes...

IE7: tricks/plugins for seeing all the html on a page?

I'm working on an app that's sort of a bastardization of old and new tech (ASP/ASP.NET). It's all running in IE7. I'd like to be able to right click, View Source and actually see all the html that I'm seeing with my eyes. For example, I have a bit of text in the middle of the page that's in a table. I right click directly on that bit of ...

Export to Excel using ASP.

Hi, At the time of exporting to excel using ASP. After converting a column in text format single quote is visible in the excel file. how to hide this automatically ? ...

How can I run sqlcmd.exe from an ASP page? (Free hat)

As part of our database revision control (and auto-installation) procedures we need to be able run sqlcmd.exe on various .sql files from within an ASP page. The code I'm using to do this is: Dim cmd : cmd = "sqlcmd -S " & DATABASE_SERVER & " -U " & DATABASE_UID & " -P " & DATABASE_PWD & " -d " & DATABASE_NAME & " -i """ & scriptPath & "...

Database Disk Queue too high, what can be done?

I have a problem with a large database I am working with which resides on a single drive - this Database contains around a dozen tables with the two main ones are around 1GB each which cannot be made smaller. My problem is the disk queue for the database drive is around 96% to 100% even when the website that uses the DB is idle. What op...

Can use ASP to call PHP soap?

My customer has a PHP web service, that they want me to use. It's PHP-based, while my web is ASP-based. The ASP code looks like this: Dim soapclient WSDL_URL = "http://xxx.xxxx.xx/index.php?Action=service" set soapclient = Server.CreateObject("MSSOAP.SoapClient30") soapclient.ClientProperty("ServerHTTPRequest") = True on error res...

Performance tips for classic asp?

Hi, Today I was tasked to improve the performance of a classic ASP page. Rewriting the code in ASP.NET is at this moment not an option so I took up the challenge to squeeze every ounce of performance I can get out of the page. The page consists of the basic "SELECT bla bla FROM bla" into a couple of recordssets. A while loop iterates t...