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 link aspx.cs with aspx in vs.net

how to link aspx.cs with aspx in vs.net

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netvisual-studiotutorial
5 Posts 2 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.
  • U Offline
    U Offline
    uowzd01
    wrote on last edited by
    #1

    I was writing a small asp.net application with vs.net, after I finish the aspx file, I double clicked a button in aspx file, it poped out the aspx.cs file. I built the project and it functioned very well, but in solution Explorer I can not find the aspx.cs file, I know it should link to aspx file, can someone please give me some hints, thanks in advance.

    M 1 Reply Last reply
    0
    • U uowzd01

      I was writing a small asp.net application with vs.net, after I finish the aspx file, I double clicked a button in aspx file, it poped out the aspx.cs file. I built the project and it functioned very well, but in solution Explorer I can not find the aspx.cs file, I know it should link to aspx file, can someone please give me some hints, thanks in advance.

      M Offline
      M Offline
      minhpc_bk
      wrote on last edited by
      #2

      You can see the CodeFile attribute of the Page[^] directive.

      U 1 Reply Last reply
      0
      • M minhpc_bk

        You can see the CodeFile attribute of the Page[^] directive.

        U Offline
        U Offline
        uowzd01
        wrote on last edited by
        #3

        Thank you. do you mean the page directive in aspx file html code, it already specify the c# file, as below <%@ Page language="c#" Codebehind="login.aspx.cs" AutoEventWireup="false" Inherits="dsscopy.login" %> but its just not in the Solution Explorer, which is annoying when i try to open the c# file cause its not there.

        M 1 Reply Last reply
        0
        • U uowzd01

          Thank you. do you mean the page directive in aspx file html code, it already specify the c# file, as below <%@ Page language="c#" Codebehind="login.aspx.cs" AutoEventWireup="false" Inherits="dsscopy.login" %> but its just not in the Solution Explorer, which is annoying when i try to open the c# file cause its not there.

          M Offline
          M Offline
          minhpc_bk
          wrote on last edited by
          #4

          Are you using VS 2005 or 2003? Can you try to select the Show All Files menu item from the main menu Project and see if the source file is displayed?

          U 1 Reply Last reply
          0
          • M minhpc_bk

            Are you using VS 2005 or 2003? Can you try to select the Show All Files menu item from the main menu Project and see if the source file is displayed?

            U Offline
            U Offline
            uowzd01
            wrote on last edited by
            #5

            Thank you so much for your help, problem solved. Regrads!

            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