HighTechTalks DotNet Forums  

Web Custom Control Absolute positioning in VS 2008

ASP.net Building Controls microsoft.public.dotnet.framework.aspnet.buildingcontrols


Discuss Web Custom Control Absolute positioning in VS 2008 in the ASP.net Building Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
CaptnKebec
 
Posts: n/a

Default Web Custom Control Absolute positioning in VS 2008 - 11-30-2007 , 11:23 AM






Hi all,

I've built customs controls with VS 2005, now I've recompiled and use them
in the new VS 2008 but the controls no longer works as for positioning. I
can't even move them in the designer.
I've notice that the "me" object in the "render" event on the control no
longer has values for style("top") or style("left") ect. Thats what I was
using to position the control. Here's a code snippet of one of my control's
render event.

writer.AddStyleAttribute("LEFT", "100px")
writer.AddStyleAttribute("TOP", "100px")
writer.AddStyleAttribute("POSITION", "Absolute")
writer.AddStyleAttribute("Z-INDEX", Me.Style("Z-INDEX"))

FormatCtl()

writer.RenderBeginTag("div class=""HQCheckBox"" id='jsObj_" & Me.ID & "'
name='jsObj_" & Me.ID & "'")

writer.Write(("<script language=""javascript"">initChkBox('" & Me.ID &
"');</script>") & vbCr)

MyBase.RenderContents(writer)

writer.RenderEndTag()

ANY IDEAS??


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.