How To Hide Parts Of An ASP Page?

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.

View Replies


ADVERTISEMENT

An ActiveX Control On This Page Might Be Unsafe To Interact With Other Parts Of The Page ...

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 ?

View Replies View Related

Hide Part Of Page

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.

View Replies View Related

How To Hide VBScript Code In ASP Page?

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?

View Replies View Related

Show/Hide Part Of A Page

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?

View Replies View Related

Referring Other Parts Of ASP

<%
MyAspString = "HELLO"
%>
<script language=vbscript>
sub RUNCODE()
MyVBScriptString = <%MyAspString%>
msgbox MyVBScriptString
end sub
</script>

Is this possible and if so how can I amend the following line to get it working:

MyVBScriptString = <%MyAspString%>

View Replies View Related

Extracting Parts

i want to extract the number 38 from the URL below, using ASP what is the solution?
then store it as a variable.

http://pcol-webtest/default.asp?nc=4098&id=38

View Replies View Related

How Can I Split A Value Of Variable Into Several Parts?

I have a parameter, directory, which has value of "dir1/dir2/dir3". How can I extract the values of dir1, dir2, and dir3 from the directory="dir1/dir2/dir3". ?

View Replies View Related

Removing Parts Of A Sentence

How do I do the following action in asp:

Suppose I have a string of word which I have pulled from my MSSQL database - "Super Fine Quality"

But I don't want to show the entire sentence "Super Fine Quality" in my page. I just want to show the word "Super" only, ie I want to display only the first word of the sentence regardless of it's length.

Without manipulating or doing anything in the MSSQL database, is it possible to remove the words "Fine Quality" and show the first word of the sentence "Super" only with the help of asp code? If yes please let me know how.

View Replies View Related

Splitting A Variable Into Parts

I have a variable named DressCode. The content of this variable is something like N040602
I want to split this variable into four parts:

DressCodea would be the N part
DressCodeb would be the 04 part
DressCodec would be the 06 part
DressCoded would be the 02 part

How do you do this is ASP, so it'll split the variable, no matter what the content is, as long as it is that format (ie 1 letter then 6 numbers).

View Replies View Related

Parts Drop Down Search

I'm trying to create a part search for mufflers. I would like to do drop downs ex.

Year
- Make
- Model
- Engine

the end result would bring up the part they are looking for and it would link to that part. Kind of similar to a appsearch.aspx. I'm unsure would would work best with this, so if someone could point me in the right direction, that would be awesome.

View Replies View Related

Hide Until

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?

View Replies View Related

How To Hide

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.

View Replies View Related

Hide The Value

i m passing value through href link.
like this
Code:

<% while not rs.eof
%>
<tr><td style="font-weight:bold">::</td><td ><a href="<%=rs("newsurl")%>&id=<%=rs("newsurl")%>" style="font-family:sans-serif;font-size:12px"><%=rs("headline")%></a></td></tr>
<%
rs.movenext()
wend
%>

and this value appers in address bar.any way to hide this whole value in address bar

View Replies View Related

Hide The Values

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
%>

<input name="textfield4" type="text" value="<%=txtValue4%>" size="1" maxlength="3">

"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?

View Replies View Related

Best Method To Hide

What's the best method to hide, or not show a certain record when doing a pull from a database, as in I am pulling a list with a dozen category's and I don't what to show one of them.

View Replies View Related

Hide Code

Is possible to build a old ASP application in order to give to final user an application that hide its code?

View Replies View Related

Hide Drop-down Box

I need to hide a drop down box. For a car search page, if the user selects "NEW" the mileage drop-down dissappears, but if the user selects "USED" than the mileage drop down appears. I need this on the server side, so I would be needing to use VBScript.

View Replies View Related

Hide Hyperlinks

Can anyone provide the code to hide hyperlinks (change to background colour?) if the files they link to do not exist?

View Replies View Related

Hide ASP Or Php Code

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.

View Replies View Related

Hide Your 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?

View Replies View Related

Hide The URL In Address Bar

I want to hide the web URL that gets displayed in the address bar every time we visit the web site, say first time we login and we get the url www.something.com. and next time when we navigate through the web site we also get the web page location and name on the address bar, is there a way to stop this and displaying only the starting web address www.something.com where ever we visit the web page form the current site, and with out using HTML FRAMES is there any login in this so that i can use it with any script language like javascript and vbscript.

View Replies View Related

Hide An Inital Value

im having a problem with one of my insert pages. On this page i have a form with a number of text fields, all these text fields must have an initial value of 0. Is there anyway of displaying these fields to show no value at all when in fact they have an initial value of 0.

View Replies View Related

Hide Area

I am trying to hide an area if the value in a record is true, can anyone tell me why what I have below won't work?

<% if (String(rsAccount.Fields.Item("Suspend").Value) = false) { %>
<form name="SuspendArea" method="POST" action="<%=MM_editAction%>">
<input name="Suspend" type="hidden" id="Suspend" value="True">
<input type="submit" name="Submit2" value="Suspend">
<input type="hidden" name="MM_update" value="SuspendArea">
<input type="hidden" name="MM_recordId" value="<%= rsAccount.Fields.Item("ActivationCode").Value %>">
</form>
<% } // end %> </td>

View Replies View Related

I Need To Hide The URL Address.

Its very common to pass information from one page to another using asp through the address bar. It is also possible to hack the code if one notices this. I.e the price of the item.

I was hopping someone new a way which would either mask the address bar so it never changed from example it stayed static irrespective of the page the view is on. Or they must be another way.

View Replies View Related

Hide A Button

I have a query that checks one field against another and the recordset is not displayed if they are equal. What I need is to hide a 'proceed' button if the recordset is empty.

View Replies View Related

How To Hide Duplicate Fields Value In Asp From

i want to hide duplicate values of a column in a asp form, lets suppose i have a field schoolname, and studentname, so it is possible a school have so many studnets, so i dont want to show school name infront of each student name, how can i hide it,

View Replies View Related

Hide Missing Images?

Is there a way I can test if an image file exists before displaying it?

I have a database that has an image field in it that users enter a filename into. Is there a way for me to check using an "if" statement that the file is actually on the drive before displaying it? ie:

<%okimage=(rsFile.Fields.Item("image").Value)
If okimage='actually on the drive' then%>
<img src='(rsFile.Fields.Item("image").Value)'>
<%else%>
<img src='noimage.jpg'>
<%end if%>

View Replies View Related

How To Hide Password In Querystring?

when i send my login details (password and user name) in a querystring, i notice that the username and password are displayed inthe querystring in the browser URL bar. I feel this is very insecure, is there anyway to hide the password part?

View Replies View Related

Show Or Hide Record

Is there a way to tell my data table that lists my records
that if a record's entry contains "Is Down" to show it on the page but if it contains "Is Up" to hide it?

View Replies View Related

How To Hide Future's Records (id=?)

I have a site, constructed with dreamweaver, that contains a master-detail page set.
I have make some changes to the code (although I 'm not a programmer, I am beginner), so that I can insert records that will

be displayed when the date of the record is equal to the current date(server's date).

The detail page is something like http://localhost/1.asp?id=495

My problem: I discovered that anyone that hits to the browser any other id number by hand(example

http://localhost/1.asp?id=496), can view the records I wanted to be displayed when the appropriate date come!

So, I have not any way to protect my records from these people?

What can I do, so that nobody can see the future's records above the current date?

The master page already has a 'where' statement, and displays only the records with date=< current date.

My problem is at the detail page.

Suppose someone hit in the browser, just because he wants to cheat me, write another id in address bar, replacing the one the browser currently displays.

Thenhe has discover a brand new page which should be online in the future.

That's my problem.

It would be nice if I could hide the real address from browser address bar.

Or if I could somehow change it in order not to reveal the real address and this could make it more difficult for someone to reveal future's pages.

I know the use of frames hides such information(exact address) but as far as I know this solution has many disadvantages.

View Replies View Related

Show/hide Table Using Asp

Is there a way to hide a table using asp?

I would like to 6 radio buttons and if one is selected then a table with further contant/ checkboxes relates to that particular checkbox become visible.

ie. radio button will display table 1 etc.

the table should appear under the selected radio button.

View Replies View Related

Show/Hide Record

As admin I need the option to Show/Hide any given record at any giving time from any given user's query. When a client calls up their info, I may have added additional data to the db but I may not want to grant them access to that data until a certain time or I may need to 'un-activate' the data but still keep the record in the db. An on/off switch per record.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved