|
-
Sep 4th, 2004, 05:41 PM
#1
Thread Starter
Lively Member
web user control newbie question [resolved]
okay, what i'm doing is placing a place holder in a template page then load the called web page as a control into the place holder. my problem is that i have some pretty elaborate HTML code that a repeater kinda falls short of preforming. so i need to Response.write this HTML based on my results ( i know this goes against aspx in general) so my problem is that its getting rendered before the template page. so how would i put it into a string then pass it into the template page? i'm kinda new at this method so ask me if you need more explanation.
Last edited by NeonBurner; Sep 5th, 2004 at 01:04 PM.
-
Sep 5th, 2004, 01:23 AM
#2
PowerPoster
Although I know your design is flawed if you say that you can't get the included controls to work, I will help you anyway...just make sure I never have to maintain your code, I will be pretty mad at you...lol.
Ok, kidding aside, just place a LiteralControl in the spot you want the html placed at. Then, just set it's text property to equal the same thing you are trying to write out. The literalcontrol will display html, unlike a label control.
You can find it on your toolbox, but most times you have to scroll down for it.
Have fun...and do me a favor, try to find a better way, you shouldn't have to do it this way....most of the time, every now and then you do....but not most.
Last edited by hellswraith; Sep 5th, 2004 at 05:08 PM.
-
Sep 5th, 2004, 01:04 PM
#3
Thread Starter
Lively Member
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|