URGENT! - Passing value from one page to another?
-
i need to send the textbox value from the "second" page to "first" page..... (i.e, TEXTBOX1 of "first" page is to be get filled by TEXTBOX2 of "second" page values, while user click a button in "second" page) I am using ASP.NET with C# (.net 2003, 1.1 framework) Thanks in advance - john
-
i need to send the textbox value from the "second" page to "first" page..... (i.e, TEXTBOX1 of "first" page is to be get filled by TEXTBOX2 of "second" page values, while user click a button in "second" page) I am using ASP.NET with C# (.net 2003, 1.1 framework) Thanks in advance - john
use Session Variable or QueryString
Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"
-
use Session Variable or QueryString
Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"
Yes my friend. Using querystring or session we can do it. but what the thing is, when i click the button in "second" page, at once the textbox2 value from "second" page is to get SET to the textbox1 of "first" page. does we can achieve it by using query string or session.? if so, HOW?
-
i need to send the textbox value from the "second" page to "first" page..... (i.e, TEXTBOX1 of "first" page is to be get filled by TEXTBOX2 of "second" page values, while user click a button in "second" page) I am using ASP.NET with C# (.net 2003, 1.1 framework) Thanks in advance - john
John Sundar wrote:
URGENT! - Passing value from one page to another?
Mmmm.. Read this[^]. You will get the solutions. Also buy some books to learn how ASP.NET works
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
Yes my friend. Using querystring or session we can do it. but what the thing is, when i click the button in "second" page, at once the textbox2 value from "second" page is to get SET to the textbox1 of "first" page. does we can achieve it by using query string or session.? if so, HOW?
John Sundar wrote:
but what the thing is, when i click the button in "second" page, at once the textbox2 value from "second" page is to get SET to the textbox1 of "first" page.
What does it mean ? :confused: when click on button on second page you want to back on first page ??? or both page will open ????
Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"
-
John Sundar wrote:
but what the thing is, when i click the button in "second" page, at once the textbox2 value from "second" page is to get SET to the textbox1 of "first" page.
What does it mean ? :confused: when click on button on second page you want to back on first page ??? or both page will open ????
Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"
thanks for your reply Abhijit Jana. i have two webform "parent" and "child". in "parent" webform : one textbox(parent_textbox) and one button(parent_button). in "child" webform : there are one textbox(child_textbox) and one button(child button). Process flow: when user click the "parent_button", the "child" webform should open. Then user will input some text in "child_textbox" and when user press "child_button", the "child" webform should close and the "child_textbox" value should set to the "parent_textbox". How can i achieve it? EXAMPLE : in GMAIL, to attach a file, when user clicks the attach button, it open the browse window. when user select the file, the browse window will close and the corresponding path will set to the textbox. -JOHN
-
i need to send the textbox value from the "second" page to "first" page..... (i.e, TEXTBOX1 of "first" page is to be get filled by TEXTBOX2 of "second" page values, while user click a button in "second" page) I am using ASP.NET with C# (.net 2003, 1.1 framework) Thanks in advance - john
Please don't ask the same question day after day. If you don't understand the answers you got, ask again ( that is, ask the person who answered you, on the same thread, not a new one ). If you still can't work it out, then realise that the problem is with you - buy a book, do a course, bring yourself to a level of being able to understand the answers. Like I said the other day, the easiest way is to make both pages controls on the one page, and let viewstate store the values and your main page pass them between the controls as they are shown and hidden.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
John Sundar wrote:
but what the thing is, when i click the button in "second" page, at once the textbox2 value from "second" page is to get SET to the textbox1 of "first" page.
What does it mean ? :confused: when click on button on second page you want to back on first page ??? or both page will open ????
Best Regards ----------------- Abhijit Jana Microsoft Certified Professional "Success is Journey it's not a destination"
thanks for your reply Abhijit Jana. i have two webform "parent" and "child". in "parent" webform : one textbox(parent_textbox) and one button(parent_button). in "child" webform : there are one textbox(child_textbox) and one button(child button). Process flow: when user click the "parent_button", the "child" webform should open. Then user will input some text in "child_textbox" and when user press "child_button", the "child" webform should close and the "child_textbox" value should set to the "parent_textbox". How can i achieve it? EXAMPLE : in GMAIL, to attach a file, when user clicks the attach button, it open the browse window. when user select the file, the browse window will close and the corresponding path will set to the textbox. -JOHN.....
-
Please don't ask the same question day after day. If you don't understand the answers you got, ask again ( that is, ask the person who answered you, on the same thread, not a new one ). If you still can't work it out, then realise that the problem is with you - buy a book, do a course, bring yourself to a level of being able to understand the answers. Like I said the other day, the easiest way is to make both pages controls on the one page, and let viewstate store the values and your main page pass them between the controls as they are shown and hidden.
Christian Graus - Microsoft MVP - C++ "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )