ASP.NET Webmatrix study notes

xiaoxiao2021-03-06  43

Because it is a beginner web programming, it is not very clear for many concepts. When writing ASP web pages using VS2003.NET, you can play a web control to any location. Because VS2003.NET is too large, startup debugging is slow. See Microsoft New Web Developer ASP.NET Webmatrix. Download now. Sure enough, it is very easy to use, but find a problem, the web control cannot be arbitrarily dragged. You can only use Enter, Space, and Delete the key to move the location like editing text. I didn't figure it out for a long time. In the end, the software itself is still the problem.

Only to the 9CBS community 100 points for help, there are several brothers who have told me. It turned out to be a problem of flow layout and grid layout.

I have seen a detailed introduction on Microsoft's MSDN, which may be a small dish for some masters. It can still be very effective for my newcomer. Below is an introduction to the two layouts:

Flow layout

If PageLayout is set to flowLayout, the elements are allowed to flow from left to right in one line, flowing down from top to the page. Any web browser can display HTML documents that use the "Flow Layout". If the size of the page is adjusted, the element is sometimes repositioned.

You can locate elements within

, or locate them using the
element. However, absolute positioning properties cannot be used or overlapping the elements.

Grid layout

Set PageLayout to GridLayout to enable you to accurately place an element on the Design view. The "Show Grid" and "Netgline Line Align" button on the "Display" toolbar becomes available. After selecting "Grid Line Alignment", if the element is inserted or dragged on the "Design" view, it is automatically aligned with the nearest grid line in the insertion point. If you want to drag and drop the web control in WebMatrix, you need to add

转载请注明原文地址:https://www.9cbs.com/read-63505.html

New Post(0)
CopyRight © 2020 All Rights Reserved
Processed: 0.038, SQL: 9