asp-classic

legacy (classic) ASP code session issue

风格不统一 提交于 2019-12-12 09:15:25
问题 My question is about classic ASP, not ASP.Net. I ask expert here since search engine always tell me ASP.Net answers. My confusions are, How to set session expiration time in classic ASP code or through configuration? How to extend session expire time? Is there a session expire event? How to know when session will expire? thanks in advance, George 回答1: Please read this, I think it answers all your questions: http://www.w3schools.com/ASP/asp_sessions.asp George, There is a session_end event on

Can ASP.NET MVC routing and a classic ASP homepage (VBScript, not web forms) play together nicely?

拜拜、爱过 提交于 2019-12-12 08:57:28
问题 We have a classic VBScript "default.asp" page in the root of our site. (This is a heavy, legacy page and converting it is not an option right now.) We also have a new ASP.NET MVC 2 application we want to host on the same site. Everything actually works great together! Except for one thing: requests to the root of the site (e.g., / ) get picked up by the MVC routing (which then wants to display the HomeController's Index action) instead of letting the default.asp page take the request! This is

How to encrypt and decrypt highly sensitive information in SQL Server database with ASP Classic?

浪尽此生 提交于 2019-12-12 07:58:35
问题 I have been checking various questions on stackoverflow and of course google, but I can't really find any specific solution to this question: How do I create a function in ASP Classic to encrypt and decrypt highly sensitive information in a SQL Server database? Like fx. a social security number or anything similar? (Or is it possible to do in my SQL string?) And yeah, I do know how to create a function with ASP ;) And no, I just cant hash the information with SHA or MD5, because they only

I Want to Check Text Field

若如初见. 提交于 2019-12-12 06:57:05
问题 I am a beginner in HTML and ASP and I should write a program that when username and password are admin and user click on the button, the program opens a new ASP page in otherwise the program shows invalid username or password in table. I write this code but always when I click on the Button, the program shows new ASP page! I write this code in notepad. <html> <body> <form method="post" action="Exam1.asp"> <table cellpadding="20" border="1" align="center" style="text-align:left;"> <colorgroup>

Parsing XML with ASP

为君一笑 提交于 2019-12-12 06:30:03
问题 I have the code below, I just need help on figuring out the best way to get html from the content node below instead of plaintext. Any help is much appreciated. sKey = objItem.GetAttribute("id") Title = objItem.selectSingleNode("title").text Blurb = objItem.selectSingleNode("blurb").text Content = objItem.selectSingleNode("content").text Image = objItem.selectSingleNode("image").text myDate = objItem.selectSingleNode("date").text myMonth = objItem.selectSingleNode("month").text 回答1: In my

Getting access denied while trying to create iis application from code

不想你离开。 提交于 2019-12-12 06:15:12
问题 I'm trying to create a application from a directory inside a IIS website. Basically what I'm trying to do is to reproduce this flow in code: right-click on a folder inside an IIS website and click to convert to application. this is my code: DirectoryEntry appsRoot = new DirectoryEntry("IIS://localhost/w3svc/3/Root"); //Create and setup new virtual directory DirectoryEntry virtualDirectory = appsRoot.Children.Add(tool.Id.ToString(), "IIsWebVirtualDir"); virtualDirectory.Properties["Path"][0] =

PLS-00103 Encountered symbol “>” error while executing stored prcedure

♀尐吖头ヾ 提交于 2019-12-12 06:00:31
问题 I am having below stored procedure, when I try to execute it throws error. All the things are proper but don't know why this error it throws. can anybody help me to sort out this. create or replace PROCEDURE FR_Notes_Mng ( P_STR_ID IN VARCHAR2, p_Ref_no in VARCHAR2, P_UserId in VARCHAR2, P_Note IN VARCHAR2, P_datestamp IN VARCHAR2, p_Request_ID in varchar2, p_WrittenDate IN VARCHAR2 ) AS numSqlCode Number := 0; RecCounter Number :=0; strTable varchar2(30) := 'FR_Notes'; strAction varchar2(30)

How to add or plus times to NOW()

旧街凉风 提交于 2019-12-12 05:48:08
问题 how to add or plus time to now() with asp database mysql i am trying with this codes but does not work set prs=server.CreateObject ("ADODB.Recordset") prs.Open "topups",TheDB,adOpenForwardOnly ,adLockOptimistic,adCmdTable prs.AddNew prs("mid")=miid prs("epin")=epin prs("inr")=mepin("pinprice") prs("dattime")=now() prs("datt")=now() prs("ttime")=now() prs("roiadttime")=dateadd(hour,+8,now()) prs("roibdttime")=dateadd(hour,+16,now()) prs("roicdttime")=dateadd(hour,+24,now()) prs("roiddttime")

how to display current time with chosen timezone?

安稳与你 提交于 2019-12-12 05:39:58
问题 how to display current time with chosen timezone instead of server TZ? (VB) 回答1: to use any TZ; simply use this row to add hours: anytime = DateAdd("H", HOUR_DIFFERENCE, Now()) 回答2: Public Declare Function GetTimeZoneInformation Lib "kernel32" Alias "GetTimeZoneInformation" (lpTimeZoneInformation As TIME_ZONE_INFORMATION) As Long Public Type TIME_ZONE_INFORMATION Bias As Long StandardName(32) As Integer StandardDate As SYSTEMTIME StandardBias As Long DaylightName(32) As Integer DaylightDate

Is it possible to restrict windows authenticated users in an ASPNet app to specific domains?

三世轮回 提交于 2019-12-12 05:39:12
问题 I'm in the process of pulling a classic ASP app into Mvc2. I'll be deploying to an intranet and have been asked to enable support for Windows Authentication. The network I'll be deploying to has a few AD Domains and I'll only need to integrate with one in particular. Is it possible to use Windows Authentication and only allow authentication within a particular domain? Along those same lines, it's not uncommon for a user to have an account in multiple domains (the account names themselves are