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
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
相关文章推荐
- Rewrite the master page form action attribute in asp.net 2.0
- 设置页面的默认焦点控件和默认接受事件控件How Do I Set the DefaultFocus or DefaultButton in a Page Based on a Master Page in ASP.NET 2.0
- How to programmatically assign a SkinID to a control while using a master page in ASP.net 2.0
- Explain the page life cycle in ASP.NET 2.0
- How to programmatically assign a SkinID to a control while using a master page in ASP.net 2.0
- How to set the DefaultButton in a Page Based on ASP.NET Master Page
- Dynamically Setting the Page's Title in ASP.NET 2.0 or By SiteMap
- How to use Asp.Net Mvc ActionFilterAttribute for form authentication
- Asp.net 2.0的一些小心得 (三) Master Page的使用
- Understanding the Session Object in ASP.NET 2.0
- Asp.net 2.0专题之一:MasterPage
- Using the ASP.NET 2.0 ReportViewer in Local Mode
- [ASP.NET学习笔记之十二]ASP.NET 2.0中Theme、MasterPage和代码国际化
- Asp.Net 2.0 开发加速之 - Ilungasoft.Helper.Web.UI.MasterPage/Page/UserControl 精装版
- Asp.net 2.0专题之一:MasterPage
- Custom Script Callbacks in ASP.NET 2.0 without refresh whole Page
- How to Pop Open an image window that resizes to fit the image in ASP.net 1.x and 2.0 Beta 1
- ASP.NET 2.0 之 Master Page 学习笔记
- Using the ASP.NET 2.0 ReportViewer in Local Mode
- ASP.Net 2.0 Web Parts in Action: Building Dynamic Web Portals