asp-classic

HTML form values adding commas in Classic ASP

一世执手 提交于 2020-01-22 14:32:44
问题 I have a classic ASP page that submits back to itself. Strangely, the values being returned from the selects have commas being added to the ends of them. Has anyone run into anything like this before? Any troubleshooting steps or tools recommended? I'm expecting the values to be returned just as numbers - they are the IDs of the values displayed in the option. I've checked for mystery commas in the page and can't locate any - nor in the data that I'm pulling through. (note - these are single

How to include adovbs.inc file in an aspx page?

纵然是瞬间 提交于 2020-01-21 22:08:32
问题 I'm converting ASP classic page to ASP.NET. What's the proper way of including files with .inc extension to aspx pages? <!--#include virtual = "adovbs.inc" --> I've notice that each time that I change one of those pages containing the include directive pointing to .inc files to aspx, I'm getting all sort of errors from those .inc files. I feel like just rewriting the logic inside those .inc files into vb classes. 回答1: The purpose of adovbs.inc or adovbs.asp was to provide a list of named

How to include adovbs.inc file in an aspx page?

╄→尐↘猪︶ㄣ 提交于 2020-01-21 22:05:38
问题 I'm converting ASP classic page to ASP.NET. What's the proper way of including files with .inc extension to aspx pages? <!--#include virtual = "adovbs.inc" --> I've notice that each time that I change one of those pages containing the include directive pointing to .inc files to aspx, I'm getting all sort of errors from those .inc files. I feel like just rewriting the logic inside those .inc files into vb classes. 回答1: The purpose of adovbs.inc or adovbs.asp was to provide a list of named

How to save canvas image using classic ASP?

﹥>﹥吖頭↗ 提交于 2020-01-21 03:34:20
问题 I'm a bit stuck here. I know that I can use the canvas.toDataURL to produce a base64 encoded string to pass to a classic ASP page on my server. But the problem I can't seem to find an answer to is how to process this data so I can save it someplace on my server. So with this snippet of code on my HTML page, I pull the canvas data (I pulled this from another post here at StackOverflow): var dataURL = renderedCanvas.toDataURL("image/png"); dataURL = dataURL.replace('data:image/png;base64,', '')

What happens if the meta tags are present in the document body?

百般思念 提交于 2020-01-18 15:55:36
问题 I am working on a ASP application and the code, template and files are organized in a way that does not allow me to alter anything outside the body tag. So I am thinking about inserting the meta tags inside the body -- like this: <!-- FEW ASP INCLUDES --> <html> <head> <!-- FALLBACK TITLE AND DESCRIPTION --> <title>Default Title</title> <meta name="description" content="Default Description"> </head> <body> <!-- SOME HTML MARKUP --> <div class="dynamic-content"> <!-- InstanceBeginEditable name

What happens if the meta tags are present in the document body?

爷,独闯天下 提交于 2020-01-18 15:51:45
问题 I am working on a ASP application and the code, template and files are organized in a way that does not allow me to alter anything outside the body tag. So I am thinking about inserting the meta tags inside the body -- like this: <!-- FEW ASP INCLUDES --> <html> <head> <!-- FALLBACK TITLE AND DESCRIPTION --> <title>Default Title</title> <meta name="description" content="Default Description"> </head> <body> <!-- SOME HTML MARKUP --> <div class="dynamic-content"> <!-- InstanceBeginEditable name

What happens if the meta tags are present in the document body?

淺唱寂寞╮ 提交于 2020-01-18 15:50:53
问题 I am working on a ASP application and the code, template and files are organized in a way that does not allow me to alter anything outside the body tag. So I am thinking about inserting the meta tags inside the body -- like this: <!-- FEW ASP INCLUDES --> <html> <head> <!-- FALLBACK TITLE AND DESCRIPTION --> <title>Default Title</title> <meta name="description" content="Default Description"> </head> <body> <!-- SOME HTML MARKUP --> <div class="dynamic-content"> <!-- InstanceBeginEditable name

Execute SQL Stored procedure in Classic ASP

五迷三道 提交于 2020-01-17 14:03:30
问题 Below is the ASP page, onload of this page I need to execute a stored procedure. I need to pass a parameter into this stored procedure. The value for this parameter I am getting from the Session. Stored procedure is supposed to insert a record into a table, and I don't need it to return any value back. I can't get it to execute from the ASP page, no matter what I do. Please help. What am I doing wrong here? <% @Language=VBScript %> <%Response.Buffer = true%> <html> <head> </head> <body> <!--

Classic ASP SQL Parameterization - How Can I Remove Single Quotes From A Parameter?

╄→гoц情女王★ 提交于 2020-01-17 04:06:05
问题 I am using classic ASP with a parameterized SQL querystring as follows: SQL = "SELECT * FROM content WHERE Category LIKE ? ORDER BY SubDate ?" The SQL query string is being used in the following parameterized code: Set cmd = Server.CreateObject("ADODB.Command") Set rsView = Server.CreateObject("ADODB.Recordset") cmd.ActiveConnection = MM_connContent_STRING cmd.Prepared = true cmd.CommandType = adCmdText cmd.CommandText = SQL cmd.CommandTimeout = 60 cmd.Parameters.Append(cmd.CreateParameter(

Javascript function to send alert firing regardless of value returned

我的未来我决定 提交于 2020-01-16 18:34:27
问题 The function created to send an alert based on a radio box's value returning as null is firing and sending alert while radio box has a value that should not be null. Somewhere else on the page is a function that hides the tables these radios appear on, and is what initially made this task out of my reach. If this div didn't hide, and these tables weren't generated dynamically then it could have been solved by adding a required attribute to the radio. This actually works as long as the div is