Answered by:
Too many Questions No answers..!! :(

Question
-
User-140528697 posted
Hi,
Again, Well im stuck again..!!! this time again its the same thing ..!!
Let me tell you all my requirement..!! Im am creating an custom control where in i use XMLHttpRequest object this object on the Javascript code calls an aspx page..!! Passing a few query strings..!!Now i want this page to be called from the javascript present in my dll..!! Which means i the js the aspx all in the dll..!! But im preety sure that we cannot add a aspx page directly to the dll..!!! But i did figure out a way..!! I added an html file and changed its extensions to aspx and implemented the Page_Load and tried calling the aspx page with the build action set to embedded resource and i try calling the page but it opens has a downloadable file..!! If i dont set it to embedded resource i get an blank page which certainly is not the aspx page causei have a lot of control s on that...!!
If its an HTMl file and i try opening it it just works fine but not an aspx ...!!! Now can soneone help me as to how can i achive this..!!! Please..!!!
Any suggestion would be really appreciated..!!
Thanks in advance
Francis P.
Tuesday, April 8, 2008 8:55 AM
Answers
-
User-1136466523 posted
Hi,
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p>The ASPX working mechanism is not that easy as you thought. In IIS, all the requests with an aspx extension will be sent to aspnet_isapi.dll to process, and finally it is handled by aspnet_wp.exe or w3wp.exe (iis5/iis6).
<o:p> </o:p>But for a resource file (determine by the MIME type and the extensions), it would not be processed by the ASPNET working thread. So, no matter if you have change the extensions from html or aspx, you cannot hope an aspx page be embedded as an assembly resource.
<o:p> </o:p>Thanks.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, April 9, 2008 9:52 PM
All replies
-
User-1136466523 posted
Hi,
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p> </o:p>The ASPX working mechanism is not that easy as you thought. In IIS, all the requests with an aspx extension will be sent to aspnet_isapi.dll to process, and finally it is handled by aspnet_wp.exe or w3wp.exe (iis5/iis6).
<o:p> </o:p>But for a resource file (determine by the MIME type and the extensions), it would not be processed by the ASPNET working thread. So, no matter if you have change the extensions from html or aspx, you cannot hope an aspx page be embedded as an assembly resource.
<o:p> </o:p>Thanks.
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, April 9, 2008 9:52 PM -
User-140528697 posted
Hi Nai,
Thank you Nai for replying to my question..!!! Ok is there any work around for that ..!! Or spliting up the logic is the only way...!!
Regards
Francis P.
Thursday, April 10, 2008 9:58 AM -
User-60428002 posted
ASPX can not be embedded in dll, i don't think there's a walkround.
Friday, April 11, 2008 5:35 AM