开发者

Comparing if new date matches date in database then redirecting to matching edit page in mvc2

You start at create page then select a date via datepicker and submit, now I want it not to create a new edit page with blank details but instead redirect to an existing edit page based on if the date selected matches a date recorded in the database.

I have 3 forms on same page with each being filled at different times of the day and once saved they are read only display views.开发者_开发技巧

added comparing to title to indicate this topic wasn't about redirecting.


All this would involve is you doing your date comparison in your action and then calling RedirectToAction like RedirectToAction("actionNameToRedirectTo") or if you want to include a model with that redirect using RedirectToAction("actionToRedirectTo", model)

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜