ofek cohany

ofek cohany

  • NA
  • 8
  • 0

loading ascx using AJAX

Nov 28 2007 3:55 AM

Hello,
I've been trying, for the last 3 days, to load an ASCX file, using AJAX, unsuccessfully.

I do as follows:
1. I have an ASPX page that use a javascript function to call a web page.
2. The webpage loads an ASCX page to itself (I tried it with a panel, div etc.)
3. The webpage now suppose to render the ASCX and send back the html it creates, but it fails! It says that there are server controls that need to be in a form runat=server tag....

Now....

1. it worked in Visual Studio 2003 and doesn't work now (VS2005) - VERY ANNOYING!!!!!

2. I tried it without the AJAX part, i.e. load an ascx page programmatically and try to render it, and it doesn't work either!!!!

3. I tried it in so many other ways.....

THE QUESTION: What an I doing wrong? Is there a way to solve this thing? A work around???

All I want for Christmas... is to be able to load an ASCX and render it...

Any help will be highly appreciated!!!

Ofek Cohany

 


--
Best Regards,

Ofek Cohany
Web Developer


Answers (1)