我尝试使用 ASP .NET 创建动态语音 xml 文档。
我在第一页 ASP 应用程序中得到一个变量:customerRecordId
<%
int customerRecordId = GetNextAvaliableCustomerId();
%>
我想将此参数发送到我的第二个 vxml 生成器页面: [ProcessAtServer.aspx]
<submit maxage="0" method="post"
next="http://localhost/ProcessAtServer.aspx"
/>
默认情况下,vxml 提交所有标签,如“填充”。但不是我的变量 customerRecordId。
PS:我在提交时尝试名单:namelist = "customerRecordId" not worked.
如何将参数 customerRecordId发送/传递到 ProcessAtServer.aspx 页面?
更多信息:
这是 My ASP .NET 的一般结构。我想要的是将函数 GetNextAvaliableCustomerId 的结果作为参数传递给发布请求[使用提交标签]
<script language="c#" runat="server">
public int GetNextAvaliableCustomerId()
{
// Some Code
}
</script>
<% Response.ContentType="text/xml"; %><?xml version="1.0" encoding="utf-8" ?>
<vxml version="2.0">
<%-- This DOES NOT WORK.
GET COMPILATION ERROR "Compiler Error Message: CS1002: ; expected"
--%>
<var name="customerRecordId" expr="<%GetNextAvailableCustomerId()%>"/>
<form>
<field name ="option">
// SomeCOde
<submit maxage="0" method="post"
next="http://localhost:49368/ProcessSurveyResult.aspx"
namelist ="option"
/>
// Some code
</filled>
</form>
</vxml>