Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <authentication mode="Windows"/>
- <membership defaultProvider="AspNetActiveDirectoryMembershipProvider">
- <providers>
- <add name="AspNetActiveDirectoryMembershipProvider" type="System.Web.Security.ActiveDirectoryMembershipProvider,
 System.Web, Version=2.0.3600.0, Culture=neutral,
 PublicKeyToken=b03f5f7f11d50a3a" connectionStringName="ADConnString" connectionUsername="" connectionPassword=""/>
- </providers>
- </membership>
- $("form#frmCurrentLineItems").submit(function() {
- submitView(this);
- return false;
- });
- function submitView(form) {
- $.ajax(
- {
- type: form.method,
- url: form.action,
- data: $(form).serialize(),
- dataType: "html",
- error: function(error) {
- alert(error);
- }
- }
- );
- }
- [AcceptVerbs(HttpVerbs.Post)]
- public ActionResult CurrentLineItems(FormCollection thisForm)
- // Get the forecast from the session
- BusinessLogic.ForecastBL thisForecast = (BusinessLogic.ForecastBL)HttpContext.Session["ForecastMetaData"];
- if (thisForecast != null)
- {
- // Run the save to db stuff here
- return View("CurrentLineItems", ViewData["LineItemSummary"]);
- }
- else
- {
- return Redirect("../Shared/Error");
- }
- [HandleError]
- [Authorize]
- public class ForecastController : Controller
- {
Add Comment
Please, Sign In to add comment