You must Sign In to post a response.
  • Category: ASP.Net MVC

    Please convert @ViewBag.Name to asp.net mvc

    please convert @ViewBag.Name to asp.net mvc..................................................................
  • #762040
    Hello sp,

    This is not the way to asking the question and posting the threads.

    While posting the thread you should describe your query in depth and give proper title to your query.

    So that contributors can understand your query and your requirement that you want to do exactly.

    Describe your query by editing this thread or post a response on this thread only. Do not post another thread for same question.

    Hope you understand.

    Regards,
    Nirav Lalan
    DNS Gold Member
    "Failure is the path of least persistence"

  • #762041
    Hi

    What is your Question? can you explain more.

    @ViewBag.Name to asp.net mvc

    Did you expect razor to aspx view means

    you can assigned and use Session object


    Session["Name"]="DNSDEVELOPER";

    Name : Dotnet Developer-2015
    Email Id :kumaraspcode2009@gmail.com

    'Not by might nor by power, but by my Spirit,' says the LORD Almighty.

  • #762045
    Hi sp,

    Please provide the full picture of your requirement, then only people understand the thread and they share their knowledge based on your post.

    Hope you understood..

    --------------------------------------------------------------------------------
    Give respect to your work, Instead of trying to impress your boss.

    N@veen
    Blog : http://naveens-dotnet.blogspot.in/

  • #762070
    Hi

    To which you want to convert @ViewBag.Name?
    To json you can do like @Json.Encode(ViewBag.Name)

    To string ViewBag.Name=somename.ToString();

    Post sample code.

    Regards

    Sridhar Thota.

    Sridhar Thota.
    Editor: DNS Forum.


Sign In to post your comments