skip to main
|
skip to sidebar
Pages
Home
Distribute Code
Banner 468 x 60px
Home
ASP.NET
C#
MVC
ClientScript
DataBase
Tuesday, 4 September 2012
Get ViewBag value from javascript
<script type="text/javascript">
var roleExist = @Html.Raw(Json.Encode(Model.UserRolePropertyLevel));
var array = @Html.Raw(Json.Encode(@ViewBag.AvailablePPOList));
alert(JSON.stringify(roleExist));
</script>
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Updates Via E-Mail
Facebook
Twitter
RSS Feed
Sponsors
Link Partners
About Me
Unknown
View my complete profile
Powered by
Blogger
.
Visitors
Recent
Popular
Label
Popular Posts
DateTime formating in [C#]
This example shows how to format Date Time using String.Format method. All formatting can be done also using DateTime.ToString method...
MVC Dropdown List using Enumerator(enum)
In this post I will explain how to create a drop down list with Enumerator using MVC Rozar view. Many ways we have to do that but I wi...
Page.PreviousPage Property(How to get value of previous page control value
When you use the Server.Transfer method or use cross-page posting to transfer processing from one ASP.NET page to another Page, the origin...
MVC Razor View Get Confirm Message Before Delete
I will explain in this post how to get confirm message from user before delete record View @Html.ActionLink(...
Reverse of a string without using the Reverse function in C# and VB
This is a simple code snippet for reversing a string without using the Reverse function. For example, we have a string "He is playin...
MVC Action link with Html text.
In this post I will explain how to write MVC Action link with Html text. MVC Razor View <a href='@Url.Action("MyAction...
Create a Foreign Key relationship using Code First Entity Framework In asp.net MVC4
In this post I will explain How to create Foreign Key relationship in Entity Framework(EF). When you create a model of relation d...
Debuging MVC 4 Application
The following step guide you to debug MVC application in VS 2010 C lose all Visual Studio instances. Ensure that you are a member...
MVC Action Names & NonAction method
In MVC URLs not being case sensitive. So that for example if you have the request “Home/About” this goes to HomeController and Abou...
How to get MVC Razor view Controls ID from Java script
In this post I will explain How to get MVC Razor view controller id from JavaScript .In real time some time we need to assign value to co...
Labels
ASP.NET
C#
ClientScript
DataBase
IIS
MVC
Blog Archive
▼
2012
(25)
September
(25)
Distribute Code
© 2011
DheTemplate.com
. Supported by
PsPrint Emeryville
and
homeinbayarea.com
No comments:
Post a Comment