Results 1 to 2 of 2

Thread: passing values across pages

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2005
    Posts
    58

    Question passing values across pages

    Hello,

    I have a link button on my page (lets say it page A), when user click on this button, a new window opens (lets say it page B) this is a search form with some input textboxes and submit button. I also have a grid on this form which displays values according to search criteria. each row has a select button attached with it.

    Now my task is, if user click on any select button I have to display the values of that particular row on Page A (and Page B will be closed). I dont know how to do that. how do I pass values from one window to another in C#. I have done it in ASP(using javascript), but I dont know how to do this in .net (framework 2.0).

  2. #2
    PowerPoster stanav's Avatar
    Join Date
    Jul 2006
    Location
    Providence, RI - USA
    Posts
    9,290

    Re: passing values across pages

    Is this a windows app or web app? if it is a web app, you still can use javascript as you did in ASP or you can use session variables. If it is a windows app, there are many ways to pass data between forms. The one I normally use is to create public properties on the forms for the values I want to pass around.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width