开发者

Get the ID of a form posted to ASP.NET

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜