且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

我该怎么办<形式方法="获得">在ASP.Net的搜索表单?

更新时间:2022-05-04 08:39:03

使用一个普通的旧的HTML形式,而不是一个服务器端的形式(RUNAT =服务器),而你的确应该能够使它发挥作用。

Use a plain old html form, not a server side form (runat=server), and you should indeed be able to make it work.

这可能不过是一个问题,如果你有一个外面包裹整个页面在服务器端表单框视觉工作室母版页的,因为你不能嵌套形式。

This could however be a problem if you have an out of the box visual studio master page which wraps the entire page in a server side form, because you can't nest forms.

Web表单没有吸,但默认实现经常做。你不必使用Web表单的一切。有时,普通的旧后/获取和处理请求code会做就好了。

Web forms don't have to suck, but the default implementations often do. You don't have to use web forms for everything. Sometimes plain old post/get and process request code will do just fine.