Michael Foltz
unread,Mar 7, 2007, 9:56:36 AM3/7/07Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to castle-pro...@googlegroups.com
hey,
I've got a form that attempts to post a boolean value into an action param
-----------------------
- form:
<form method="POST">
<input type="text" name="ID" value="$ID" />
<input type="hidden" name="confirmDelete" value="true" />
<input type="submit" value="Delete" />
</form>
- action:
public void DeleteArticle(int ID, bool confirmDelete)
-----------------------
after a bit of testing, I've determined that its a result of a failure to convert the string value "true" to a boolean.
i can change the param type to string, but I'm curious, what's the logic behind which element-types can be implicitly converted to a boolean type?
is there any documentation on this particular issue?