Jump to content

vikramgavli

Members
  • Posts

    4
  • Joined

  • Last visited

Contact Methods

  • Website URL
    http://www.vikram-gavli.blogspot.com

vikramgavli's Achievements

Newbie

Newbie (1/7)

0

Reputation

  1. if session timeout occurs. it should inform user that "Whether you want to continue or not" if user click continueit should continueor else window should close in classic asp???
  2. The below code calls a webservice with simple Addition and subtraction and return values <html><head><title>Calling a webservice from classic ASP</title></head><body><%If Request.ServerVariables("REQUEST_METHOD") = "POST" ThenDim xmlhttpDim DataToSendDataToSend="val1="&Request.Form("text1")&"&val2="&Request.Form("text2")Dim postUrlIf Request.Form.Item("Operation")="Sum" ThenpostUrl = "http://www.webservicex.net/CurrencyConvertor.asmx"elsepostUrl = "http://www.webservicex.net/CurrencyConvertor.asmx"end ifSet xmlhttp = server.Createobject("MSXML2.XMLHTTP")xmlhttp.Open "POST",postUrl,falsexmlhttp.setRequestHeader "Content-Type","application/x-www-form-urlencoded"xmlhttp.send DataToSendResponse.Write DataToSend & "<br>"Response.Write(xmlhttp.responseText)ElseResponse.Write "Loading for first Time"End If%><FORM method=POST name="form1" ID="Form1">Enter the two Values to perform Operation<BR><select name="Operation">Select Operation<option value="Sum">Sum</option><option value="Subtraction">Subtraction</option></select><INPUT type="text" name="text1" ID="Text1"><INPUT type="text" name="text2" ID="Text2"><BR><BR><INPUT type="submit" value="GO" name="submit1" ID="Submit1"></form></body></html>
  3. 1 Always open your website in popup2 Hide Address bar using javascript3 Disbale Right Click in javascript4 Disable Drag and copy/paste option in javascript
  4. Microsoft VBScript compilation 800a03eaSyntax error/DragonCraft/includes/common.asp8If IsEmpty(request.querystring("showtracker")) AND Session("showtracker") Is <> Nothing then -----------------------------------------------------------------------------^ The above Error contains "is" as operator. But in Classic asp there is no "is" operator statment remove is from your code...
×
×
  • Create New...