473,787 Members | 2,938 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1791
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******** ************@co mcast.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.redir ect) to the next page pulling the
contents of the Session object in that pages Page_Load method.

Al
"Joe Fallon" <jf******@nospa mtwcny.rr.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.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******** ************@co mcast.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******** ************@co mcast.com...
Do you mean once I have the results in the DataSet, copy into a Session
object, and then re-direct (Response.redir ect) to the next page pulling the contents of the Session object in that pages Page_Load method.

Al
"Joe Fallon" <jf******@nospa mtwcny.rr.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.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******** ************@co mcast.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.co m> wrote in message
news:u%******** ********@TK2MSF TNGP15.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******** ************@co mcast.com...
Do you mean once I have the results in the DataSet, copy into a Session
object, and then re-direct (Response.redir ect) to the next page pulling

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

Al
"Joe Fallon" <jf******@nospa mtwcny.rr.com> wrote in message
news:%2******** ********@TK2MSF TNGP12.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******** ************@co mcast.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
3563
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) template. Briefly -------------------------------------------------------------------------------------------- I need to create dynamically some controls on the forms, and display these
11
5951
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 a database from a menu command while the user is editing a DataGrid. This is unusual in regard to examples and normal practice in that the cell of the DataGrid still has the focus. In all examples I can find, the user normally presses a button on...
5
7865
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 COM control (like Microsoft WebBrowser). For each description there is one HTML file and along description text, it contains links to related information. Clicking related information would for example open new form in application and display some...
3
4928
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 are Web Control & not HTML control. One of these buttons whose title is Delete is added on the aspx page in design view & also I double clicked on this button in design view to get the onclick code for this button in the code behind page. & for...
4
2206
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 to show the number of results found. Is there an easy way to add this to the top of the datagrid, along with the total number of pages ie: 67 resuts found page 1 of 7 (where the numbers in are hyperlinks to that
2
4361
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 displaying the contents of the data source, whilst another control updates the datasource via a command buttons implementation of 'Click', an event raised in the 'Handle Postback Events' stage of the control execution life cycle (via the...
2
1977
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 when I step thru the code while debugging. ON strSQL when mousing over the variable, it indicates its empty. Just can't find where or why it is empty. Code below (excuse the formatting in this textarea box):
5
5494
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 contents of an SQL record. I've added the following code to a file called default.aspx:
0
1113
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 Response.Clear() Response.ContentType = "application/vnd.ms-excel" Response.AddHeader("content-disposition", "attachment;filename=Data.xls") Response.Charset = "" Response.Cache.SetCacheability(HttpCacheability.NoCache)
0
10169
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9964
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8993
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6749
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5398
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4067
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3670
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.