0
我在我的網站中有兩種形式,但都提交相同的動作,
我打開花哨框和一個在普通頁面打開,
你可以我知道請求來自看中盒
或noraml頁面所做的,因爲如果表單提交失敗,因爲
來驗證我已經發回了同樣的觀點與驗證從用戶提出請求
錯誤。如何檢查c#是否從fancybox或普通網頁發送請求
public ActionResult SubtmitForm(contact model)
{
// here i will check whether request is from fancy-box form or from normal web page form
}
注:我使用asp.net MVC3