Help with panels..!!

G

Guest

This is the scenario: I actually started off trying to embedded a page into
another page, but landed up with the solution that I'll make a panel and
place it where I want it on the other page and pass the <% Response.WriteFile
("Welcome.aspx");%> using Panel1.Controls.Add like this..
string str = "<% Response.WriteFile (\""+"Welcome.aspx"+"\""+");"+"%>";

Panel1.Controls.Add(new LiteralControl(str));

Now the panel is not showing anything (not even the <% Response.WriteFile
("Welcome.aspx");%>)!! Please help me solve this prob.. Its kindda important
for us!!

Oh.. also please lemme know how this panel can be refreshed... thnks!!!
 
S

sreejith.ram

A Panel rendered to a DIV tag in HTML output.

when you use
string str = "<% Response.WriteFile
(\""+"Welcome.aspx"+"\""+");"+­"%>";

isnt that 'str' a client side variable ? .. i am not sure.

If the syntax is correct, the reason to see a blank panel could be that
Welcome.aspx renders the <HTML><HEAD> <BODY>. This approach may not
work. Panel cannot be refreshed.

You may need to consider IFRAME. Using IFRAME Welcome.aspx can support
the server side events too
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top