Hiding The File Extension
I have a website in ASP. Is it possible to somehow hide the .asp extenstion, so that other don't know what backend language is being used?
View RepliesI have a website in ASP. Is it possible to somehow hide the .asp extenstion, so that other don't know what backend language is being used?
View RepliesI have an upload feature on my site... it works fine... but I want to validate the uploading file extension for .doc or .html before being uploaded to the server(client-side).
I have the validation to check text fields are not blank.... The first validation is for checking the text field... the second "blob" is the file upload field.... This is my code in Vbscript.. Code:
How can I validate a file extension before it is being uploaded to the server?Let's say I want to check the last 3 or 4 chars of the file, if it is JPG. then upload it. If not, alert(Only JPG file allowed).I'm using this allow user to upload.
<form......>
<INPUT TYPE=FILE SIZE=102 NAME="attach1">
.....
</form>
I am trying to upload a file to the server but first I want to rename it to the users session id. Ok everything is working except when I rename it, it drops the file extension. What is the best way to get the previous file extension and add it to the new file name? Here is an example of what it is doing on my end.
filename: test.xls
rename: 123456678
what I need: 123456678.xls
If you'll notice, there's a comment in this snippet that drops the extension. How can this be modified so that the extension IS shown?
Set myFileSys = Server.CreateObject("Scripting.FileSystemObject")
Set Folder = myFileSys.GetFolder(Server.MapPath("/meetings"))
for each file in Folder.Files
If Not file.name = "index.asp" Then
FileName = Left(file.name, (Len(file.name) - 4)) 'drop the extension
FileSize = cint(file.size / 1024) 'convert into kilobytes and drop the decimal
Response.Write("<li><a href='/meetings/" & file.name & "'>" & FileName & "</a> - " & FileSize & " K<br>" & chr(13))
End If
next
Set myFileSys = nothing
Sometimes I have seen the URL doesn't have the file extension, like the following:
http://server/signup?id=1001
rather than
http://server/signup.asp?id=1001
anyone knows how to do that?
where can i find the ASP file upload dreamweaver extension for free? if not, would someone suggest a way to upload file into database using dreamweaver?
View Replies View RelatedHow verify type or extension of file using ASPUPLOAD? I check documentation, but I didn't find anything else yet.
View Replies View RelatedCan someone modify this so that if index.asp is present, it will not be shown? I've reached an impasse ....
View Replies View RelatedIf I have a search submit button, when I click submit button, it will submit
the form to search.asp for form processing.
This will be the URL: http://www.mycompany.com/search.asp?q=programming
But when I do search in google, search doesn't have any file extension. How
do they do that? I saw some site are like that too.
http://www.google.com/search?hl=en&...G=Google+Search
..asmx not getting parsed.whten I call a page with an .asmx extensionon my machine
all I get is the code, it does not get parsed.how can I fix this, can I manually add some ISAPI application to IIS to make it work.
I have a site that is HTML and I am considering moving it to ASP. However this site has a great deal of investement already on SEO and changing the extension on the files would take a hit to our rankings. I've heard that there is a way of saving the ASP files as HTML extension. Does anyone know how to do this?
View Replies View RelatedI got background in my left and right frames (tables) and on the background image there's a custom border on each side. I want the background to extend on a different resolution rather than repeat. Anyone know how I can pull this off?
View Replies View RelatedWhen I create an asp file and click on it on my local drive, photoshop opens it, because the asp extension is already defined to photoshop.
I know you can try to change that extension association in the windows folders options, but even though photoshop owns the extension, it does not appear in the list of extensions. Is there some way to get photoshop to let go of the extension?
I used to have a dreamweaver extension, which inserted the asp script for recordset paging, you know the one where at the bottom of the page there is a line of links allowing you to search through your recordsets without having to load them all in. Anyway I formatted my hard drive and thought i had saved it but i turns out i didn't and cannot find where i got it from.
If anyone has a dreamweaver mx extention for this can you please upload it as an attached file so i can download it.
i want to hide my ASP page extention in IE AND NE address bar how can i do this pls tell me about that.
View Replies View RelatedIf I want to know if a file exist. But I do not know it's extension, how shall I check the extension and if it exists? (I know the name which to check)
View Replies View Relatedi want to hide my ASP page extention in IE AND NE address bar how can i do this pls tell me about that.
View Replies View RelatedIs there a string function to strip the file extension from a variable in ASP? If not any suggestions as to the best way to approach this?
View Replies View RelatedBasically I want to parse an XML feed - the problem being the XML data itself has a .asp extension and a few query strings.
I can currently parse the same xml data if I save it with a .xml extension, just not with the .asp extension and query strings. Code:
I'm having problems with one of the websites on my MS2000 server. I can't publish a fp2000 web to it properly because it thinks fp server extensions are not installed.
Whenever I use the MMC snap in to check the server extensions for this web, it tells me that my admin tool is not compatible with installed server extensions. Not sure what to do with this.
I'm searching of a way to send an email, and i don't want the user to know
where he send the email.
Let say i want to send a message to Bob001.
I will type Bob001 in the SendTo field.
When i type the Send Email button, i would like the web page to do this:
Get the username, Bob001.
Find his email in my database
Get the message in Message.
Create the email.
Send the email.
I don't want the user to be able to read the user email.
Every example show something like a "<a href" method. Which is not what i
need.
Is there a way to do so?
1- I don't own the web server
2- Windows 2000
3- Asp install (Asp.net too)
4- Php is not available (so no mail object)
I would like to know if this is possible. I'm using ASP with JSCRIPT.
I have a dropdown box that when the use selects a particular value, I would
like the textbox to become visible.
also if they dont choose it, I would like the textbox to be hidden.
I have this web input form with many other fields. This dropdown box is in
the middle of these fields.I dont see any property to set. I see the disable property but I want it
hidden.
I have a page and dependant on what is passed via the url ie page.asp?area=xyz
If the QueryString("area")=xzy then part of the page is hidden. How would I go about this?
We have a customer that wants us to put our ASP application on their server, so they can have direct access to the database. However, we don't want to leave our code wide open for them to copy and/or modify.
I have heard that there are ways to protect our ASP code, but I don't know what they are.
Could someone please list several options for me, and preferably places where I can do a little more research?
I have http://localhost/myweb/login.asp and i clicked some link in this page navigates to http://localhost/myweb/welcome.asp?userid=2 but in the browser address bar, I wanted to display only http://localhost/myweb/ and I wanted to hide the asp page names & query strings in the address bar.
View Replies View RelatedI have a table which displays data and now I would like to add some of that data together and just display it when the user clicks a button. I was just wondering if there is a way to do this on the same page such as hiding it without having to create another asp page? I was also wondering for output which is it best to use?
<%= output %>
or
<% response.write(output)%>
I want to hide all my querystrings variables and filename when they executed how can i do this.
View Replies View RelatedI want to hide all my querystrings variables and filename when they executed how can i do this?
View Replies View Relatedcan u use the If Not IsNull statement to do this? and if so how please? I have various text boxes, caught in a repeat statement, when the other feilds run out of info i dont want the text box to be displayed. can anyone see what i mean? Basically when the fields before the text box run out i want the text box not to display.
View Replies View RelatedI want to hide the form control on clicking the submit button on the same form.Tell me the solution.And also facing the problem while using the date time pickers in frontpage.
Actually by using asp value of date selected is being fethched in variable but on clicking the submit button again the datepicker shows the date before selecting the date.
i have a problem with one of the ASP pages in the website i am doing. I can see the code literally on the page itself on IE browser( highlighted below in red). this happens when i highlighted the page I and can see the code (SQL statement appears).
As this is a potential problem, I want to hide it so that it wont be hacked by irresponsible hackers who may change it. Code:
Anyone know a useful way of hiding image paths so images on my site cant be directly linked to?
I've seen sites that use <img src="image.asp?/moo/fred/image01.jpg"> (where the path starts from www.domain.com/secretfolder/moo/fred/image01.jpg) but dont know how to set this up.
BTW am on a shared host so dont have the use of base level administration if it makes any difference?