Embedding HTML
if I have a block of HTML which I can insert into a file, I know there a PHP way of doing it just don't know the VB way to do it, anyone come accross this?
View Repliesif I have a block of HTML which I can insert into a file, I know there a PHP way of doing it just don't know the VB way to do it, anyone come accross this?
View RepliesI have an asp page where I am generating an email but I need to have a link in the email body. Here is my code, I cannot get anything to work. I keep getting missing end of statement. Code:
<%
TheText2 = TheText2 & "HalCAP Request Number = " & rsOID("oid") & Chr(13)&Chr(10) & Comments
TheText2 = TheText2 & "<html><body><a href=""admin_31.asp?reqid=<%=quoteoid%>"">View Request</a></body></html>"
%>
I have a vbs script that retrives some stuff from AD via LDAP. Works great, and does exactly what I want it to go. The 'guts' of the app is Code:
Set objOU = GetObject (strOU)
Where strOU is something like "LDAP://OU=Users,OU=OT...." etc. Like I say this works fine and generates a nice report.
However I have to (I don't know why, but it's an insist) that this script has to be an html page. A stand alone one at that (ie to be run form a users workstation).
I rewrote the code to output to the html page, emebeded it in <script language="VBscript"> etc but the GetObject bit isn't working. I get :
Code:
I need to create HTML e-mail from an ASP program that includes embedded
images that go along with the e-mail, e.g. logos, product image, etc. Is
there a technique in HTML that people use to embed images? I know that when
I insert an image into an e-mail in Outlook, and I look at the HTML behind
it, there is a funny tak CID:
IMG hspace=0 src="cid:027301c29d8e$da6ba600$0afea8c0@MYMAIN" align=baseline
border=0>
Any clues?
I'd like to display XML data in a table in an ASP page. Seems like XSL and XML don't like that because ASP commands within the document cause the page to not be "well-formed"...
anybody know how to do what I want to do? Point me to a good online tutorial...i'll be looking too in the meantime.
I'm not sure if this is the correct forum to ask this question, but I'm creating the email in ASP so I'm sure it will do...
How do you embed images into emails? I've created HTML emails that lookup images on a server when viewed but I'm trying to write a script where an image is sent with the email as the image isn't available online (only on the intranet).
Is it possible to write in VB6 an activeX that will receive a RecordSet and
display a data report and then print it on a local/network printer?
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?
I have a table having 3 columns. There is a checkbox for each line. I
need to get those lines whose checkboxes are checked, and show those
lines to another webpage. Is there any way to do that? My concern is
that all information in the table are in <tb></tb> pairs without any
name tag. Any idea?
I'm doing a content management system, whereby the user can enter the HTML code for a currency symbol, eg £ for £.y . when I bring this data backup, say they want to edit the settings, then my ASP/HTML page is rendering the HTML code, eg £, rather than showing the original value, eg £.
If for example I put a space between the '&' and the 'pound;', eg & pound; then this will cause me problems because the user will think that they have to a put a space in or they file it with the space, which means the HTML code won't work any more. Is there a way round this?
i need to include the html inside another html, though it might appear simple, the catch is this, my one html is in one server and my another html is in another server.I cannot read the html and stream it as it has images and their path gets changed when i do that.
More over i donot have any control over the html which i am going to include all i have is a url http:abcxx.htm whose content i want to show in another asp page. The technology is ASP (vbscript and javascript).
I've created a form, using ASP to pull through first and last names from a database into another database. I cannot get it to put a space between the names it pulls through!!! Can anyone suggest what a put between the two to get a space!!
<%= rsGetStaff.Fields("FirstName").Value %><%= rsGetStaff.Fields("LastName").Value %>
I have an asp file that I made and I want to have it when you come to my site, the index.html redirects you to the .asp file, what is the code to do this?
View Replies View RelatedASP is server-side technology.All it does is process data sent from a
client in a Request and generate html to be sent to the client via Response.
You'll probably get a quicker response by posting to a relevant newsgroup.
http://groups.google.com/groups/dir?sel=33584039
What is the difference between HTML and ASP?
Apart from this,i know that ASP can display data from the text file of the server.Can HTML do such thing too?
I need to make a javascript include file using asp. I know how to make the include file with a .asp extention, but I am haveing other truobles
How can I make the < in html code be displayed as < not hidden and executed as normal code? Ex. <body><font color="red">this is text</font></body> would be displayed as that not this is text (but colored red). There's some function... ...can't think of it... ...I kind of does replace(pghtml,">",">"), etc...
since I am getting the data from a database, I need it ALL to go on one line when I response.write it, how would I do this?
I have an index.asp which consists of frameset and frames. The sub-frames
also consists of frameset and frames. This way, I can set the layout of my
webpages.
In one of the frames, I load Login.asp. When it is submitted to
doLogin.asp, I validate the login information. When I validate the password
successfully, I want the whole webpage (the index.asp and down) to reload
because it has to re-draw the menus on top. When the login is failed, it
redirects to Login.asp.
I am having a hard time doing this from my ASP page right after I validate
the login information.
I'am new to the ASP and I have a question about how do I get the name of the form?
<form name="zoekbedrijven" id="zoekbedrijven" method="post" action="form_lijst_bedrijfseenheden_bdrf.asp">
How do I get the form name with ASP like in javascript:
document.forms[0].name
But this doesn't work but how should I do this?
I have a PSD layout and I would like it coded in HTML (well ASP - ie basic, header/footer/middle - ASP not totally necessary) and table-less CSS.
PSD contains a few links up top which would require use of some image rollover technique.
Payment would be via PayPal. Please PM if interested and include experience you have with CSS.
If this is the wrong group, please post a more relevant group. My problem is that I have a .hex file (basically a text file) shown on a web page for download. If one left clicks on the link for this file, the text content is displayed. Someone in my organization wants to prevent this display. Any ideas on how to do this? I hope this is not an ignorant question but I am not a web developer, ... yet.
View Replies View RelatedI have to pass the valut of an HTML text box through POST method but for some reason i m unable to get that value through Response.Form of asp I have to get the value by response.querystring but for that i need to send that value through parameter in URL i dont know how to pass that value of textbox through parameter by post method.
View Replies View RelatedI'm trying to set default value for input type file.
<input type="File" name="tx_pdffile" accept="*.pdf"
class="boxText" value="abc.pdf">
but this value (abc.pdf) doesnt appear in the text box.Whats the solution?
I'm proficient with HTML. Been using it for many years now. I haven't had time to learn any of the newer languages but for what I need, I don't think I have to. I'm hoping someone can point me in the right direction of a tutorial or chunk of code I can simply paste into my existing page.
I've got a website I'm working on which requires *many* new pages within the same site. What I need to know is how to keep my navigational menu, header, logos, etc. in place while only refreshing the body of the text when links are clicked.
I got an ASP application and we need to figure out how to deal with this problem. Users sees text and images via his/her browser and he/she should have a possibility to create a .doc or .rtf file out of what he/she sees. So practically .html page should be converted to .doc or .rtf.
a) converting to .pdf is easier I know, but that's another story
b) opening .html -file inside word is not what I want
For example: user could view certain changing data, and then convert it to .doc/.rtf and save to his/her computer and view/change it offline. ASP component would be nice, but practically anything goes that can be attached to a www-application. It doesn't need to be free.
In html web pages I've used this:
<a href="faq.html">
Now in an asp page (which includes html) I see this:
<a href="?action=forgotpass" >Forgot Password,
Is the "?action=" asp language or html?
I have create search field in that user can enter student number in that field and if database could find that number , it will display that student record in html designed form. What I am doing is that I have create student form also in below of search field so if user find record in database , it will immediately appear in that given form.
But what actually happening is that when my form is loading it will directly check search box and that time nothing appear in that list and it will disply an error msg :
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80040E07)
[Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
Someone can suggest me that which event should I trigger.
You have a page. On top of the page, there are some search criteria and other input elements and a submit button. The submit button is clicked, sending a request to the server. Server-side code is executed to write client-side vars. Based on these vars, divs are shown or hidden.
Why not just write or not write the html stuff server-side? If other client-events were going to interact with the divs, I could see it. But they aren't. The page is always posted back to itself for any kinds of show/hide stuff.
I have some html in an mssql db and i want to response.write it without the tags being evaluated....????
View Replies View RelatedI am using ASP to send order confirmation emails to customers. However i want the emails to appear as HTML in the emails.
I have Successfully done this but i need to know how to attach CSS to the emails, so that it can look exactly like the html page i design.
I am using the CDONTS.Newmail component with the .body attribute.
I'm sending email using CDO Message in HTML Formatted. There is no problem if client side is HTML Enable. But if it doesnt not, its showing all html tags in message body.
I am trying to write a session value into a html email body and am unsure of the syntax:
Title=Session ( "Title" )
HTML = HTML & "<FONT SIZE=""6"" FACE=""BERNHARDFASHION BT"" COLOR=""#FFC880""><B>Session ( ""Title"" )</B></FONT></td></tr>"
I've got another email prob. Does anyone know how to link an external stylesheet in an html email via asp? I've got this so far:
While NOT offerCustRS.EOF
Dim strBody
strBody = "<!DOCTYPE HTML PUBLIC ""-//W3C//DTD HTML 4.0 Transitional//EN"">"
strBody = strBody & "<html>"
strBody = strBody & "<head>"
strBody = strBody & "<title></title>"
strBody = strBody & "<meta http-equiv=Content-Type content=""text/html; charset=iso-8859-1"">"
strBody = strBody & "<link rel=""stylesheet"" href=""CSS/blue.css"" type=""text/css"">"
strBody = strBody & "</head>"
strBody = strBody & "<body>"
strBody = strBody & "<div id=""head"">Special Offers from the best online shop</div>"
strBody = strBody & "<p>"
strBody = strBody & "<div id=""content"">"
while not offerRS.EOF
strBody = strBody & "Product:" & " " & "<a href='http://localhost/New Shop/products.asp?id=" & offerRS("Product_ID") & "'>" & offerRS("Product_Name") & "</a><br>"
strBody = strBody & "Price:" & " " & offerRS("Offer_Price") & "<br>"
strBody = strBody & "</div>"
offerRS.MoveNext()
WEND
strBody = strBody & "</body>"
strBody = strBody & "</html>"
The email doesn't have any of the formatting but I haven't a clue why. The css file has been tested on another page and it works so the css is fine. Can anyone help?
I have a form in my HTML page and I require a number of checkboxes. These are to be dynamically generated from an Access database. The code below will work but it will only create a single row. How can I include the <TR> tag inside the loop - I'd probably want 4 cells per row
<table>
<tr>
<%
Do until rstCategories.EOF = True
Response.Write "<TD width=200>"_
& rstCategories("strCategory")_
& "<input name=chkCategory type=checkbox value=" &rstCategories("lngID")>"_
& "</TD>"
rstCategories.Movenext
Loop
%>
</tr></table>