locked
Default aspx cs RRS feed

  • Question

  • User-605499000 posted

    I am trying to see my site master page and I am getting stopped in default cs.  Below is the problem

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Web;
    using System.Web.UI;
    using System.Web.UI.WebControls;

    namespace bumples18
    {
    public partial class _default : System.Web.UIPage
    {
    protected void Page_Load(object sender, EventArgs e)

    }

    I am being told to use void  at the end and that doesn't work.  My old site had me using Base Page and I can't use that because I am going to change names like register on that page.

    All I want to do is see my site master to see what the page will look like.

    Hope someone can help me.

    Jen

    Friday, September 28, 2018 8:15 PM

Answers

  • User-605499000 posted

    Thank you very much. I was able to see the page and I had made some mistakes which I have fixed.  also thanks for getting back so fast.

    I have an old site that I have to change so I can see it in tablets and phones and this has proven to be a difficult task.

    Thanks

    Jen

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, September 28, 2018 9:39 PM

All replies

  • User475983607 posted

    The problem you are trying to solve is not clear. 

    If you are trying to see the layout, right click the code behind and select "View Designer".  Select the "Source" view to see the markup or click the markup page in solution explorer. Once you can see the markup, loop at the page directive, the first line and find the master page name and path.  Then just find the master page in solution explorer and open the file.

    If you are trying to view the master page in your browser simply create a blank web form that uses the master.  It is not possible to open only a master page in the browser.

    Friday, September 28, 2018 8:35 PM
  • User-605499000 posted

    Thank you very much. I was able to see the page and I had made some mistakes which I have fixed.  also thanks for getting back so fast.

    I have an old site that I have to change so I can see it in tablets and phones and this has proven to be a difficult task.

    Thanks

    Jen

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, September 28, 2018 9:39 PM