asp.net mvc 3 remote attribute passing 3 fields

Viewed 12192

I want to pass three field to my controller using RemoteAttribute. How can i do it?

 public int ID1 { get; set; }  
 public int ID2 { get; set; }  

 [Remote("CheckTopicExists", "Groups", AdditionalFields = "ID1", ErrorMessage = " ")]  
 public string Topic { get; set; }   

        public ActionResult CheckTopicExists(string topic, int ID1,int ID2)   
        {
            return Json(true, JsonRequestBehavior.AllowGet);
        }

How can i pass three field to that function?

3 Answers
Related