I have the following code that accepts form submissions
[ActionName (" TestingTemp "), AcceptVerbs (HttpVerbs.Post)] Public Functional Testing TEMP (Form Collection Results) {string cat =" "; See Return ("Try"); }
The problem now is that this page is loading to load the "Try" page, although things break on the page because this is the following code (which is fine if I directly Go to the Try Page)
Try Public Action () {View Data ["Test"] = DataLayer Test (0, 10); See Return (); }
Also in the url is TestingTemp in which it should be included, if you know what I mean
I think what you want RedirectToAction
will redirect your other method and will rewrite the URL. [ActionName ("TestingTemp"), AcceptVerbs (HttpVerbs.Post)] Public Actioncell Testing Temp {string cat = ""; Return Redirect Action ("Try"); }
Comments
Post a Comment