Pages

Friday, April 27, 2012

UploadIt

Available for Purchase in North America via asowsm@opentext.com

Screenshot

Compatibility
  • 7.x
  • 9.x
  • 10.x

Description
  1. Batch image/file upload
  2. Compatible with folder authorization packages
  3. Easy installation
  4. Support sub folders
  5. Supports all browsers

Accessibility
  • SmartTree, Start -> Administer Project Settings -> Project -> Folders, Action Menu, UploadIt
  • SmartEdit, Open page, right click Plugin-ins, UploadIt

Tuesday, April 10, 2012

ASP to .NET Session Transfer

Generally, there are two ways to transfer ASP sessions to .NET sessions. Also, these methods are not limited to reddot/opentext wsm/cms, but are useful in general day to day coding. Please note that the code illustrations do not take security concerns into consideration, securing session access can be achieved via IIS configuration or addition code checking.

Push Method

session_transfer.asp
<%
Dim sActionPageURL, sContent

sActionPageURL = "http://localhost/cms/plugins/session_store.aspx"
sContent = "?"

For Each Item In Session.Contents
 sContent = sContent & Item & "=" & server.URLencode(Session.Contents(item)) & "&"
Next

'Construct POST Object
set http_obj=server.CreateObject("MSXML2.ServerXMLHTTP")
http_obj.Open "POST", sActionPageURL , false
http_obj.setRequestHeader "Content-type", "application/x-www-form-urlencoded"
http_obj.send(sContent)

'Display Response
'Response.Write (http_obj.ResponseText)

set http_obj=nothing
%>

session_store.aspx
<%@ Page language="c#" validateRequest="false"%>
<%
    for(int i=0;i<Request.Form.Count;i++)
    {
        Session[Request.Form.GetKey(i)]=Request.Form[i].ToString();
        'Response.Write(Request.Form.GetKey(i));
        'Response.Write("=");
        'Response.Write(Session[Request.Form.GetKey(i)]);
    }
 
    Response.Write(Session.Count);
%>