A
Ahmed M. El-Moghazy
Hi,
I have a text file "Controls_Page.txr" contains the
following:
<asp:Label id="Label1" style="Z-INDEX: 103; LEFT: 32px;
POSITION: absolute; TOP: 28px" runat="server"
Width="100px" Height="15px">Conn. String:</asp:Label>
<asp:TextBox id="TextBox1" style="Z-INDEX: 100; LEFT:
133px; POSITION: absolute; TOP: 25px" runat="server"
Width="344px" Height="22px"></asp:TextBox>
In my ASPX page in Page_Load event, I open the above file
and read line by line and use Response.write the read
line,
When I run the page I can't see any controls, when I
choose to view source in the browser I get this:
<asp:Label id="Label1" style="Z-INDEX: 103; LEFT: 32px;
POSITION: absolute; TOP: 28px" runat="server"
Width="100px" Height="15px">Conn. String:</asp:Label>
<asp:TextBox id="TextBox1" style="Z-INDEX: 100; LEFT:
133px; POSITION: absolute; TOP: 25px" runat="server"
Width="344px" Height="22px"></asp:TextBox>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML>
<HEAD>
.............................................
What can I do to display the controls from txt files in
my page?
Regards,
Ahmed M. Elmoghazy
Senior Web Developer
I have a text file "Controls_Page.txr" contains the
following:
<asp:Label id="Label1" style="Z-INDEX: 103; LEFT: 32px;
POSITION: absolute; TOP: 28px" runat="server"
Width="100px" Height="15px">Conn. String:</asp:Label>
<asp:TextBox id="TextBox1" style="Z-INDEX: 100; LEFT:
133px; POSITION: absolute; TOP: 25px" runat="server"
Width="344px" Height="22px"></asp:TextBox>
In my ASPX page in Page_Load event, I open the above file
and read line by line and use Response.write the read
line,
When I run the page I can't see any controls, when I
choose to view source in the browser I get this:
<asp:Label id="Label1" style="Z-INDEX: 103; LEFT: 32px;
POSITION: absolute; TOP: 28px" runat="server"
Width="100px" Height="15px">Conn. String:</asp:Label>
<asp:TextBox id="TextBox1" style="Z-INDEX: 100; LEFT:
133px; POSITION: absolute; TOP: 25px" runat="server"
Width="344px" Height="22px"></asp:TextBox>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML>
<HEAD>
.............................................
What can I do to display the controls from txt files in
my page?
Regards,
Ahmed M. Elmoghazy
Senior Web Developer