A New Internet Library: Add Your Website/Blog or Suggest A Website/Blog to our Free Web Directory http://anil.myfunda.net.

Its very simple, free and SEO Friendly.
Submit Now....

Monday, December 1, 2008

Tip #18: Did you know.How to absolute position controls on copy paste or drag drop from Toolbox?

To absolute position any control on your designer, you select the control and then select the following menu option: Format  -> Position. ->Position style ->Absolute.

Sometimes you may want the controls to be absolutely positioned on the design surface as soon as you drag drop control from the tool box or as soon as you copy paste on designer.

Here is how you enable this:

Go to Tools -> Options ->HTML Designer ->CSS Styling

And check "Change positioning to absolute for controls using Toolbox, paste or drag and drop" as show below in the picture.

ToolsOptions

Now, if you switch to Design View and drag drop a button control, the designer will automatically add style="position: absolute" to the control. This control can then be dragged on the design surface by grabbing the white tab (asp:button#Button1) and placed where required.

Absolutely positioned button control with the white tab:

AbsolutelyPositionedButtonControl

Reshmi Mangalore

SDET, Web Development Tools



Source Click Here.

No comments:

Post a Comment

Post your comments here:

Originals Enjoy