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