Maximizing.ASP.dot.NET.Real.World.ObjectOriented.Development [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Maximizing.ASP.dot.NET.Real.World.ObjectOriented.Development [Electronic resources] - نسخه متنی

Jeffrey Putz

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید






Pitfalls of the Designer


The Web form designer in versions 2002 and 2003 isn't entirely broken, but it can be a serious pain to work with. The aforementioned event wire up is an issue, though it is by design most of the time. There were other issues where the designer would lose wire ups.

More serious is the synchronization between the page and the code-behind file. When you drag and drop a control on the page in design view, a reference is added in the code-behind file. However, if you manually type in a control in the HTML view, that reference is not created until you switch back to design view. This in turn will likely destroy whatever formatting you had in the HTML.

If you want to generate that reference in code-behind, you can switch to design and then back to HTML. To undo the format mangling, click the undo button two or three times, and this will get your formatting back.

Visual Studio 2005 doesn't suffer from these issues. Because partial classes work without references, you don't need to worry about this synchronization. Your HTML formatting is also preserved.


/ 146