I created a web handler (.ashx) in ASP.NET and it takes 4 post variables, all 
strings.

When I manually type in the URL with the variables 
(name=this&email=that&comments=this) it works fine, but when I try to POST 
those variables in an HTTPRequest in Flex, my web handler can't "see" the 
variables. It breaks on the first line and says, there is no "name" variable, 
i.e. - no instance of an object.

What am I doing wrong? Does the Flex Request have to be formatted differently 
for .NET? It works fine in PHP.

<code>

public void ProcessRequest (HttpContext context) {
        string sName = context.Request.QueryString["name"].ToString();
        string sEmail = context.Request.QueryString["email"].ToString();
        string sType = context.Request.QueryString["type"].ToString();
        string sComment = context.Request.QueryString["comment"].ToString();

...
...

}

</code>

Reply via email to