简体   繁体   中英

Unable to drag and drop or edit toolbox elements in Visual Studio Community Edition 2022 for ASP.NET Web Forms (C#) in Designer View

I have followed the approximate steps of this video in an attempt to create an ASP.NET Web Form.

Inside the video, the programmer was able to directly edit text within the designer view, as well as right click to edit elements.

However, while trying to recreate these steps in Visual Studio Community Edition 2022, I am unable to do so, only being able to manually type in the html file. The following image is the designer view for a newly created blank web form component: 新 Web 表单组件的设计视图

Has the old method of drag and drop been deprecated, or have I missed a crucial step?

Update: I was able to solve the issue by going to Tools > Options > Web Forms Designer, select the "Legacy Web Forms Designer" Options, and restart Visual Studio

在此处输入图像描述

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM