469,648 Members | 1,331 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,648 developers. It's quick & easy.

Displaying contents of Datagrid on another page

Hi,

Does anyone know how to display the contents of a DataGrid on another
aspx page.
I have a aspx page that when the user clicks on a link button the database
is queried and I want the results to appear on the another aspx page that
has a DataGrid on it.

Thanks,

--
Al
Nov 19 '05 #1
6 1634
When the button is clicked, you fetch the data into an object (class,
collection, array, etc.) and then store it in Session and re-driect to the
next page. In the next page just pull the object out of session and bind it
to the grid.
--
Joe Fallon

"Al Wilkerson" <ac***@comcast.net> wrote in message
news:Qr********************@comcast.com...
Hi,

Does anyone know how to display the contents of a DataGrid on another
aspx page.
I have a aspx page that when the user clicks on a link button the database
is queried and I want the results to appear on the another aspx page that
has a DataGrid on it.

Thanks,

--
Al

Nov 19 '05 #2
Do you mean once I have the results in the DataSet, copy into a Session
object, and then re-direct (Response.redirect) to the next page pulling the
contents of the Session object in that pages Page_Load method.

Al
"Joe Fallon" <jf******@nospamtwcny.rr.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
When the button is clicked, you fetch the data into an object (class,
collection, array, etc.) and then store it in Session and re-driect to the
next page. In the next page just pull the object out of session and bind
it to the grid.
--
Joe Fallon

"Al Wilkerson" <ac***@comcast.net> wrote in message
news:Qr********************@comcast.com...
Hi,

Does anyone know how to display the contents of a DataGrid on another
aspx page.
I have a aspx page that when the user clicks on a link button the
database is queried and I want the results to appear on the another aspx
page that has a DataGrid on it.

Thanks,

--
Al


Nov 19 '05 #3
Al,
Try seeing through this at:-
http://www.datawebcontrols.com/faqs/...atOpensInANewW
indow.shtml
Maybe thats what u need..
hope it helps
Patrick
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #4
Hi Al Wilkerson
when u click the button sure u have a value that u query with it the DB ,
then put this value in a session and in ur second page execute ur query with
adapter or reader .
hope this help:)

"Al Wilkerson" wrote:
Hi,

Does anyone know how to display the contents of a DataGrid on another
aspx page.
I have a aspx page that when the user clicks on a link button the database
is queried and I want the results to appear on the another aspx page that
has a DataGrid on it.

Thanks,

--
Al

Nov 19 '05 #5
Al,

Do you need to populate the dataset on the first page? It makes more sense
to doing once you are already on the second page. Does the second page need
a separate window?

Eliyahu

"Al Wilkerson" <ac***@comcast.net> wrote in message
news:ec********************@comcast.com...
Do you mean once I have the results in the DataSet, copy into a Session
object, and then re-direct (Response.redirect) to the next page pulling the contents of the Session object in that pages Page_Load method.

Al
"Joe Fallon" <jf******@nospamtwcny.rr.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
When the button is clicked, you fetch the data into an object (class,
collection, array, etc.) and then store it in Session and re-driect to the next page. In the next page just pull the object out of session and bind
it to the grid.
--
Joe Fallon

"Al Wilkerson" <ac***@comcast.net> wrote in message
news:Qr********************@comcast.com...
Hi,

Does anyone know how to display the contents of a DataGrid on another aspx page.
I have a aspx page that when the user clicks on a link button the
database is queried and I want the results to appear on the another aspx page that has a DataGrid on it.

Thanks,

--
Al



Nov 19 '05 #6
Yea, I have a main page which is just a frame that consists of several
pages.
The first page is one of the frames that has a list link buttons to click
on.
When click on one of the buttons I want the contents of the dataset
displayed in another frame page that holds a DataSet.

When I click the link on first page i redirect to the second page, which has
in it's Page_Load event the database fetch and DataSet creation, but the
page doesn't display.

I probably have to find out how to display pages from a frameset in other
parts of the frame.

Al

"Eliyahu Goldin" <re*************@monarchmed.com> wrote in message
news:u%****************@TK2MSFTNGP15.phx.gbl...
Al,

Do you need to populate the dataset on the first page? It makes more sense
to doing once you are already on the second page. Does the second page
need
a separate window?

Eliyahu

"Al Wilkerson" <ac***@comcast.net> wrote in message
news:ec********************@comcast.com...
Do you mean once I have the results in the DataSet, copy into a Session
object, and then re-direct (Response.redirect) to the next page pulling

the
contents of the Session object in that pages Page_Load method.

Al
"Joe Fallon" <jf******@nospamtwcny.rr.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
> When the button is clicked, you fetch the data into an object (class,
> collection, array, etc.) and then store it in Session and re-driect to the > next page. In the next page just pull the object out of session and
> bind
> it to the grid.
> --
> Joe Fallon
>
>
>
> "Al Wilkerson" <ac***@comcast.net> wrote in message
> news:Qr********************@comcast.com...
>> Hi,
>>
>> Does anyone know how to display the contents of a DataGrid on another >> aspx page.
>> I have a aspx page that when the user clicks on a link button the
>> database is queried and I want the results to appear on the another aspx >> page that has a DataGrid on it.
>>
>> Thanks,
>>
>> --
>> Al
>>
>
>



Nov 19 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Tomaz Koritnik | last post: by
3 posts views Thread by vinayak | last post: by
4 posts views Thread by Tim T | last post: by
2 posts views Thread by .Net Sports | last post: by
5 posts views Thread by Brad Baker | last post: by
reply views Thread by Arch Stanton | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.