Click here to Skip to main content
15,893,814 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: EntityFramework MVC4 Pin
N_cooL1-Aug-13 2:31
N_cooL1-Aug-13 2:31 
QuestionHTTP Error 403.14 - Forbidden - when I try to browse web site set up on port 8082 Pin
vkEE30-Jul-13 6:04
vkEE30-Jul-13 6:04 
AnswerRe: HTTP Error 403.14 - Forbidden - when I try to browse web site set up on port 8082 Pin
Richard Deeming30-Jul-13 6:36
mveRichard Deeming30-Jul-13 6:36 
GeneralRe: HTTP Error 403.14 - Forbidden - when I try to browse web site set up on port 8082 Pin
vkEE30-Jul-13 10:48
vkEE30-Jul-13 10:48 
Questionhow to use json_encode Pin
aeman27-Jul-13 23:06
aeman27-Jul-13 23:06 
AnswerRe: how to use json_encode Pin
RedDk29-Jul-13 10:18
RedDk29-Jul-13 10:18 
QuestionHow to show widget in button click ? Pin
Tanuja12327-Jul-13 2:58
Tanuja12327-Jul-13 2:58 
QuestionMVC ASP.NET AJAX ACTION LINK CREATE Pin
f1sher25-Jul-13 22:41
f1sher25-Jul-13 22:41 
Hello could anybody Help me about passing the value of a textbox from form using Ajax Actionlink. It's been whole day  figuring out still I'm getting value of null.

Im using pure Ajax Action link with out Any button.

here is the sample of delete ajax action link works perfect!
http://www.joe-stevens.com/2010/02/16/creating-a-delete-link-with-mvc-using-post-to-avoid-security-issues/

But using it in form collection the value always null. Any help Appreciated Thanks!

here is my code:



 CustomerVIEW

<% using (Html.BeginForm())
   { %>
   
    <%= Html.TextBoxFor(model => model.Fname, new {  id = "Fname" })%>
    <%= Html.TextBoxFor(model => model.Lname, new {    id = "Lname"})%>
	
	
	 <%= Ajax.ActionLink("Create", "Create", 
                        new { id = 1}, 
                        new AjaxOptions { 
                                HttpMethod="POST",
                                OnFailure = "function() { alert('fail'); }",
                                OnSuccess = "function() { alert('success'); }" 
                            })%> 
							
	}
------------------------------------------------------------------------	
 CustomerController
 
  [AcceptVerbs(HttpVerbs.Post)]
        public ActionResult Create(FormCollection formCollection)
        {

            clsCustomer objcustomer = new clsCustomer();
            clsSession objSession = new clsSession();


            objcustomer.Fname = formCollection["Fname"];  --> NULL 
            objcustomer.Lname = formCollection["Lname"]; --> NULL
			
			}

AnswerRe: MVC ASP.NET AJAX ACTION LINK CREATE Pin
eddieangel29-Jul-13 12:09
eddieangel29-Jul-13 12:09 
QuestionWhat is the best firewall for a website to prevent hackers interference? Pin
hoyice23-Jul-13 0:45
hoyice23-Jul-13 0:45 
QuestionSelf signed SSL in IIS 7 Pin
vkEE22-Jul-13 10:16
vkEE22-Jul-13 10:16 
AnswerRe: Self signed SSL in IIS 7 Pin
Richard Deeming22-Jul-13 11:30
mveRichard Deeming22-Jul-13 11:30 
QuestionMessage Closed Pin
22-Jul-13 3:19
Sumu Shi22-Jul-13 3:19 
AnswerRe: What are good ways to evaluate domain? Pin
Richard MacCutchan22-Jul-13 5:32
mveRichard MacCutchan22-Jul-13 5:32 
QuestionCharacter not showing in utf-8 encoding Pin
Danzy8321-Jul-13 12:51
Danzy8321-Jul-13 12:51 
AnswerRe: Character not showing in utf-8 encoding Pin
chulkyoo22-Jul-13 20:41
professionalchulkyoo22-Jul-13 20:41 
AnswerRe: Character not showing in utf-8 encoding Pin
Rony Sur25-Jul-13 0:48
professionalRony Sur25-Jul-13 0:48 
Questionsubtotal and grandtotal in crystal report for .net Pin
seek weng20-Jul-13 22:52
seek weng20-Jul-13 22:52 
AnswerRe: subtotal and grandtotal in crystal report for .net Pin
Thomas ktg31-Jul-13 19:35
Thomas ktg31-Jul-13 19:35 
Questionproject migration to different server Pin
AndyInUK18-Jul-13 5:58
AndyInUK18-Jul-13 5:58 
AnswerRe: project migration to different server Pin
Richard MacCutchan18-Jul-13 6:44
mveRichard MacCutchan18-Jul-13 6:44 
QuestionWhere will be use action code? Pin
David Kroj18-Jul-13 1:21
David Kroj18-Jul-13 1:21 
AnswerRe: Where will be use action code? Pin
Danzy8321-Jul-13 12:40
Danzy8321-Jul-13 12:40 
GeneralRe: Where will be use action code? Pin
David Kroj25-Jul-13 21:19
David Kroj25-Jul-13 21:19 
GeneralRe: Where will be use action code? Pin
Danzy8326-Jul-13 5:12
Danzy8326-Jul-13 5:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.