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. command line

command line

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netvisual-studiohelptutorial
3 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.
  • M Offline
    M Offline
    Mr Wonderful
    wrote on last edited by
    #1

    Hi, I nedd to pass value between tow Asp.net pages, so I search in the internet, then I found MSDN Example, the Note has been written: Note : To make the class declared in the sending Web Forms page available in the code-behind file of the receiving Web Forms page, you must manually compile the code-behind files of each Web Forms page, using the command line compiler, into a single .dll file. The .dll file must be placed in the \Bin directory of the Web Forms application. The handler object is then converted to an instance of the class encapsulating the passed information. Once the conversion is performed, the passed values can be accessed through the properties of the converted object. ... So I used command windows in Visual Studio 2005 to do this step but it doesn't work ! so any suggestions, or some help by the way, I have two web pages, the first called FirstPage.aspx and the second called SecondPage.aspx need to pass value from textbox. Regards Mr.Wonderful

    P 1 Reply Last reply
    0
    • M Mr Wonderful

      Hi, I nedd to pass value between tow Asp.net pages, so I search in the internet, then I found MSDN Example, the Note has been written: Note : To make the class declared in the sending Web Forms page available in the code-behind file of the receiving Web Forms page, you must manually compile the code-behind files of each Web Forms page, using the command line compiler, into a single .dll file. The .dll file must be placed in the \Bin directory of the Web Forms application. The handler object is then converted to an instance of the class encapsulating the passed information. Once the conversion is performed, the passed values can be accessed through the properties of the converted object. ... So I used command windows in Visual Studio 2005 to do this step but it doesn't work ! so any suggestions, or some help by the way, I have two web pages, the first called FirstPage.aspx and the second called SecondPage.aspx need to pass value from textbox. Regards Mr.Wonderful

      P Offline
      P Offline
      pmarfleet
      wrote on last edited by
      #2

      This note refers to the compilation of classes that reside in the code-behind files for ASP.NET web applications. Typically this is done automatically by Visual Studio when you click 'Build' in the IDE. It has nothing to do with passing values between web pages however. This can be achieved by encoding the values as querystring variables and adding them to the request URL. Alternatively, you could use cross-page postbacks[^].

      Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

      M 1 Reply Last reply
      0
      • P pmarfleet

        This note refers to the compilation of classes that reside in the code-behind files for ASP.NET web applications. Typically this is done automatically by Visual Studio when you click 'Build' in the IDE. It has nothing to do with passing values between web pages however. This can be achieved by encoding the values as querystring variables and adding them to the request URL. Alternatively, you could use cross-page postbacks[^].

        Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush

        M Offline
        M Offline
        Mr Wonderful
        wrote on last edited by
        #3

        Hi, As I understanding from the Note: I must manually convert the two web pages to (.dll) files to allow value passing from FirstPage.aspx to SecondPage.aspx, but Unfortunately there is no bin folder contains (.dll) files created automatically whene I build the project, so I have to do the solution mention in the Note, but Unfortunately too the error message appeares (a NullRefefence Exception Was Unhandled by User Code ) on the bold text for the firstPage.aspx web page. public readonly property firstname() . Get ' first is the name of a TextBox control. Return Me.first.Text End Get End property I hope the idea of the probelm reach to you. thank you again Mr.Wonderful

        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