submit a postback example.

Jul 20, 2007 at 3:21 AM
Using the toolkit, I am unable to get the postback to work properly.
It is an fbml app.
I click the submit button button in the canvas page, and just get the 500 error.
Does anyone have any example client code and markup code showing a postback?
Jul 20, 2007 at 8:00 PM
Edited Jul 20, 2007 at 8:11 PM
the problem seems to be stemming from, when I look at the html source, it reads:

<form name="form1" method="post" action="default.aspx" id="form1">

but the docs at:
under the HTML heading, near the top, say:
form (make sure you use an absolute URL for the action)

What's the best way to force the absolute URL for an aspx page?
Jul 24, 2007 at 10:04 PM
I think what you are looking for is: action=""

But, the strange thing, is that I set up my sample FBML app with the way you describe yours is currently setup, and I can get a submit to work fine.

Jul 25, 2007 at 5:44 PM
If your html source looks the same as mine on your canvas page, the absolute url may not be my problem after all.

However I cannot place an absolute url directly in the action if I have a runat="server" in the form tag, because .net replaces it with the default as in my example above.
And when I give the form an id="forml1" identifier, there is no 'action' property available in the codebehind to set it programatically.

I find it pretty sad, yet typical, that these guys would create a wrapper api, especially when they're commissioned to, and fail to provide any real life examples. Just a couple simplistic samples in that near useless doc file they provide.
A sad state of affairs.