Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > WebControl and height?

Reply
Thread Tools

WebControl and height?

 
 
Rocky Moore
Guest
Posts: n/a
 
      07-21-2003
I have a WebControl that I have built which simply creates a DIV and applies
the Style or Class to it. Simple. In the Designer however, it does not
appear with any height to speek of if it is set to 100%, however in the
browser it looks fine. I thought it might be a problem rendering the DIV in
the designer so I switched to a table and got the same results. I tried it
with an embedded 1 pixel graphic at 100% and same result. Get in the
browser but the designer shows the control about 10-12 pixels high.

Any ideas?


 
Reply With Quote
 
 
 
 
John Saunders
Guest
Posts: n/a
 
      07-21-2003
Rocky, you may want to read the discussion "Control Lifetime Radically
Different in Design Mode - Documented?" started on 19-Jul-2003. In
particular, where are you setting the style?

John Saunders


"Rocky Moore" <> wrote in message
news:...
> I have a WebControl that I have built which simply creates a DIV and

applies
> the Style or Class to it. Simple. In the Designer however, it does not
> appear with any height to speek of if it is set to 100%, however in the
> browser it looks fine. I thought it might be a problem rendering the DIV

in
> the designer so I switched to a table and got the same results. I tried

it
> with an embedded 1 pixel graphic at 100% and same result. Get in the
> browser but the designer shows the control about 10-12 pixels high.
>
> Any ideas?
>
>



 
Reply With Quote
 
 
 
 
Rocky Moore
Guest
Posts: n/a
 
      07-22-2003
I use the RenderBeginTag("Div") / RenderEndTag() which included the Style
that was set (if any) for the control. It generates proper code for the
HTML in a browser but the designer loses it if I use a Height=100%.
Width=100% looks correct, but Height does not effect it at all. Exact sized
work fine also, it is just the 100% that blows. Figured it is just a bug in
the editor, but was looking to see if anyone else ran into the problem and
had some method around it.

Rocky


"John Saunders" <> wrote in message
news:...
> Rocky, you may want to read the discussion "Control Lifetime Radically
> Different in Design Mode - Documented?" started on 19-Jul-2003. In
> particular, where are you setting the style?
>
> John Saunders
>
>
> "Rocky Moore" <> wrote in message
> news:...
> > I have a WebControl that I have built which simply creates a DIV and

> applies
> > the Style or Class to it. Simple. In the Designer however, it does not
> > appear with any height to speek of if it is set to 100%, however in the
> > browser it looks fine. I thought it might be a problem rendering the

DIV
> in
> > the designer so I switched to a table and got the same results. I tried

> it
> > with an embedded 1 pixel graphic at 100% and same result. Get in the
> > browser but the designer shows the control about 10-12 pixels high.
> >
> > Any ideas?
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom webcontrol that references another webcontrol Fabricio ASP .Net Building Controls 0 09-21-2005 02:55 AM
Trapping an Exception ocurring in a Webcontrol at the Page or parent WebControl level. ASP .Net 2 01-31-2005 06:34 PM
WebControl inside of WebControl and attaching events Kasabaarde Sumta ASP .Net Building Controls 0 12-13-2004 09:51 PM
WebControl with non-WebControl property Peter Morris [Air Software Ltd] ASP .Net Web Controls 1 12-07-2004 12:25 PM
Can a webcontrol (webcontrol.dll) have a configuration file? Luis Ramírez. ASP .Net Building Controls 2 07-06-2004 04:35 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57