response write into div

Hi experts

I have a webpage where i do this:

<body style="background-color: #D2DADC" onload="runscripts()">
    <form id="form1" runat="server">
    <!-- #Include File="topdesign.aspx" -->
    <div class="divtekstbody" id="mainarea">
    <!-- #Include File="bunddesign.aspx" -->

the include files contains my general design, and it works like a charm. But on the server side i try to do this:
Response.Write("<a href='pictures.aspx?lag=" + strfolderlink + "'>" + arrfolders[u].ToString() + " / " + "</a>");
and that works as well, but, but the response write function are placing my code before <!-- #Include File="topdesign.aspx" --> and i want the code between my include file topdesign and bunddesign. Then i was thinking if you could make the response write to place the code inside a DIV?

Can some one help me with a solution?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hi, you can create a custom control place it in there wherever you want,  handle its render event, use the html writer object to write first the <div> tag and then write your stuff in it again using the writer object and close the div tag again by letting writer write '</div>' at the end.

DCRAPACCESSAuthor Commented:
Sorry i don't really understand your answer, can you write an example?
DCRAPACCESSAuthor Commented:
Stupid me, I just need to add runat="server" to my div :-)

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DCRAPACCESSAuthor Commented:
sorry for the trouble!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.