473,399 Members | 4,254 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

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 1778
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Bil Muh | last post by:
Esteemede Developers, I would like to Thank All of You in advance for your sincere guidances. I am developing a software using Visual C++ .NET Standard Edition with Windows Form (.NET)...
11
by: Junkguy | last post by:
I need some help programmatically causing a row in a DataGrid to "flush" its contents to its bound data (in Visual Studio 6 using Windows Forms with C#). My issue is I want to send an update to...
5
by: Tomaz Koritnik | last post by:
Hi I have many short HTML files stored in a binary stream storage to display descriptions for various items in application. HTML would be display inside application using some .NET control or...
3
by: vinayak | last post by:
Hi I am displaying data in Datagrid in ASP.NET with Edit/Update functionality for each row. On the same page I have 2 Button controls which submits the request to server. These button controls...
4
by: Tim T | last post by:
Hi, I have a stored procedure executing a search and an asp.net page displaying the results in a datagrid. The datagrid has paging on it, I am using Visual Studio.NET and can't see any option...
2
by: RAJ | last post by:
In our multi-tier application, we have several ASP.NET user controls which will update the same data source provided by middle tier logic. In this particular scenario we have one user control...
2
by: .Net Sports | last post by:
I have a data grid that takes data from a data table, and in visualstudio.net, I cannot find the error in the debugger at why I am not able to see my datagrid when querying data for a specific date...
5
by: Brad Baker | last post by:
I'm completely new to ASP.NET programming, so please accept my apologies in advance for asking what is probably an obvious question. :-) I'm trying to write a page which will display the...
0
by: Arch Stanton | last post by:
I'm writing the contents of my datagrid to an Excel spreadsheet using the following code: Sub WriteToExcel(Sender as Object, E as EventArgs) 'Export the contents of the current datagrid to Excel...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.