SharePoint Designer Reformatting HTML on the fly, able to disable?

穿精又带淫゛_ 提交于 2019-12-04 12:26:11

I only use SharePoint Designer when I want to see the effect of a change (e.g. to a master page) immediately, without having to retract/deploy a solution just to do so.

While it takes longer, I author all my HTML in Visual Studio, and paste into SharePoint Designer if I need to. I NEVER paste from SharePoint Designer back into Visual Studio, since the tool tends to butcher the HTML and add to it just so it can open it.

Having said that, it's important to understand when (and when not) to use SharePoint Designer. You should be creating SharePoint Solutions for all your assets, e.g. master pages and CSS files.

If you open and edit one of these in SharePoint Designer, remember that you are unghosting/customizing them. This means that the file now lives in the content database instead of on disk. This might affect the performance of your website.

Also remember that SharePoint Designer doesn't understand server side code. So if you have a Page Layout that has a code behind, editing it in SharePoint Designer will break it.

You may be able to bypass most of your use of SharePoint Designer with SharePoint Developer Explorer, and specifically the update here. I haven't tried it out but it looks like you can edit master pages and page layouts directly from within Visual Studio. Also the people that have worked on it ('The Kid' originally and Serge van den Oever with the update) know their stuff so it should be a good option for you.

The only answer is to not use SharePoint designer.

You can use Visual Studio, but you will have to upload the files using the web interface instead of having SharePoint Designer do it.

Serge van den Oever

As Alex already pointed out, I'm working hard on a project called SharePoint Developer Explorer initiated by 'The Kid'. It is a Visual Studio Add-in for editing files that live in SharePoint. I did a lot of bugfixing and enhancements on the original project. See my weblog for details on changes and where to get the latest version.

Because an image says more than a thousand words:

This is, I think, the interminable problem with using tools to generate HTML - you are at the mercy of what they generate. I realize that this is a non-answer, but...

The sad thing is that I am rewriting this completely from scratch and it still does this. I dont even have to switch back to design view for the markup to change, this was the trigger in the previous VS instances.

You're either all in to gui based design, or you're completely into editing all the code by hand. There is no inbetween for microsoft development products, it from my experience. The code editor in sharepoint designer is insufferable.

It is possible, I suppose, if you're a masochist, to just use a text editor like scite, notepad++, emacs, vi, or whatever, and code a sharepoint site entirely by hand. I've done it. I can't say it's pleasant, but it's no worse than using sharepoint designer.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!