Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have my own server written in C#, but it can't "execute"(hope it's the correct word :) ) .aspx.

When I visit aspx page, it gives:

http://i.stack.imgur.com/iUcR0.jpg[^]

But it's supposed to return this:

http://i.stack.imgur.com/dWndH.jpg[^]


I'm out of ideas...what should I do. Must server "re-render" the page? Or is it even possible to run aspx pages in other servers? or aspx only for IIS?
Posted

1 solution

Can you do it? Maybe, but its a LOT of work. You have to write your own script interpreter, to intercept the page and interpret the values in the ASPX before you send the data to the client.

What your server does is just sends the raw page to the client, which is pretty basic. You would have to expand on that when the page is requested to read the page on the server side first, then run the scripts on the page, and then send the rendered data to the client. Prepare to spend significant (year+) time on that. You have to get into state management, hosting the .NET runtime, etc.
 
Share this answer
 
Comments
atunahkur 5-Aug-13 9:55am    
But how do I make my own script interpreter. It doesn't sound like it's easy...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900