Loading ASPX without a browser

    Date: 07/10/07 (Asp Dot Net)    Keywords: browser, html, asp, web

    Ok, this is going to sound really weird, and it's kind of hard to explain, but is there a way to take an ASPX file, and load its contents, allowing you to use code behind, without a browser?

    Basically here is what I need to do:

    I have an AJAX enabled web page, and I need to be able to use a lot of the AJAX enabled controls like the CollapsiblePanelExtender. The thing is, speed of loading the page is paramount, and even though the final data isn't that much, the business code to massage the data is huge and actually time consuming. What I need to be able to do, is on a daily basis, have a service that generates the page, and then stores the page, with the massaged data, to the DB. Then what happens is when the "page" itself is called by a user, it goes to the DB and gets my "aspx" code, and sends that down. It can't be generated HTML. Not going to get in to "why" here.

    Basically the "aspx" page would have asp controls on it like labels, but the text itself is already saved, and there is no need for code behind to generate the data.

    It's kind of like a template in that I'd have an ASPX page that is my "template" The service would then load the page as if it was in a browser, and it would go through and set the "Text" values on the Labels, text boxes, etc. etc. based on the data from the DB, but then instead of saving the generated HTML, it would just modify the ASPX itself, and I could then save that ASPX code to the DB.

    Currently what I do is create an ASPX page, and then rename it to a text file. The labels don't have any IDs or anything, and then I just go through and replace everything as text.

    I know there has to be a better way to do this. Any ideas?

    Source: http://community.livejournal.com/aspdotnet/90433.html

« Applications in IIS || Using DotNetBar »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home