asp-classic

Capitalize string of words except for prepositional words

拟墨画扇 提交于 2019-12-12 01:06:09
问题 I am using the code below to take a string entered from a text box, and convert to capital case, except for words like (the, and, an, as, to, or, on) etc. Issue #1: I want the first word of the string to always be capitalized regardless of what the word is. Issue #2: The word spacing is not correct when the string is put back together. xText = queryForHTML xTextSplit = split(xText, " ") for each item in xTextSplit xWord = item if lcase(item) = "the" or lcase(item) = "and" or lcase(item) = "an

How to access JSON data in classic ASP using json2.asp or aspjson libraries?

会有一股神秘感。 提交于 2019-12-12 00:57:41
问题 Using http://www.aspjson.com/ or https://github.com/nagaozen/asp-xtreme-evolution/blob/master/lib/axe/classes/Parsers/json2.asp object I managed to get my data from URL to the dictionary object. But I tried and can not think of the way to get the data from the "opening" object using aspjson :-( I have not managed to find a way to get any data using json2.asp library. Here is my data: { "restaurant": { "id": 6, "email": "xyz@gmail.com", "visiblemail": "1", "date": "2014-07-24 07:38:59", "logo"

What is the type of Request.QueryString() and how to check if it's empty?

隐身守侯 提交于 2019-12-12 00:18:37
问题 Maybe it's trivial question, but I have no idea what is the type of Request.QueryString() . When I check it with typeof - it says it's Object. How to check which object it is and which property of that object is a string in URL? I'm doing it server side with language specification <%@ language="javascript"%> If I've got URL like that: http://127.0.0.1/Kamil/Default.asp?name= then how to check if name is empty? It's not null. I know I can convert Request.QueryString("name") to String and check

asp conditional include error Microsoft VBScript compilation error '800a0400'

只谈情不闲聊 提交于 2019-12-11 23:35:26
问题 I followed Martha's suggestion here: if page is default then include if not default then And I am missing something, as I can't get it to display the slider. Here is the slider code, and how I am using Martha'e suggestion. This is the slider (bootstrap carousel) code (to be integrated with Martha's suggestion) <div class="jumbotron"> <div class="container"> <div class="row fz-slider-wrap"> <div class="col-md-4 fz-slider-caption"> DFD Fioriere </div> <div class="col-md-8 fz-slider-image"> <div

How to get the return value .asp to ajax

被刻印的时光 ゝ 提交于 2019-12-11 20:57:08
问题 Why can't I get the return value from .asp? Here is my js: $('#loginID').click(function(){ var userID = $("#userId").val(); var passID = $("#passwordId").val(); var myURL = "http://ipaddress/asp/test2.asp"; $.ajax({ type: "GET", url: myURL, dataType: "JSON", data: { username: userID, password: passID, }, success: function (response) { alert(response); } }); }); my .asp: <!--#include file="JSON_Conv.asp"--> <% Dim member Set member = jsObject() set conn=Server.CreateObject("ADODB.Connection")

embed google qrcode in email

久未见 提交于 2019-12-11 20:40:45
问题 I have a code that sends an email with embeded images using aspemail. within the code i get a regular image by the <img> tag from google - so i get the qrcode in the email, if the client does not download images automaticaly, he won't see the image the embed of aspemail can't embed image/file that is not local is there a way to save locally an image from a giving url? if i get image from google: https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=http://www.sitedomain.com&choe=UTF-8 and

loop update statement in classic asp

旧时模样 提交于 2019-12-11 20:38:02
问题 I really need some help with this code. The loop is only making the update statement run once when there are maybe 4 records chosen so it has to loop 4 times. This is the 1st time ive come across this problem and I cant seem to see why it is doing it like that. Please help. Thank you. <!--#include file="connectionString.inc"--> <% Dim strmode, arrmode,i,rs,SQLstr, a, b, site_to strmode=Request.form("changeBox") cont1=request.form("cont1") arrmode=split(strmode,",") if request.form(

Bulk Record Insert

霸气de小男生 提交于 2019-12-11 20:36:37
问题 I need to fetch data from one table (multiple rows) and insert into other table after modifying and adding some new fields. For example: Table 1 itemid, price, qnt, date_of_dispatch Table2 Invoiceid, Invoicedate, customer_id, itemid, price, qnt, total_amt, date_of_dispatch, grandtotal Please help me to make it in asp with ms access 回答1: Insert the records one by one in the loop over the records from the first table: Dim oConn1 Set oConn = Server.CreateObject("ADODB.Connection") oConn.Open

Save Image to word of HTML reference

∥☆過路亽.° 提交于 2019-12-11 20:29:16
问题 I export data from my database to word in HTML format from my web application, which works fine for me , i have inserted image into record, the document displays the image also , all works fine for me except when i save that file and send to someone else .. ms word will not find link to that image Is there anyway to save that image on the document so path issues will not raise Here is my code : StrTitle contains all the HTML including Image links as well string strBody = "<html>" + "<body>" +

How to Include an .asp menu file inside a php file? (Wordpress Blog folder within ASP Site)

时间秒杀一切 提交于 2019-12-11 19:36:41
问题 Situation: ASP shopping cart site without any blog facility. Helping out a friend, I installed Wordpress into its own folder to sit with the ASP shopping cart and designed the WP theme to mirror the ASP cart style. Adding the blog to the ASP includes menu for the shopping cart. Now I am looking at including the ASP menu within the WordPress blog. Issue: The ASP 'includes' menu file generates some drop down options on the fly via its CMS - so copying the generated html into the Wordpress Menu