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 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
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
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
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
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 >> > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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
|
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...
|
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...
|
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...
|
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
| |
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...
|
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):
|
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:
|
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)
|
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...
|
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...
| |
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...
|
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();...
|
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...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |