asp-classic

Name for ASP/ASP.NET Short Tags

自闭症网瘾萝莉.ら 提交于 2019-12-22 21:46:02
问题 Is there a particular name for <% and %> . 回答1: Scott Gu calls these Code Nuggets. So thats what I go with. http://weblogs.asp.net/scottgu/archive/2010/04/06/new-lt-gt-syntax-for-html-encoding-output-in-asp-net-4-and-asp-net-mvc-2.aspx 回答2: <% %> is usually referred to as a "server-side code block" or "code rendering blocks". http://quickstarts.asp.net/QuickstartV20/aspnet/doc/pages/syntax.aspx Which is different from <%# %> , which is a "databinding code block" and <%$ %> is an 'expression

Auto increment asp control ID

我只是一个虾纸丫 提交于 2019-12-22 14:42:45
问题 How can I do the equivalent of Classic ASP: <% for int_linkCTR = 1 to 5 %> <a href="somelink.com" ID="Hyperlink<%= int_linkCTR %>" >Link<%= int_linkCTR %></a> <% next %> C# <% for (int int_linkCTR = 1; int_linkCTR <= 3; int_linkCTR++) { %> <asp:HyperLink ID="link<%# int_linkCTR %>" runat="server"> HyperLink<%# int_linkCTR %>" </asp:HyperLink> <% } %> I want to loop through and create new hyperlinks based on my link count 回答1: A Repeater is what you are looking for. http://www.w3schools.com

Auto increment asp control ID

风流意气都作罢 提交于 2019-12-22 14:38:31
问题 How can I do the equivalent of Classic ASP: <% for int_linkCTR = 1 to 5 %> <a href="somelink.com" ID="Hyperlink<%= int_linkCTR %>" >Link<%= int_linkCTR %></a> <% next %> C# <% for (int int_linkCTR = 1; int_linkCTR <= 3; int_linkCTR++) { %> <asp:HyperLink ID="link<%# int_linkCTR %>" runat="server"> HyperLink<%# int_linkCTR %>" </asp:HyperLink> <% } %> I want to loop through and create new hyperlinks based on my link count 回答1: A Repeater is what you are looking for. http://www.w3schools.com

where does asp and iis 6.0 get its date format

你说的曾经没有我的故事 提交于 2019-12-22 11:08:54
问题 I've found a dilly of a pickle with a new web server. We have a new web server that is displaying dates differently than our old web servers. We are running asp classic web pages on IIS 6.0 with windows server 2003. We have logged in as an administrator and set the regional settings as appropriate and then applied the settings to current user and default user profile. We then went into registry and update the appropriate formats under HKEY_USERS/.default/control panel/international. Update

Converting VB6 AES Rijndael Block Cipher to C# by Phil Fresle

淺唱寂寞╮ 提交于 2019-12-22 10:39:29
问题 I am converting a classic asp application to C#, and would like to be able to decrypt strings in c# that were originally encrypted in classic asp. the classic asp code is here, and the c# code is here. The problem that i am facing is that the signatures of the Encrypt and Decrypt methods in asp vs C# are different. here is my asp code for decrypting, which wraps the decrypt code. Function AESDecrypt(sCypher) if sCypher <> "" then Dim bytIn() Dim bytOut Dim bytPassword() Dim lCount Dim lLength

how to set session never expire in ASP

落花浮王杯 提交于 2019-12-22 10:21:01
问题 I am using ASP classic (1.1) with IIS 6.0. Is there any options to set session never expire? thanks in advance, George 回答1: Session.Timeout=5 Would mean that it times out in 5 minutes. I don't think you can set this to infinity but you can set it to an approximately large number. 回答2: You can specify a Session.Timeout value in minutes. Or have your pages poll the server every n minutes (a javascript function would do that, or you can have a dummy iframe with refresh-content set to call a

Classic asp “An error occurred when verifying security for the message.” iis7 transport level security

僤鯓⒐⒋嵵緔 提交于 2019-12-22 10:19:55
问题 On II7 we host a WCF/asp.net based API. In order to allow users of a classic asp application to connect to the API we had to publish a version we refer to as "transport". This Transport version is written in asp.net too, it points to the same assembly , its just the security layer is different to allow classic asp to authenticate. Transport level security is used as opposed to message based security. When using a browser to load the service reference i can loading the svcutil.exe ... WDSL

replace spaces with   from a recordset

送分小仙女□ 提交于 2019-12-22 09:53:43
问题 hi guys how will i be able to change "spaces" on records being returned by a recordset. for example I have this code that will return a value of "John Doe": <td width="30%"><%=rsTmp("Name")%></font></td> What I would like to do is to change the space between the words into:   so that when my page got congested the name "John Doe" will still be in a straight line and will not be separated. Thanks in advance! 回答1: In Classic ASP you will need to code the following: <%= Replace(rsTmp("Name")," "

ASP session expiration before timeout setting

↘锁芯ラ 提交于 2019-12-22 09:49:58
问题 Some of my legacy program is using ASP (not ASP.Net), and even if I set long session expire time, for example to 20 minutes, sometimes in short time (e.g. in several minutes) I will still notice session expire error box – "too much idle time, please login again." Any ideas to analyze further? Not sure whether it is my code bug or server (browser) configuration issue, since not all client/server combinations are met with this strange issue. The session expire box is triggered by my code: <% if

how to implement openid support with classic asp?

穿精又带淫゛_ 提交于 2019-12-22 09:13:09
问题 I'd like to implement something like stackoverflow's login system in classic asp... is it possible? thanks in advance... 回答1: DotNetOpenAuth supports OpenID on classic ASP. They've got a sample classic ASP login page as well. 来源: https://stackoverflow.com/questions/948681/how-to-implement-openid-support-with-classic-asp