Hi,
I am trying to design some part of aspx page in cs file. Suppose if aspx page is like -
--------------------------------------------------------------------------------------
<div>
<img id="imgLogo1" alt="" runat="server" style="width: 70px;" />
</div>
--------------------------------------------------------------------------------------
I want to do this code in cs page like -
--------------------------------------------------------------------------------------
string strBody = "<div>";
strBody += "<img id='imgLogo1' alt='' runat='server' style='width: 70px;' />";
strBody += "<div>";
--------------------------------------------------------------------------------------
Now this strBody, I will use in my aspx design page, but the question is how can I access "imgLogo1" in my code file.
If it is define in aspx page, then it would be simple, but I have to define in cs page only.
So can anybody help me, how can I access any id which is runat server but define in cs page.
Thanks in advance.