Home All Groups Group Topic Archive Search About

Copy Paste label textbox aspx code

Author
25 Apr 2005 8:11 PM
tlasher
First off, I have a huge aspx file for an application form.
The form has several fields per division item.
For example:  Basic Information
              Employment Information
              Education Information are division items.
What I need to be able to do is to copy and paste label and textbox
aspx code
from other aspx files into this huge aspx file.  But, I need to be able
to pinpoint the place when I can paste this code as this is a really
huge file
and the default place is the very top of the form.  Basically I need to
set an insertion point where I can paste this code so I don't have to
drag
all these boxes down into the appropriate place.
    Thanks for any help at all.

Author
25 Apr 2005 8:29 PM
Ken Cox [Microsoft MVP]
What about inserting <!--******* Comments *********--> in the HTML and

#Region " Region comments"
#End Region

In the code behind?

<tlas***@dmacc.edu> wrote in message
Show quoteHide quote
news:1114459916.571382.292010@l41g2000cwc.googlegroups.com...
>       First off, I have a huge aspx file for an application form.
> The form has several fields per division item.
> For example:  Basic Information
>              Employment Information
>              Education Information are division items.
> What I need to be able to do is to copy and paste label and textbox
> aspx code
> from other aspx files into this huge aspx file.  But, I need to be able
> to pinpoint the place when I can paste this code as this is a really
> huge file
> and the default place is the very top of the form.  Basically I need to
> set an insertion point where I can paste this code so I don't have to
> drag
> all these boxes down into the appropriate place.
>    Thanks for any help at all.
>
Author
25 Apr 2005 8:40 PM
tlasher
I'm not sure what you mean.

If you have the following code:
            <asp:TextBox id="dtto" style="Z-INDEX: 119; LEFT: 200px; POSITION:
absolute; TOP: 360px" runat="server"
                Height="24px" Width="152px" Font-Size="X-Small" Font-Names="Arial"
tabIndex="4"></asp:TextBox>
            <asp:Label id="Label14" style="Z-INDEX: 118; LEFT: 8px; POSITION:
absolute; TOP: 496px" runat="server"
                Height="24px" Width="144px" Font-Size="X-Small"
Font-Names="Arial">Comments:</asp:Label>

And then try to copy and paste that code from the Design View of
the aspx file into my huge file.  Then the huge file will ignore the
positioning and place everything at top covering some textboxes
that may already be there.  If I put <!--comments--> in the HTML
code - it won't do any good because after I uncomment it,  it will
still
place the textboxes at the top of the form and NOT where I want
it to be placed.
Author
26 Apr 2005 12:18 AM
Ken Cox [Microsoft MVP]
Oh, sorry. I thought you meant tracking the position in the source code, not
the rendered position.

<tlas***@dmacc.edu> wrote in message
Show quoteHide quote
news:1114461653.588949.93490@f14g2000cwb.googlegroups.com...
> I'm not sure what you mean.
>
> If you have the following code:
> <asp:TextBox id="dtto" style="Z-INDEX: 119; LEFT: 200px; POSITION:
> absolute; TOP: 360px" runat="server"
> Height="24px" Width="152px" Font-Size="X-Small" Font-Names="Arial"
> tabIndex="4"></asp:TextBox>
> <asp:Label id="Label14" style="Z-INDEX: 118; LEFT: 8px; POSITION:
> absolute; TOP: 496px" runat="server"
> Height="24px" Width="144px" Font-Size="X-Small"
> Font-Names="Arial">Comments:</asp:Label>
>
> And then try to copy and paste that code from the Design View of
> the aspx file into my huge file.  Then the huge file will ignore the
> positioning and place everything at top covering some textboxes
> that may already be there.  If I put <!--comments--> in the HTML
> code - it won't do any good because after I uncomment it,  it will
> still
> place the textboxes at the top of the form and NOT where I want
> it to be placed.
>