I have an application that builds a Query string on the fly. I send this string to a function that builds a table on the fly from the data the Query returns. The Table string, ie..(table><tr><td>Stuff</td></tr></table>) is way too long to send in a querystring. So I have sent it to a cookie that I can recall on the next page. I can get the cookie, but it changes all my "<" to %3C and my ">" to %3E.
I tried this replace function
Dim RegX
Set RegX = NEW RegExp
Dim MyString, SearchPattern, ReplacedText
MyString = Request.Cookies("objTable")
SearchPattern = "%3C"
ReplaceString = "<"
RegX.Pattern = SearchPattern
Regx.IgnoreCase = True
RegX.Global = True
ReplacedText = RegX.Replace(MyString, ReplaceString)
but with no change to the string
this is what I get.
%3Ctable%3E%3Ctr%3E%3Ctd%3EProjectName
should be
<table><tr><td>ProjectName
any suggestions?
Thanks
Ray
I tried this replace function
Dim RegX
Set RegX = NEW RegExp
Dim MyString, SearchPattern, ReplacedText
MyString = Request.Cookies("objTable")
SearchPattern = "%3C"
ReplaceString = "<"
RegX.Pattern = SearchPattern
Regx.IgnoreCase = True
RegX.Global = True
ReplacedText = RegX.Replace(MyString, ReplaceString)
but with no change to the string
this is what I get.
%3Ctable%3E%3Ctr%3E%3Ctd%3EProjectName
should be
<table><tr><td>ProjectName
any suggestions?
Thanks
Ray