Thanks Scott
Looks (to my amatuer eye) like I might need a minus 1 in there like this?
C#/VB.NET Code:
i.m_Price = i.m_Price.Substring(0, (i.m_Price.IndexOf(".")-1));
Also - in the same xmlpackage, I'm having the following problem.
I have the following code :-
C#/VB.NET Code:
if (namelist == String.Empty) namelist = i.m_ProductName;
else namelist += "|" + i.m_ProductName;
I'm trying to insert a UrlEncode as indicated below :-
C#/VB.NET Code:
if (namelist == String.Empty) namelist = UrlEncode(i.m_ProductName);
else namelist += "|" + UrlEncode(i.m_ProductName);
But it keeps throwing context errors, I've tried all of the following to no avail :-
C#/VB.NET Code:
System.Web.HttpContext.Current.Server.UrlEncode(i.m_ProductName)
System.Web.Server.UrlEncode(i.m_ProductName)
System.Web.UrlEncode(i.m_ProductName)
HttpContext.Current.Server.UrlEncode(i.m_ProductName)
Server.UrlEncode(i.m_ProductName)
Is anyone able to offer any help?
TTFN
BFG