Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

SOLVED: why my tempdata not working under if else condition controller side please help me

Neeraj:

when i redirect to this action using ajax Tempdata message not work if i remove the if else condition from this action tempdata work well ..i can not find the reason..why this happening please help me ....


public ActionResult Ewaybill(string Code)
{
if (Code == "Web")
{
bill.UserAPI = (clsobj.ExecuteQry("select Userweb from [dbo].[WayBillMst]"));
TempData["Message"] = bill.UserAPI;
return View();
}
else
{

}

return View();
}

and here is the view




am i doing something wrong



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
This Question have been answered
HERE


This post first appeared on Stack Solved, please read the originial post: here

Share the post

SOLVED: why my tempdata not working under if else condition controller side please help me

×

Subscribe to Stack Solved

Get updates delivered right to your inbox!

Thank you for your subscription

×