Hello friend Generally in asp.net we write Label1.text=txtid.text; but in Mvc how we can write .
Is their we have any website we will get every thing abiut mvc
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Jiseon Lee11 reputationPosted Jun 8, 2016, 11:14 AM EDT
Hello Ghouse,
When you use a server control in asp.net classic, you can use the below sentence.
"Label1.text=txtid.text;"
But, MVC is different structure.
You can lean the mvc pattern of asp.net through below link what how do you map the backend data and the ui control.
http://www.asp.net/mvc/overview/getting-started/introduction/creating-a-connection-string
http://www.asp.net/mvc/overview/older-versions/getting-started-with-aspnet-mvc4/intro-to-aspnet-mvc-4
http://www.codeproject.com/Articles/38629/ASP-NET-MVC-or-Classic-ASP-NET-What-to-Choose
Sonu ChaudharyRank #1,045 · 1.8K reputationPosted Jun 8, 2016, 11:10 AM EDT
" id="lblLabel"/>$('#lblLabel').val()=$('#selector').val();
});
Francis SusaimichaelRank #466 · 5.4K reputationPosted Jun 8, 2016, 8:39 PM EDT
Vinay SinghRank #604 · 4K reputationPosted Jun 8, 2016, 10:22 PM EDT