Controlling Content With Variables

I am looking for the code to enable me to change the content of my asp site through the ajustment of variables.

I have index.asp (content included into this)

Would like to be able to have 'index.asp?page=Contact'

And it would 'include' the contact.asp information into index.asp

I found some code in another thread but didnt want to hijack it. This is down the right lines but it wouldnt work for me

Quote: Server object error 'ASP 0230 : 80004005'

Server.Transfer Error

/SITETEST/test2/index.asp, line 28

The call to Server.Transfer failed while loading the page. and it doesnt control content through includes. Code:

View Replies


ADVERTISEMENT

Setting Session Variables In Cookies For Personalized Content

I have these 3 tabs that I want the user to be able to select, a variable to be set, and then each page they visit in the site to read that variable and subsequently display content based on the variable that is set. So, Sheridan tab sees "Sheridan" variable content, Gillette sees "Gillette" variable content, etc.....

View Replies View Related

Controlling Services

since we run BIND as our DNS, I'd like to be able to force it reload changed zone files via an ASP page. I don't need to restart the service itself. There is a specific command that can be sent to it that'll reload the zones without restarting the service, but I don't know how to execute it.

i'd like to be able to create and manage IIS websites from an ASP page. Is there any documentation on this? It must be possible, but I can't find out how.

View Replies View Related

Controlling Random Records

i am currently working on an online test tool using ASP. Now, the questions would be generated randomly from a database(access), so two or more candidates will not have the same question. There will be one question per page. Now, i have successfully generated the radom questions from the database.

But i have a problem which is:

1. When i click the next link to go the next question, my code displays the question on the previous.

2. Also, when i click on the previous link to go back to the previous question my code changes the question from the previously answered to a new question. Code:

View Replies View Related

Controlling Printer Setup

I have an ASP page where I need to give users a button to print the screen in ladscape. How do i do it in vbscript or in javascript. Can't convert the data to pdf and send it to them.If i have to use printer object can someone show me how to create/instantiate a printer object before i can print it.

View Replies View Related

Controlling Frame Busting

how to control frame busting. My application has a frame where i open the site user has select to view. Frame busting is, preventing that your page is caught in someone else's frameset.

So when user select yahoo.com or else which has frame busting technology impemented it will occupy my aaplication's window by setting "top.location=self.location" But i wanna know if the current page is going to occupy my window then open that site using window.open(URL) instead opening it in userFrame. Awaiting for the fastest responnse.

View Replies View Related

[XPOST] Controlling The Commandline Via ASP/WSH

I have a problem letting this small script I wrote work correctly. In
particular i can't manage to execute commands that require user
input/confirmation. How should i handle that? Code:

View Replies View Related

Session Timeout - Controlling

I am using global.asa to set time out after a user logs.
It looks like this:

Sub Session_OnStart
Session.Timeout = 900
End Sub

I want to detect when the session has timed out and redirect the use to the login page.

View Replies View Related

Using ASP To Replace Content But Not Tag Content In HTML Pages

Using ASP I'd like to modify a string that contains HTML. I need to modify the content (the bit that the users see) but not the stuff in the tags. For example, if I had the following string Code:

View Replies View Related

Controlling Concurrency To Access Web Pages

We have an issue where we need to control access to specific web pages e.g. if one user is editing a purchase requisition another user shouldn't be able to perform any actions on it.

I presume we could lock the purchase requisition for editing by a specific user when an edit button is pressed. Only that user would then be able to edit the document. However can anyone think of any better approaches to this issue which I presume must be quite common in other application domains.

View Replies View Related

Controlling Mouse Pointer Appearance

I have a simple collapsible table that displays when a Label is clicked. However, since the label is only plaintext, the mouse becomes an insertion icon (I-bar) when over the text. Because of this, a user might not understand that the label is clickable. Is there a way to control the mouse appearance so that it shows the standard pointing finger, WITHOUT creating an anchor? Due to other elements in the page, it cannot link back to itself without erroring out.

View Replies View Related

Controlling Text In A Text Area

I have this problem in controlling a text in a Text Area. How can I do that, for example the field size is 200, when it reaches 50 it automatically goes to the next line. Because im having problem when viewing text in my report, it continuesly views in a straight line. Can you give me ASP code for that.

View Replies View Related

Difference Between Environment Variables And Server Variables

can anyone tell me difference between environment variables and server variables.

View Replies View Related

Controlling Text In A Text Area Or Text

I have this problem in controlling a the text in a Text Area. How can I do
that for example the field size is 200, when it reaches 50 it automatically
goes to the next line. Bcoz im having problem when viewing it in my report,
it continuesly views in a strieght line and im having problem in printing.

View Replies View Related

Content

I have started doing SEO for a website and I'm trying to get a feel for how the website is set up.I dont know which file stores the content....
In the asp file page there is a string of code that reads:

<%Call writeContent(2,1)%>

I believe it is what is telling the server to find the article, but I dont know where it is.Does anyone know what else to look for?

View Replies View Related

Dynamic Content In ASP

I am having to make sites accessible where images are dynamically generated.

'Display the graphical hit count

Response.Write("<img src=""counter_images/")
Response.Write(Mid(lngVisitorNumber, intWriteDigitLoopCount, 1) & ".gif""")
Response.Write("alt=""" & Mid(lngVisitorNumber, intWriteDigitLoopCount, 1) & """>")
How do I include the width and height attributes in this code?

View Replies View Related

Active Content?

What is "active content"? My ASP page just returns HTML....

I have a page with an .htm extension that has a form whose action
is an ASP page which generates a report after updating a database
with the form data.

Under Windowx XP SP2 the IE6 "Information Bar" has the message:

"To help protect your security, Internet Explorer has restricted this
file from showing active content that could access your computer."

View Replies View Related

Print Content

I would like to have a PRINT button on my page, that redirects to another page which is more printer friendly.
I am pulling the content of a database (msAccess) into the initial page, and want that content to carry accross..

Here is an example of the page http://www.australie-voyages.com/en...-tours.asp?id=8

View Replies View Related

Delete Content

can someone help me. I'm writing an onlineshop in asp and for the shopping cart
i use an array. If someone wants to delete some articles from the cart, i have to
delete them from the array. How i delete only one article (on line) from the array.

View Replies View Related

How To Get Content Of A File ?

i am building some web page with template engine and i run on one problem: i want to import a content of some file and then use it in asp script so the solutions are this:

1: Create file system object and use ReadAll to read the content but there is a problem because it dosent render the importet file i get just the asp code

2: Create XML object and load the file into the xml but here is another problem this proccess takes quite a lot of time so it will be very slow for the web site especially that i want to import more the one file...

3: Create file system object and user ReadAll to read the content and then use eval(reasponseString) to execute this code... but i dont belive to much in this solution i dont know why but it seems to me it's not right.....

View Replies View Related

Rotating Content

If you needed to have a side bar, that had room for 2 or 3 graphical ads, and you had say 8 ads to pick from, and you wanted each page to just randomly load ads but never put the same 2 or3 ads on the same page...

View Replies View Related

Content Negotiation

I've been looking at content negotiation for serving up pages as xhtml/xml or text/html based on the user's browser and using PHP you use this:
PHP Code:

function fix_code($buffer) {
   return (str_replace(" />", ">", $buffer));
}

ob_start("fix_code");


to remove all the / end of tags in your text/html code. Is there an ASP equivalent to this?

View Replies View Related

Pull Content

I'm writing a site scraper (bot, etc.) that needs to log into a site (i have the username and password), then redirect to a particular page and then pull that content into a variable so I can manipulate it.
I'm using ASPHttp to try to pull this off. However, I CANNOT get by the login. According to ASPHttp this should be possible, but I cannot make it happen. I would not imagine this would be too hard to do. Perhaps ASPHttp is not the right tool.

View Replies View Related

Displaying Content From DB

After a user selects the 'answer' hyperlink, the answer will be pulled from the database and displayed.
Then i would like another link once selected to remove the displayed answer from the screen. It is important that the answer is not permanently deleted from the database.
I would like to do this for a series of questions.How can i do this?

View Replies View Related

Import RTF Content

how to import the rtf format content to word file.

View Replies View Related

Static Content

I'm using the Server.Execute method to include a static page inside a
dynamic database call. This static page is not a valid HTML page (i.e.
lacking <body>,<head>, etc. elements), but I'm pulling it into the dynamic
page just to give the content an upgrade in presentation, including images.
The problem is that there is no way to have relative URLs in the content
page, so all the image src's are wrong. Is there a better way to include
static content like this, or a way to alter the contents on the static page
prior to running Server.Execute (I could parse the file via the
FileSystemObject, but I'm hoping not to do that)?

View Replies View Related

Content Type

I am currently taking a lot of web form information and compiling it into a word document for users to download; however, I want to be able to embed any attachments
that they have inside the word document. The attachments are coming from a database and the office suite does not reside on
the server. Does anyone know if it is possible to create a word document with embedded attachments for download.

View Replies View Related

About Viewing Content..

I want my Default.asp page to view different content in a <TD> according the request.
I've been understand that the best method to do it is by using the method GET, Example:

..MyHost../default.asp?page=news

And I have no idea how to write the code:

View Replies View Related

ASP Content Type

On the website i'm working on, i'm using a database filled
with pdf files. Users can download these files from the website.
When you click the link of a file, you see a popup screen that asks you
wether you want to download the file or open it. My problem is that it
is empty behind the content type. The download works fine, and i have
the content type stored in my database. What do i do wrong here??

If Not rs.EOF Then
Response.AddHeader "content-disposition", "attachment; filename=""" & titleDownload & """"
Response.ContentType = rs("Content Type")
Response.BinaryWrite rs("File Data")

End If

View Replies View Related

Content Management

can anybody provide good links of content management services in asp.....
If I want to develop CMS for a website then how should I go for it???

View Replies View Related

Folder Content

I am looking to pull the contents of a folder and display them. I have been able to do this from the code below but only from a local folder. I would love to be able to get the contents from a web folder. Code:

View Replies View Related

Content Not Refreshing

My pages are not refreshing content. Sometimes they refresh after a minute or two.

I've set response.expires=0
response.expires absolute=now()
and I have response.expires = immediately in iis6

What else can i do? I also have the dot net framework installed and all service packs installed windows 2003

View Replies View Related

Expandable Content

I am looking for some good code that will allow me to have expandable/calapsible content, and will provide paging for a site i am developing.

View Replies View Related







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