|
 |
aspx_beginners thread: User Controls
Message #1 by "Douglas Rohm" <dlr@m...> on Thu, 23 Aug 2001 20:12:22 -0400
|
|
Hi all,
I have a question about user controls. I have a web site that I'm
trying to convert from ASP to ASPX. I'm trying to build the template
using user controls (.asmx). My old configuration used
Server.Execute's.
I have create 4 user controls, top, bottom, left, and right. I've added
references to them at the top of the page and added the tags for them
where they should go in the main page. The problem I'm having is that
when I build and browser the page there are spaces and gaps before and
after where the user control is inserted into the page. They are not
"merging" together without any space in between. When I look at the
user control in VS.NET in HTML mode, there are squiggly lines underneath
the table tag's along with other tags. When I move my mouse of the
table word, the description that shows is "Per the active schema, the
element 'table' must be included within a parent element." Any idea
what that means?
Sorry if I'm not making any sense, but these problems aren't making
sense to me either. Thanks for any input.
Douglas Rohm
dlr@m...
Message #2 by "John Godfrey" <jogod@b...> on Fri, 24 Aug 2001 09:04:11 +0100
|
|
Just a quick one, as I'm in a bit of a rush, but this may help slightly.
The squiggly lines you refer to are context error reporting. Basically,
the framework has found errors in your code and the description gives
you a bit of clue to what's going on. I haven't encountered that error,
but I'd suggest creating a table element in the same way as you have in
your asp page in a new aspx page and looking at the resulting code.
Hope this helps.
John
-----Original Message-----
From: Douglas Rohm [mailto:dlr@m...]
Sent: 24 August 2001 01:12
To: aspx_beginners
Subject: [aspx_beginners] User Controls
Hi all,
I have a question about user controls. I have a web site that I'm
trying to convert from ASP to ASPX. I'm trying to build the template
using user controls (.asmx). My old configuration used
Server.Execute's.
I have create 4 user controls, top, bottom, left, and right. I've added
references to them at the top of the page and added the tags for them
where they should go in the main page. The problem I'm having is that
when I build and browser the page there are spaces and gaps before and
after where the user control is inserted into the page. They are not
"merging" together without any space in between. When I look at the
user control in VS.NET in HTML mode, there are squiggly lines underneath
the table tag's along with other tags. When I move my mouse of the
table word, the description that shows is "Per the active schema, the
element 'table' must be included within a parent element." Any idea
what that means?
Sorry if I'm not making any sense, but these problems aren't making
sense to me either. Thanks for any input.
Douglas Rohm
dlr@m...
|
|
 |