Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASPX.vb file

Status
Not open for further replies.

1970bbb

Programmer
Jan 16, 2009
1
US

Thank you for the forum,
I am a VFP programmer and have a secure file trans. website.
I have a aspx.vb file that needs a simple change to allow the new excel extention through:
Ex:
Case ".CSV", ".XLS"
' If fc(0).ContentType = "application/vnd.ms-excel" Then
' ' OK
' Else
' GetFiles(strSavePath)
' ctlMsg1.InnerText = strNow & "Invalid file type."
' Return
' End If
Case ".DOC"
' If fc(0).ContentType = "application/msword" Then
' ' OK
' Else
The new code needs to look like this:
Case ".CSV", ".XLS", ".XLSX"
' If fc(0).ContentType = "application/vnd.ms-excel" Then
' ' OK
' Else
' GetFiles(strSavePath)
' ctlMsg1.InnerText = strNow & "Invalid file type."
' Return
' End If
Case ".DOC"
' If fc(0).ContentType = "application/msword" Then
' ' OK
' Else
I have recompiled useing my bat file in test. I have a new .dll file to add to my bin folder. My question is can I retain the same .dll file name and drag and drop into my bin folder or is there more to consider.
Thank you
Mike
 
Hi,
AFAIK, you can just replace the old with the new -

[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top