Home > Net >  MVC controller response did not display form
MVC controller response did not display form

Time:11-25

The action

Public ActionResult UserRegist ()
{
String STR=Request [" txtname "];

//Response. Write (STR);
//Response. The End ();




Return the View ();

}


The user name & lt; Input tpye="text" name="txtName & gt;"
Password & lt; Input tpye="text" name="TXTPWD & gt;"

CodePudding user response:

Here the return View (); Return to the front page; The Response. The End (); On behalf of the executive to end here, so there is no return to the page

CodePudding user response:

I can't give score, don't know what's the matter, to do not tally with the total score
  •  Tags:  
  • C#
  • Related