This project is read-only.

form processing and external dll

Jan 19, 2011 at 11:12 AM

In my last question about maximum parameters i'm getting to te limit of parameters.

What my next genious solution is to put the form items to xml and process the xml in the external dll.

Is that a nice solution? Or are the more options?


Jan 19, 2011 at 2:23 PM

The short answer will be: Yes, it can be useful.

It depends on data nature. Some types like dates require you be carefully with transferring them via textual representation.

Any way if you go with XML, you must define XPathNavigator parameter that will accept XML from XSLT variable:

<msxsl:script language="C#" implements-prefix="script">

    public int processXml(XPathNavigator nav)
      return nav.Select("//*").Count;


<xsl:template match="/">
  <xsl:variable name="xml">
  Total Nodes:
  <xsl:value-of select="script:processXml($xml)"/>