I'm not very versed in JavaScript, and I'm having trouble getting the below code to work. It should test to make sure only a single selection was made, but it isn't working:
function validateForm(varFormAction){
var formValidated = true;
//check to make sure one is selected...
I have a asp page that is being saved to excel. I'm using the following code:
strDate = Now()
strDate = Replace(strDate, "/", "-")
strDate = Replace(strDate, ":", "")
Response.ContentType = "application/vnd.ms-excel"
Response.AddHeader "Content-Disposition", "attachment; filename=" &...
I get the following error when trying to install .NET 2003 on a new XP machine.
"Setup has detected that another program requires the computer to reboot. You must reboot the computer before installing Visual Studio .NET Prerequisites. Once the system reboots, you need to restart setup. Click OK...
I read in thread333-972473 by k8277 that "<TD style='vnd.ms-excel.numberformat:0.00'>" would format a cell for a number. Which is awesome, but I was wondering where you find information like this? I've search the web and I've seen several references to formatting asp/excel for numbers, however I...
Here is the code that calls the page to be exported:
function exportToExcel(classID){
var windowLeft = (window.screen.width / 2) - 300;
var windowTop = (window.screen.height / 2) - 450;
var PopUp = window.open("export_sim_dev.asp?ClassID=" + classID, "Export"...
I have a page that opens and writes out it's contents to excel, but after the that it remains open and is a blank popup.
How would I close that page after the excel export is completed?
Soul Pumpkin
Thanks SHelton. This helps. It is still overshooting my date by a few days, but I'm rolling back to the previous Sunday and it is working fine with my data.
Thank you for your time and input, you have helped me out alot.
Soul Pumpkin
SHelton thanks. That's closer, but I'm still off a little. Could it be the way I'm using the AddWeeks func?
CultureInfo.DateTimeFormat.CalendarWeekRule = CultureInfo.DateTimeFormat.CalendarWeekRule.FirstFourDayWeek
CultureInfo.DateTimeFormat.FirstDayOfWeek = DayOfWeek.Sunday...
I've tried it, and it didn't work. I'm still getting the same date as before, starting on a Thursday, and it's for the week after when it should be.
Soul Pumpkin
I've seen some similar question, but trying to get the week number from a date. I'm trying to get a date from a week number though, and I'm having a little trouble. The data coming in looks like this:
12-04 (this would be the 12th week of 2004)
13-04 (this would be the 13th week of 2004)
14-04...
SQLSister, I'm sorry - had a burp in the system that didn't let me see the results. It is fixed, I ran it again and saw the problem.
Dennis - you the man. The problem was an extra space in the code that shouldn't have been there. I'm not used to debugging stored procedures, thanks for your...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.