none
ASP.NET MVC Page Loading Sequence RRS feed

  • Question

  • Dear Experts,

    Assume the page lifecycle defined in web forms like the pre-initialize, pre-load, load, render.

    How can one access the finished DOM and markup in a ASP.NET MVC environment?
    What I want to get access to is <!doctype html><html>...</html>.  Preferably right before the page renders in browser.

    Namespaces and references are welcome 

    Thanks

     

    Tuesday, April 24, 2018 3:00 PM

All replies

  • Hi,

    Can you please elaborate little more on what is the requirement to access DOM?

    In MVC, Controller populate the View(Razor) file with Model(Data) and sends it to client.

    So 'View' has all the HTML/DOM and since it is a RAZOR file, it accepts C# syntax and Helper methods which you can manipulate before rendering.

    If you give exact requirement, I can probably give you more detail.

    Thanks,

    Nitin

    Tuesday, April 24, 2018 8:14 PM
  • Hi Jim Apple Marry Empty Stomach,

    Thank you for posting here.

    For your question is more related to MVC, you could post a new thread in MVC forum for suitable support.

    The CLR Forum discuss and ask questions about .NET Framework Base Classes (BCL) such as Collections, I/O, Regigistry, Globalization, Reflection. Also discuss all the other Microsoft libraries that are built on or extend the .NET Framework, including Managed Extensibility Framework (MEF), Charting Controls, CardSpace, Windows Identity Foundation (WIF), Point of Sale (POS), Transactions.

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Wednesday, April 25, 2018 7:54 AM
  • I was able to multi-process and store the output in memory for future sessions and enable capability to view session data at a later time with all you've given me.

    One post one response.  

    Thursday, April 26, 2018 1:29 AM