Hidding Page Extension
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 Repliesi want to hide my ASP page extention in IE AND NE address bar how can i do this pls tell me about that.
View Repliesi 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 RelatedI am trying to display a chart in my asp page. The problem is
that I need to connect to a Database and if you see the HTML code you
can see the connection String (User and Password).
If I connect directly to the database from the chart control, I
can see the connection String in the html-code.
If I use a data source control, I can also see the connection
String.
¿ Is there a way to hide the connection String from the HTML code?
If 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.
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
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.
If 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 RelatedIf 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
Is 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 RelatedI 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 Replies View RelatedSometimes 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 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.
How verify type or extension of file using ASPUPLOAD? I check documentation, but I didn't find anything else yet.
View Replies View RelatedI 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:
I created a web page from Excel2000, using "Save as web page..."...Publish
function. then, I moved htm file to my IIS web server. Then I added a form control, and submit button.
How can get the data on the excel file using ASP from server side?
For example, the value of Cell(1,2), Cell(2,3)....
What I want to be able to do is create a user control that will display an
entire page page within it. Does anyone know how to do this or better yet
have any same code?
I like to know how to write this specifc function on ASP where the user eg: display a set of records on the webpage. Example the data are ID, Name and address.
Lets say i display the data on the webpage and i set the Name as the <a href>. So when i click on the name, it will move to another page with the id of the specific name. Code:
I have an ActiveX control in my ASP page that has not been signed yet, so currently just for testing I set the Security for Intranet to "Low". When I run the ASP page on my machine (the IIS is in my machine), I have no problem, except the page prompted me with "An ActiveX control on this page might be unsafe to interact with other parts of the page. Do you want to allow this interaction?"
But, when I run the ASP page on another machine (even though the other machine is also a development machine that already has the ActiveX control and I set the Security for Intranet to "Low"), it did not prompt me the above message, and I got an error when accesing any method of the AX control (e.g Object doesn't support this property or method 'myAXControl.method').
Is this because I have to create a CAB file and mark the AX control as safe for scripting ?To create a CAB file for this AX control, do I need to create my own VB AX
Control project that contains this control and then create a cab file for this VB project ?
This is a standard ASP application that has several pages at the root
withthe global.asa. I set a session variable session("accountid") =
"123456" within an asp page and then response.redirect to the next page and
immediately response.write session("accountid") and I get back nothing.
But if I set a session variable session("accountid") = "123456" within an
asp page and response.redirect to a page in a sub directory and immediately
response.write session("accountid") I get back 123456 on the screen.
I am having a problem with a site that I am developing - my aim is for it to validate as XHTML Strict however, I am running into a couple of problems validating it; in my Response.Write ASP script, I am not including " 's to define page element tags as they keep throwing up errors in the page. Code:
View Replies View RelatedI've a strange problem with Windows Vista, running an ASP page on local
machine (http://localhost/test.asp), the page does not give me any error but
the asp code is not executed (simple code : <% response.write("hello") %),
it show me a blank page, I think I've put all the setttings correctly, but
maybe I must do something obvious to fix that.
I encounter a page reload situation in ASP. It is I need a way to differentiate whether the current page - "Application_Result.asp" got reloaded itself when user click on the browserRefresh button or is requested by the previous page "Application_Form.asp".
I tried using
<%if Request.ServerVariables("REQUEST_METHOD") = "POST" then%>
<!--it is requested from "Application_Form.asp, do something-->
<%else%>
<!--Application_Result.asp refreshed itself(such as user clicks on the
browser Refresh button, do something else-->
<%end if%>
However, in both cases, the IF statement above all evaluated as true. how to differentiate this two different behavior (Page Refresh versus Page requested by another Page) ?
I have page for user to update his/her details. What i want is after idle for more than 20 mins, the page will redirect to login page automatically. So that the user knows that his/her session already expired and need to login again.
But it doesn't working. This is because if he/she update the details (after idle more than 20 mins), and click the Submit button, it will go to login page and all the data will be lost. Code:
I am working with a developer, on two portions to a site, he is working in PHP and my work is done in ASP.
Is it possible for my pages to request data from a cookie that was written by his pages that are PHP but residing on the same server? Just want to make sure before I spend too much time planning out the development on my end.
I have an application which allow users to search our database. Quite a lot
of search fields pull data from other tables. I don't want to populate the
dropdowns (total 14 of them) from the database everytime as it slow the page
load.
Instead I would like to have a link next to the text field which a
user and click and the choices can be displayed and whatever the user click
in the pop up I want to transfer it to the text box and close the popup.
For example there is a Textbox called country. The user can either type in
the country name or click on the link which will pull all the countries from
table in the database and which ever country user selects, the textbox is
popluated with the country name and the pop up closes automatically. Code:
I'm trying to write an asp page line by line, as one would create a
text file, only my file will end in .asp.
One line simply writes a close ASP code tag, or
FILECONTENTS=FILECONTENTS & "%>"
When this line processed, an error occurs saying that the string was
never terminated because the asp page attempting to write this line of
code to a NEW asp page reads that close ASP tag (%>), as an actual
close asp tag for itself, instead of a STRING value.
How do I write this %> symbol to a new asp file, while still
maintaining its purpose to close a group of asp code in the newly
created page?