Skip to main content

@Scripts.Render("~/bundles/jqueryval")


if you are using kendo UI web for asp.net MVC and you are getting the error when you are click on create new.






just hide/remove the code from create & Edit razor view of your controller


 @section Scripts {  
   @Scripts.Render("~/bundles/jqueryval")  
 }  


*Now This problem is resolve in VS 2013

Comments

  1. After having read heaps of other blogs an tried a many suggestions without any luck, finally I stumble upon your blog. Tried your suggestion, and everything simply works....!
    Great!
    Two things remaining:
    1. a big hand for you for this excellent suggestion!
    2. What will be the penalty? Or: why was this code there in the first place?

    ReplyDelete
  2. Thank you Peter Klein.
    Till Now i have no problem.
    Hope their is no penalty option.
    if you have any let me know.

    ReplyDelete
  3. I already reached this conclusion, no one "as far I find" told me:

    1) what this "~/bundles/jqueryval" do
    2) why its so needed
    3) why its implemented in every CREATE & EDIT page
    4) what could happen if I remove it

    So I reached my own conclusion, I just need confirmation.

    "~/bundles/jqueryval" Avoid the multiple requests from a single user in short periods of time.

    How its work?

    I assume that the application assign some kind of validation's code so its only send 1 request, regardless of how many times the request has been asked, and that validation's code just change after the request were sent.

    what could happen if this code is removed?

    Maybe in short scales nothing could happen, but with massive amount of users accessing 1 server at the same time, clicking multiple times a link that doesn't respond at the speed that they expect that its should work (just like some people do), could cause that the server's accessibility drop the user's access (all of them) and crash the server to save-self all its can (just like when your power supply shut down when it overheated).

    Sources?

    None. This is just an assumption based on what I have read around the web, I need confirmation. All I know is that if this code is here, then its should have (or had) an useful use, which one is? I don't know, but ignore it is not a solution

    By the way, I never delete, I corned it as Comment, until be 100% sure that its unuseful

    ReplyDelete
  4. Thank you for your wonderful feedback.

    The Microsoft.Web.Optimization package is now obsolete.

    http://stackoverflow.com/questions/9475893/how-to-add-reference-to-system-web-optimization-for-mvc-3-converted-to-4-app

    If Anyone want to manage it then he/she may can get direction from

    http://www.kendoui.com/forums/mvc/general-discussions/vs2012-rtm-mvc4-kendo-bundle-not-rendering.aspx

    But i think it's better to hide the error code.

    Thank you.


    ReplyDelete
  5. I removed the code and the error disappeared, but validation (date annotation) client side crashed.

    ReplyDelete

  6. currently i have done 3 application using kendo ui web. i didn't get any error on client side.

    Just removing the code
    "validation (date annotation) client side crashed."
    it will clear to me if you please share your code.

    on the other side

    The Microsoft.Web.Optimization package is now obsolete.

    http://stackoverflow.com/questions/9475893/how-to-add-reference-to-system-web-optimization-for-mvc-3-converted-to-4-app



    ReplyDelete

Post a Comment

Popular posts from this blog

C# run powershell script as administrator

Recently I was fetching a problem that I need to run a PowerShell script that will change TFS user Display name and SID. I was trying to run that script from C# that was not working due to TFS security update and TLS certificate. Using this code block I resolve the Issue. var newProcessInfo = new System.Diagnostics.ProcessStartInfo(); newProcessInfo.FileName = @"C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe"; newProcessInfo.Verb = "runas"; // Define Run as administrator newProcessInfo.Arguments = script; //Define your powershell script newProcessInfo.UseShellExecute = false; newProcessInfo.RedirectStandardOutput = true; // This will enable to read Powershell run output newProcessInfo.RedirectStandardError = true; Process proces = System.Diagnostics.Process.Start(newProcessInfo); proces.WaitForExit(); // I want to read the output string from powershell window StringBuilder output = new StringBuilder(); output.Append("Started"); while (!proces.St

ASP.NET MVC razor SAP Crystal report

Crete a new project: Add a aspx Master Page Create a new folder Reports and 2 sub folder crystal & crystalviewer Now add a web form page in crystalviewer  folder. Add the master page namespace in your web form page. MasterPageFile ="~/Views/Shared/ReportSite.Master" Replace your web form by this code < asp : Content ID ="Content1" ContentPlaceHolderID ="ContentPlaceHolder1" runat ="server">      </ asp : Content > Now go to design mode of your web form drag & drop the crystal report viewer in your web form. After that your page will be look look like this. Replace the code: < CR : CrystalReportViewer ID ="EmployeeList" runat ="server"   HasCrystalLogo ="False"     AutoDataBind ="True"   Height ="50px"   EnableParameterPrompt ="false" EnableDatabaseLogonPrompt

mvc razor textboxfor change event change another textboxfor value

Based on value of Weight, Rate , CNF & AWB it will change the value of Freight , TTLCNF anfd TTLFright . Freight= Weight*Rate; TTLCNF  = Weight*CNF; TTLFright=  Freight+ TTLCNF  + AWB; @Html.TextBoxFor(model => model.Weight, new { onChange="return GetWight(this);"}) @Html.TextBoxFor(model => model.Rate, new { onChange="return GetWight(this);"})/Kg @Html.TextBoxFor(model => model.Freight, new {disabled = "disabled" , @readonly = "readonly" ,onChange="return GetTTLFright(this);"}) @Html.TextBoxFor(model => model.CNFPK, new { onChange="return GetCNFPK(this);"}) @Html.TextBoxFor(model => model.TTLCNF, new {disabled = "disabled" , @readonly = "readonly",onChange="return GetTTLFright(this);" }) @Html.TextBoxFor(model => model.AWB, new { onChange="return GetTTLFright(this);"}) and script <script> function GetW