Bài đăng

Đang hiển thị bài đăng từ Tháng 7, 2015

Visual Studio 2013, ASP.NET MVC 5 Scaffolded Controls, and Bootstrap theo http://weblogs.asp.net/

Hình ảnh
A few days ago, I created an ASP.NET MVC 5 project in the brand new Visual Studio 2013. I added some model classes and then proceeded to scaffold a controller class and views using the Entity Framework. Scaffolding Some Views Visual Studio 2013, by default, uses the  Bootstrap 3  responsive CSS framework. Great; after all, we all want our web sites to be responsive and work well on mobile devices. Here’s an example of a scaffolded Create view as shown in Google Chrome browser Looks pretty good. Okay, so let’s increase the width of the Title, Description, Address, and Date/Time textboxes. And decrease the width of the  State and MaxActors textbox controls. Can’t be that hard… Digging Into the Code Let’s take a look at the scaffolded Create.cshtml file. Here’s a snippet of code behind the Create view. Pretty simple stuff. @ using (Html.BeginForm()) { @Html.AntiForgeryToken() <div class = "form-horizontal" > <h4>RandomAct</

Visual Studio 2015 and .NET 4.6 Available for Download theo http://blogs.msdn.com/

Hình ảnh
Today, I am excited to announce that Visual Studio 2015 and .Net 4.6 are  available for download !  These releases are the next big step in the journey we outlined  last November  to bring the productivity of Visual Studio and .NET to any developer working on any kind of application while also delivering a new level of innovation in developer productivity for all Visual Studio developers. To celebrate today’s releases, you can join us online for the  Visual Studio 2015 Release Event ,  check out 60+ on-demand feature videos  or just dive right in and  download Visual Studio 2015 now . The Visual Studio Family Over the last few years, the Visual Studio family has expanded to be broader than ever before.  And the reception from developers has been great to see. At the core is the  Visual Studio IDE  that millions of developers around the world love and use day-in and day-out to build great applications.  Last year, we introduced  Visual Studio Community  - a fully-featured Vis

Reating Intrinsic Ratios for Video theo http://alistapart.com/article/creating-intrinsic-ratios-for-video

Hình ảnh
Did you ever want to resize a video  on the fly , scaling it as you would an image? Using intrinsic ratios for video, you can. This technique allows browsers to determine video dimensions based on the width of their containing block. 24 comments Share this on Get a great domain name for your great idea at  Hover.com Ad via The Deck JOB BOARD Spiffy is looking for a Go Developer. Job listings via  We Work Remotely With intrinsic dimensions, a new width triggers a new height calculation, allowing videos to resize and giving them the ability to scale the same way images do. See example one . The concept The idea is to create a box with the proper ratio (4:3, 16:9, etc.), then make the video inside that box stretch to fit the dimensions of the box. It’s that simple. The trick The  padding  property is the magic that styles a box with an  intrinsic ratio . This is because we’ll set padding in a  percentage , based on the  width  of the containing block. T