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
ADVERTISEMENT
I have a dynamic value from a recordset that if it is a 0 value I want it to
be hidden.
something like
If Recordset.Fields.Item("CarPark") = 0 Then
value hidden
Else
Show value
View Replies
View Related
Any one help me out how to add additional (dynamic content) When we open a mail. Is it possible using ASP.
View Replies
View Related
I have multiple video and audio files that I want to play on my site. They are also multiple sizes. Some are 320x240 and some are other wacky sizes. What I am trying to do is create a dynamic PopUp player to embed Windows Media Player in.
I have a Database where I have put the links and the display text for the video and audio files. I am currently using JavaScript to make my PopUp window.
Is there any way with ASP I can automatically size the PopUp windows to the right size to correctly house my embedded media player? I use ASP to create the link to the PopUp Window and then once the Window is open I use ASP to get the video file, i do the same for audio files.
View Replies
View Related
Dynamic Content - Is there a way to keep information in some main memory pool in IIS so that each thread of execution (each visit to the site) would have access to it. I do not want to hit the db every time a visitor hits a new page on my site?
View Replies
View Related
i am just trying to build a table that will put content into 2 columns. Ideally, if there were 20 hits, 1-10 would be in column 1 and then 11-20 would appear in column 2...i just can't seem to figure it out. I had started by getting a recordcount, and dividing it by 2, but things got a little fuzzy after that.
View Replies
View Related
In my code to send email from VBScript, I use standard CDOSYS code similar to
the following:
With oMsg
Set .Configuration = oCon
.To = """Admin"" <admin@mycompany.com>"
.From = """Joe Admin"" <jadmin@mycompany.com>"
.Subject = "Hey You!"
.TextBody = "Service(s) have failed!"
.Send
End With
I understand the use of the .HTMLBody property, as well as the
..CreateMHTMLBody method. So I know I can create an ASP or HTML page, and
pass it to the .CreateMHTMLBody method, to get the images truly embedded, so
the email source contains the cid:blahblahblah references to the images,
which is key to getting the email to display properly in web-based mail
clients.
My question is... how do I achieve the same thing (embed the images) that
the .CreateMHTMLBody method does automatically, manually, so I can also
inject values passed from a form postback into the email?
It seems that I shouldn't use the .CreateMHTMLBody method. It seems that I
need to manually accomplish what it accomplishes automatically, so I have
more granular control. But I have found no thorough online resources that
explain exactly how. I have thoroughly looked at all of the SDK information
pertaining to CDOSYS, and I am still in dire need of an example for
VBScript...
It seems that the .AddRelatedBodyPart method is part of the answer, but when
I use it to embed the images and fill .HTMLBody, rather than using the
..CreateMHTMLBody method, I do not see cid:blahblahblah in the email source,
and the images do not display properly in web-based mail clients such as
Outlook Web Access.
I really need some help on this. It would also appear that I am not alone.
I find plenty of questions on this, but no answers. Can anyone help with a
working VBScript example that embeds images into an email in a fashion that
yields the cid:blahblahblah in the email source, for the image references,
that does not use the .CreateMHTMLBody method to do the work automatically?
View Replies
View Related
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
I code that creates a calendar for each month and then it displays events from that month that are stored in a db. I need to loop through my recordset and display all the events, but I can't quite figure out how to do it. I am thinking I need to do an array. But I am not really sure.... any ideas. Here is where you can view the calendar. Code:
View Replies
View Related
Ok, I have a Javascript ASP and in it I have a dynamic repeating table with certain attributes to people. If one of these attributes is old or invalid, i want to change the color of the text (and maybe make it flash, blink, change size, something) so that it's easy to read.
View Replies
View Related
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
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
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
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
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
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
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
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
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
how to import the rtf format content to word file.
View Replies
View Related
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
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
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
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
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
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
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
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
How to bring the file content into Textarea box
View Replies
View Related
I am trying to read webpage content into a string variable to be able to search it for a pattern that I want to be able to display on another ASP page.Is there any obvious method to do this with VB script?It would be something compatible with following PHP script:
<? $fd = fread(fopen("http://www.vedur.is/vedrid/stutt_spa.html?", "r"), 100000); if ($fd) { /* $start = strpos($fd, "<unique HTML tag>">"); */$start = strpos($fd, "Veðurhorfur á landinu til kl. 18 á morgun:"); /* $finish = strpos($fd, "<unique, sem næst lokun HTML tags>"); */$finish = strpos($fd, "Næsta veðurspá er væntanleg"); $length = $finish - $start; $code = substr($fd, $start, $length); echo $code;}?>
View Replies
View Related
I can't get a file download working on IE5.It works on IE6 and I couldn't find a solution on google. Here's the code:
Response.ContentType = "application/download"
Response.AddHeader "Content-Disposition", "attachment;
filename=""ex.html"";"
What's the correct way to force a file download?
View Replies
View Related
I am having problem of content expiration it expires immidiately.Real problem is I am replacing some images on mouse over. On every mouse over its downloading images from server that takes time to display, and second thing is its working fine with same aaplication on server1 but when I putting on server2 its not.I have content expiration checked / unchecked in IIS but no luck.
View Replies
View Related
I'm using the asp content linker component to cycle through documents pertaining to a user's search request.A temporary folder is built with all the necessary documents including a dynamically created index file.Each of the documents has a server-side-include referencing the navigation file.
The process works fine if I enter the URL of the first document in the address window or in the source of the frame; it doesn't work though, if I use a server or response object to execute or transfer or redirect.I get an error saying that the index file could not be opened.
I have also tried to put the actual code in the document, and using server.execute "navigation" The results are always the same,it works and doesn't work in the same ways.
View Replies
View Related