http://localhost:10649/Home/GeneratePDF?UserID=113&FullName=dungar&Email=ram.dungar08%40gmail.com&Subject=test&Gender=male&Address=nagaur&City=nagaur&State=raj&Country=india&MobileNo=8130623911&CheckinDate=12%2F20%2F2014%2000%3A00%3A00&CheckOutDate=12%2F21%2F2014%2000%3A00%3A00&NoofRoom=2&Status=Booked
Can anyone tell me how to prevent displaying data in url in mvc 4 ??? i just want to show only in url http://localhost:10649/Home/GeneratePDF like this but its showing all other data . so please help me out on this matter ?? i would appreciate it.
Thanking you in advance .
ram dungarPosted Dec 22, 2014, 1:43 AM
its not working.
Manish Kumar ChoudharyPosted Dec 22, 2014, 1:31 AM
ram dungarPosted Dec 22, 2014, 1:11 AM
sorry to tell you that its not working.
Thanks
Manish Kumar ChoudharyPosted Dec 22, 2014, 12:51 AM
by clicking this form will be posted back using post
ram dungarPosted Dec 22, 2014, 12:45 AM
public ActionResult GeneratePDF(Booking bm)
Manish Kumar ChoudharyPosted Dec 22, 2014, 12:38 AM
ram dungarPosted Dec 22, 2014, 12:33 AM
sorry to tell you that its getting error, even i solved the error but getting same url.
Manish Kumar ChoudharyPosted Dec 22, 2014, 12:21 AM
@model bootstrapPractice.Booking
GeneratePDF
ram dungarPosted Dec 22, 2014, 12:05 AM
@model bootstrapPractice.Booking
GeneratePDF
ram dungarPosted Dec 21, 2014, 11:54 PM
i tried [HttpPost] but don't work, still getting some url. do you anything else to suggest ???
Thanks
Manish Kumar ChoudharyPosted Dec 21, 2014, 11:54 PM
Manish Kumar ChoudharyPosted Dec 21, 2014, 11:44 PM
use FormMethod.Post in @using (Html.BeginForm(.....){}
and Decorate the controller action method with [HttpPost]