You need the reference to System.Web.
Showing posts with label url. Show all posts
Showing posts with label url. Show all posts
Monday, March 29, 2010
UrlEncode/UrlDecode in C#
Use HttpUtility.UrlEncode(string url) & HttpUtility.UrlDecode(string url) respectively.
Tuesday, March 23, 2010
InfoPath: Retrieving URL Path without Code
Create a data field in Infopath, add a hidden control with the following formula as the default value:
substring-before(substring-after(/processing-instruction(), 'href="'), '"')
The value returned is: http://servername/DocLibName/Forms/template.xsn
Not the perfect solution because I would also like to know the folder in which the "New Form" was called.
substring-before(substring-after(/processing-instruction(), 'href="'), '"')
The value returned is: http://servername/DocLibName/Forms/template.xsn
Not the perfect solution because I would also like to know the folder in which the "New Form" was called.
Subscribe to:
Posts (Atom)