Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. HOw to organize My ASP website

HOw to organize My ASP website

Scheduled Pinned Locked Moved ASP.NET
csharphelpvisual-studiotutorial
8 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hmanhha
    wrote on last edited by
    #1

    Hi all. I Use a Visual Studio then File -> New -> Website (Using C# code) In the Solution Explore I creat many folder. MasterPage Folder to hold all MasterPage. Images Folder to hold all Images UserControl folder to hold all page related to User such as Login, Registration..... And the problem is that how to display images in the masterpage,...... Please help me.

    F A H 5 Replies Last reply
    0
    • H hmanhha

      Hi all. I Use a Visual Studio then File -> New -> Website (Using C# code) In the Solution Explore I creat many folder. MasterPage Folder to hold all MasterPage. Images Folder to hold all Images UserControl folder to hold all page related to User such as Login, Registration..... And the problem is that how to display images in the masterpage,...... Please help me.

      F Offline
      F Offline
      F ES Sitecore
      wrote on last edited by
      #2

      <asp:Image runat="server" ImageUrl="~/images/myimage.jpg" />

      1 Reply Last reply
      0
      • H hmanhha

        Hi all. I Use a Visual Studio then File -> New -> Website (Using C# code) In the Solution Explore I creat many folder. MasterPage Folder to hold all MasterPage. Images Folder to hold all Images UserControl folder to hold all page related to User such as Login, Registration..... And the problem is that how to display images in the masterpage,...... Please help me.

        A Offline
        A Offline
        aarif moh shaikh
        wrote on last edited by
        #3

        <asp:Image runat="server" ImageUrl="~/images/imagename.jpg" />

        or if you using html element then use

        H 1 Reply Last reply
        0
        • A aarif moh shaikh

          <asp:Image runat="server" ImageUrl="~/images/imagename.jpg" />

          or if you using html element then use

          H Offline
          H Offline
          hmanhha
          wrote on last edited by
          #4

          it is not work if I have 2 master page in the MasterPage folder,

          P 1 Reply Last reply
          0
          • H hmanhha

            it is not work if I have 2 master page in the MasterPage folder,

            P Offline
            P Offline
            Parveen Siwach
            wrote on last edited by
            #5

            you can use this:

            <asp:Image ID="Image2" runat="server" ImageUrl="/Images/admin.png" />

            <asp:Image ID="Image1" runat="server" ImageUrl="/Images/commentBg.png" />

            1 Reply Last reply
            0
            • H hmanhha

              Hi all. I Use a Visual Studio then File -> New -> Website (Using C# code) In the Solution Explore I creat many folder. MasterPage Folder to hold all MasterPage. Images Folder to hold all Images UserControl folder to hold all page related to User such as Login, Registration..... And the problem is that how to display images in the masterpage,...... Please help me.

              A Offline
              A Offline
              aarif moh shaikh
              wrote on last edited by
              #6

              If your master pages is in MasterPage folder than try this..

              <asp:Image runat="server" ImageUrl="../images/imagename.jpg" />

              1 Reply Last reply
              0
              • H hmanhha

                Hi all. I Use a Visual Studio then File -> New -> Website (Using C# code) In the Solution Explore I creat many folder. MasterPage Folder to hold all MasterPage. Images Folder to hold all Images UserControl folder to hold all page related to User such as Login, Registration..... And the problem is that how to display images in the masterpage,...... Please help me.

                H Offline
                H Offline
                hmanhha
                wrote on last edited by
                #7

                Can anybody tell me detail about different betwwee ../imgages/myimgage1.png and ~/images/myimgme1.png Because now all my images is put in Images folder At the local is ok but if someone out site access my website the image is not show. Thanks

                1 Reply Last reply
                0
                • H hmanhha

                  Hi all. I Use a Visual Studio then File -> New -> Website (Using C# code) In the Solution Explore I creat many folder. MasterPage Folder to hold all MasterPage. Images Folder to hold all Images UserControl folder to hold all page related to User such as Login, Registration..... And the problem is that how to display images in the masterpage,...... Please help me.

                  H Offline
                  H Offline
                  hmanhha
                  wrote on last edited by
                  #8

                  Please help me. I Upload My Website to http://www.mediafire.com/download/201nlx1a7fuhdwb/RNOC\_2016\_03\_24.rar Inthis I have too masterpages, Insite for pages if you have logged in and outsite for others.These masterpage is at root.And Insite.master is the copy of outsite.master added something in menu. The Problem is Default.aspx use outsite.master can show the picture.But Home.aspx use Insite.master can't show the pictures. Please help me Why? Outsite.master and Insite.master is almost the same. Home.aspx and default.aspx is at the same folder and.

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • Categories
                  • Recent
                  • Tags
                  • Popular
                  • World
                  • Users
                  • Groups