« Previous Next »
Last post 07-27-2009 2:18 PM by ruslany. 5 replies.
Average Rating Rate It (5)Thank you for the rating!
Page 1 of 1 (6 items)
Sort Posts: Oldest to newest Newest to oldest
hi
when i using rewriteModule, must set form action attribute, but i cant set this is ASP.NET 3.5.
how to setting action attribute of form tag without using ASP.NET 3.5 SP1?
According to .NET Reflector:
public void set_Action(string value) { base.Attributes["action"] = HtmlControl.MapStringAttributeToString(value); }
internal static string MapStringAttributeToString(string s) { if ((s != null) && (s.Length == 0)) { return null; } return s; } No idea if it works.
thanks daneil, But the code above do not work.
MapStringAttributeToString is not a Member of HtmlControl...
I do this, but........ This method is available in sp1?
Note: I'm using the ASP.NET 3.5(No SP1)
The form.action attribute in .NET Framework 3.5 is only available starting from SP1. If you cannot upgrade your .NET framework, then other option you may want to try is outbound rewriting, which is available in URL Rewrite 2.0 beta. With that you can configure the outbound rule to change the form action URL in the response.