您的位置:首页 > 编程语言 > ASP

Rewrite the master page form action attribute in asp.net 2.0

2009-08-27 10:47 811 查看
When all your web pages are reference to a master page, where a form element has already existed. But you want to rewrite the form action attribute and post data to other web page.

So how to rewrite the form action attribute?

1. Use simple HTML forms and elements, instead of server form and controls.

2. Use javascript code. For example,

btnOK.Attributes.Add(“OnClick”, “document.forms[0].action=’otherwebpage.aspx’;”);

from:http://www.cnblogs.com/rickie/archive/2006/07/25/458909.html
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: