How can I hide VB Script code in the ASP Page? Even though the display.asp includes the script_functions.asp, when I click on View Source from IE, I can still the VB Script code? What can I do to hide the code from the people who use display.asp?
How can i make sure my ASP code is hidden on my web server when soebody accesses the ASP page? I want to do all I can to protect against this. The other day I was at a web page and instead of seeing the results of the page, the entire page was displayed to me as text and you couldd see all the asp code.
Is this posible? You wrap a javascript function around all of your ASP code, link it externaly, and simply call your function later. I wonder if this could be done?if yes, how about the performance. Does it stay the same?
Is it possible to hide code from search engines. We have a dynamical asp-home page that takes two text files per page. One text file contains meta information. I want to stop all search engines to include this text file in the search result.
I have created a drop down box that picks items (active product lines) from my dbase (sql), once the user selects an item from the drop down, I would like asp to relate that choice to the next table and pop up another drop down box (active products from the above product line chosen).
I'm assuming that there needs to be some function to hide the second drop down box until the first choice is made (I could be wrong here??) so I don't know what the code would be for the page to stop showing anymore information until a choice is made. I usually show code here but this is really a question about code that I don't know.
I spend more time with other technologies. Could someone please help me with how to hide sections of content on an ASP page? Please keep it simple. I prefer code examples or at the very least point me to a place on the web that can.
I'm working on an asp page where I need to be able to click on a link and then show or hide a section of the page. Kind of like folding markers. I can do it by simply refreshing the page but I'd prefer for it to just open and close. Is there a way to do this?
I am debugging a piece of VBScript code.The code determines whether a given file exists or not by using a physical path and file name ("C:TempFile1.dat").This code is using the fso FileExists() method.
When I try to test a file name using UNC (Srv1C$TempFile1.dat), the fso FileExists() method always returns false.I wrote a quick VB6 app that uses the fso.FileExists() method and this app could successfully find the UNC file.
So,I think the reason for my VBScript failing is a permisssions error.Does anyone know where I can find this VBScript permission for using UNCs in the fso.FileExists() method?
this code checks if the file is present in the server quotes or not ,it works with in the server but not in the client(it cannot fine the sever. but if i remove the if statement then if the file is present it connects from the client.
I am trying to execute some script on my server that is currently run on an ASP page.
However, I am finding that it can often take up to 5-10 minutes to run and the user is not needed for this execution anyway. What I am attempting to do is write the script into a .vbs file on the server and execute the script when necessary.
I would like this script to run without the user knowing and therefore I do not want the asp page to wait for a return from the script. I am trying to use:
Set WshShell = Server.CreateObject("WScript.Shell") ReturnVariable = WshShell.Run("c:connorVBScript1.vbs", 0, FALSE)
The FALSE tells the system to run the code and not wait for a return. The webpage seems to run and returns to the user as it should but the script is not executed.
I want to pull data from a number of tables, Categories, SubCategroies and then place into JavaScript drop downs and have the options in the second drop down change upon the selection from the 1st drop down. Is this possible.? How is it done..? Arrays..?
So I thought that the code up in the header doesn't "see" the textbox, because as I dimly understand it, the textbox is client-side and the script is server-side. So then I thought I should put the same line down in the html where the form is defined (enclosed in <% tags). But that triggers an error because the code down there doesn't seem to know what response.form is anymore! I tried using a variable as a go-between, but it didn't change the results.
So how in the world do I get my incoming parameter (whether form or query string) to go and live in a textbox in the target page? I need it there (don't I?) so that I can later pass it along to page three (among other reasons).
In short, I can get strings passed from page 1 to page 2, but then page 2 doesn't seem able to put them into controls or pass them along to page 3.
I have scoured google and forums and seen some responses that involve about 30 lines of code (which I don't understand). Surely it can't be that complicated to pass a string from page 1 to page 2 and then have it available to pass along to page 3.
i'm wondering if it's possible to modify the design of an sql database from within a script. I don't have MS SQL installed on my machine but i need to add a few fields to some of the tables.
I know it's possible to create and drop tables so that is one option. ie: drop the existing one and create it again with the extra fields. the problem with that way is I'll lose all the data. so long story short. how do i modify the design of a table from within a vbscript?
I have a Function in VB Script that generates a signature. I assign the result to a variable and then need to do a hidden post to an ASP Page for further processing.
Basic functionality is I have a button upon pressing it -- It does the hidden post.
Code looks like this. Please assist with passing this stringToSign variable to the .asp page via hidden post. Code:
We have a report page which deals with more than 3000 records and 80 columns. The records are displayed on a third party control VS flexgrid versioned 7.0.
Currently we are having a client side array populated from the server side using response.write . Is there any other means to optimize the performance on this page?
One of the fields ("Description") in my MSAccess database table contain text formated by HTML tags (<b>, <i>, etc) I now need to display it on asp page, but not as formated text, but as it is stored in my database:
Not like Description of this product is good.
but as <b>Description</b> of this product <i>is</i> good.
I just inhereted a website. I made a change to a simple SQL string in a ..aspx.vb page. If I don't have Visual Studio, is there a way to "publish" the pages and show my changes?
I'd like to write a bunch of queries from a SQL Server 2000 database in my ASP page and have a way of copying this information into an excel workbook in specific cells. Writing the queries isn't the problem, I just need to place it in a file in different specific cells.
Is there a way to do this? Do you have to use VBA code or something? the *.iqy technique isn't going to work, cause I have to place the data in a sepcific excel file, in sepcific cells. I am not sure how to do this or if it's possibly, if anyone has any ideas on where to start or find some sample code I'd REALLY appreciate it.
I am trying to call a field value from my database - which gets open in an included file (all work on database must be done in that included file), if i use response.write(rst("pagename") it would print fine in the page when I call the sub i.e <% call pageNameFind() %>
But i want to get the field value to appear like this <% PageTitle = pagename %> where pagename comes from the included sub pageNameFind pagename = rst("pagename")
It doesn't pick this up however - how would I do this? This value will then be sent on to another included file at later stage. and I must have the <% PageTitle = myvalue %>.
The most pressing issue at the moment is that my browser does not display the page; it displays the ASP code. I built the page for a questionnaire that was going to be placed on my schools server so that participants could access it online, but I submitted my request too late in the semester.
I decided that the best course of action was to collect these data offline using the computers that I had bought for my lab. The laptops are running Windows 2000 Professional and are using IIS. After configuring ISS and Dreamweaver MX, I built the questionnaire. Then, I uploaded the questionnaire to the “server”—the wwwroot folder.
Now, the index page (the instructions to the questionnaire) opens flawlessly, but when the link to the questionnaire is pressed to open the ASP page, the browser displays the code and not the questionnaire itself.
When I explained this problem to people, they tell me that my server does not support server site scripting, but I’m using a Windows machine, using Windows server software, and Windows database software (Access 2000). Moreover, when I preview the page through Dreamweaver MX, Internet Explorer displays it without a problem. Code:
The employees who use it are not allowed access to the server it's requried to sit on which means that my username and password have to be included in the logon.asp page which I HATE! So when this fails, it publishes my usernanme and password on the screen for the user to see...brilliant!
Since nobody is willing to create a dummy account is there a way that I can keep that line of code from displaying if in error? I've added the code to this thread...
inserting dynamic page code in .html page? i.e. i would like to insert a code which will display links. where my homepage link extension is .html. if it is .asp it would have been very easy. and also i would have worked fine. but now the problem is the homepage index file extension is .html.
so if i insert the code it is not displaying the links. i tried inserting the code in a separate file and saved as file.inc and gave the link from home page <!--#include file="file.inc"--> but still the link is not showing and not working.
When I send a database to server it changes all of my special charters to unicod charterset, I suposed that server is on american charter set, I would like it to change to central europien windows - 1250 code page, is it posible and how? it is very importand to me.
I want to hide a submit button until all parts of the form are completed, the form contains 7 rows of radio boxes which are in groups(5 in each grp) when all are selected i want the button to appear but the page not needing to be refreshed, any ideas?
I migrated a mysql DB into a MSSQL DB. In this DB all chars like "blank" or @ are encoded in...whats it called in english? :) you know, when a blank is "+" or @ is "%40"... :) How do I resolve those "%20"s back into a readable character or a blank with asp? Plus: How do I convert blanks into + again to write them back into the DB.
I have an Invoice.asp page which displays the number of products ordered by size. I would like to make the 0 values invisisble on the page. Can any1 help? Below is some code that applys what i would like to do this using text fields.
<% If O("S4") = 0 Then txtValue4 = "" Else txtValue4 = O("S4") End If %>
"O("S4")" is the recordset name and "txtValue4" is the initial value of the textfield.
Does anyone know how to alter this piece of code so that it applys to only the recordset "O("S4")" and not the textfield, alowing me to get rid of the textfields?