


















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
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。