Hello sir mei visual studio me 8 din se practice kar raha hu temp data oe session ko one action method se second action method me pass karne but nahi ho raha hai i am facing issue please help me
@MeerMurtaza9510 ай бұрын
sir ap pc ki speed ke liye aik video banaen men abhi mvc pr kam kr raha hn ssd ya hard drive ke bare men bataen konsa lena chahiye or ram ke bare me total aik video men bataen sir Murtaza hyd
@programentor10 ай бұрын
sure dear i will
@mann88610 ай бұрын
@@programentorsir mere comment ka reply kryn plzzzz
@mentalsheep72156 ай бұрын
Well Explained.
@mann88610 ай бұрын
Sr aik bat puchni thi , viewdata ,viewbag and tempdata to use ni hoty hon gy na q k ham agr real project pr kaam kryn gy us pr to aik view sy dusry or dusry sy teesry pr Jana prta hoga na user ko , q k user to ki c b page pr ja skta hy or agr ham tempdata b use krty hein to wo 3rd time request accept nehi krta is k liye hamy kia use krna chahiye ???? Or keep agr SB action methods k return sy pehly lagaon to sb m data save rahy ga ??? Ye plzzz ap Bataeyn gy ???
@mentalsheep72156 ай бұрын
{ TempData["msg1"] ="Palestine" ; string[] Games = { "Football", "Cricket", "Hockey" }; TempData["GameName"] = Games; return View(); } public ActionResult About() { if(TempData["msg1"] != null) { TempData["msg1"].ToString(); } TempData.Keep(); return View(); } public ActionResult Contact() { if (TempData["msg1"] != null) { TempData["msg1"].ToString(); } TempData.Keep(); return View(); } } Sub TempData.keep() Sa sub pa data save rahe gaa. Sory for late comment(:
@Sumanwork7 ай бұрын
Sir notes bhi attached kar do sath main kaam ayga 😅??