p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 (http://p2p.wrox.com/forumdisplay.php?f=389)
-   -   Ch 8 pg 282 Step 11 (http://p2p.wrox.com/showthread.php?t=68366)

workib May 25th, 2008 09:47 PM

Ch 8 pg 282 Step 11
 
I have a question regarding this Try It Out. When I drag over my banner control to the About us design mark up it comes over like this <a href="~/Controls/Banner.ascx">~/Controls/Banner.ascx</a> and does not allow you to add the DisplayDirection="Horizontal". The Source code uses this code <Wrox:Banner ID="Banner1" runat="server" DisplayDirection="Horizontal" />

Thank you for your help.

Brian

Imar May 26th, 2008 02:36 AM

Quote:

quote:When I drag over my banner control to the About us design mark up
This seems to contradict. It's either Design View or Markup View. not Design markup....

Dragging into Markup View won't as it'll create a standard <a> element. Instead, you need to drag the control to Design View.

Hope this helps,

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.

workib May 26th, 2008 04:17 PM

Thank you Imar that cleared up the issue. I was in source view when I dragged the banner control over. Now, I will remember to drag the controls over from design view.

Brian

Imar May 26th, 2008 04:19 PM

You're welcome.

Never really understood the behavior. It shouldn't be too hard for the IDE to detect that an .ascx was dragged in Markup View and then generate the appropriate code there.

Oh well.... ;)

Imar


---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of Beginning ASP.NET 3.5 : in C# and VB, ASP.NET 2.0 Instant Results and Dreamweaver MX 2004
Want to be my colleague? Then check out this post.


All times are GMT -4. The time now is 06:58 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.