visual studio - Asp.NET code render block formatting adds whitespaces inside data-bind property -


I am using knockout.js with ASP.NET and Visual Studio (2012 but with me 2010 and 2013 The only problem is). My code looks like this:

  & lt;% @ Control language = "C #" AutoEventWireup = "true" CodeBehind = "test.ascx.cs" Inherits = "Solution.ascx. Test "& gt%; & Lt; Div & gt; & Lt; Span data-bind = "value: '& lt;% = string.opt% & gt;' '>   

Every time I paste this code or press ctrl + k, ctrl + d (Format file), I get those strange spaces after the code render block. (For visibility has been changed to XXXX in the following snippet)

   
gt; & lt; span data-bind = " Value: '& lt;% = string.opti% & gt; XXXX '">

The problem occurs only when using the" data-bound "tag.

I try to disable the "indent content" in the client> Options> Text Editor> HTML> Formatting> Tag Specific Options> HTML Tags> Duration with No Future Anyone have this solution? Not only is this annoying but the knockout is parsing those locations and throwing an exception.

This is not a problem, with the formatting of the text editor, there is a problem with this feature that is not due to the reason, VS does not like it. The internet has slipped, and I can not find any good reason.

I found, that could be your best method, someone has the exact problem in using MVC:

< P> To change data-bind to data-bound on the fly as bus (Post described) using JQuery to change and will be good to you.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -