neodatatype Posted August 19, 2003 Posted August 19, 2003 (edited) Hi all I have a page .aspx with this structure: <mycontrol_for_head> <mycontrol_for_title> <body> <mycontrol_for_foot> And here is all ok. Now, I need to insert some "code" into body making it "dynamic". This was simple in ASP: it let you mix body html and asp code. With asp.net there is something that don't work. I think "well, I do another usercontrol to place into the page body", but this seems to be compiled and placed on the top of the page. I think this is due to the Response.Write("MyOutput") method I use to "create" my control. There is a way to put some code into a usercontrol and make it appear where i put it? Thanx Edited August 20, 2003 by neodatatype Quote > NeoDataType.net < Try my Free .Net Reporting Tool!
Moderators Robby Posted August 20, 2003 Moderators Posted August 20, 2003 You shouldn't be using Response.Write(), use RenderControls instead. Quote Visit...Bassic Software
neodatatype Posted August 20, 2003 Author Posted August 20, 2003 You shouldn't be using Response.Write(), use RenderControls instead. I thank you, was that! I solved just putting in my control protected override void Render(HtmlTextWriter output){ output.Write(my_rendered_control); } Quote > NeoDataType.net < Try my Free .Net Reporting Tool!
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.