I've created an HttpHandler and I'm posting data to it. I'd like to get the form ID when it is posted but cannot figure out how to get that. I don't see any field in the HttpRequest that will give me this information. Is it possible to get the posted form ID from the HttpRequ开发者_运维知识库est?
You can't get this. You could include this information in a hidden
form field.
The ID attribute is not submitted; its purely for client side processing. The forms Name is available. If you need it, you'll have to include in in another form element.
If the ID from the form you were looking at is in the query string then you can use Request.UrlReferrer
精彩评论