473,396 Members | 1,921 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,396 software developers and data experts.

how to update datagrid's datasource from another frame page

Mo
Hi,

I have a page that is split into two frames: top and bottom. The top page is
a search parameters page and the bottom is the results page; which holds the
datagrid. The search page sends the parameters to a stored procedure. I
would like to update the datasource of the datagrid based on the results of
the stored procedure. I have tried referencing the datagrid explictly based
on its class name of the codebehind file but I am unsuccessful. My stored
procedure has been tested and it works. Any ideas how I can update the
datagrid's datasource from the other page?
Thanks.
Nov 18 '05 #1
2 1662
If I understand correctly, your search page retrieve the data from
that database, and you want to transfer that data to the result page,
and all this needs to happen in a single reqeust.

I don't think it is possible because when you get to the server side,
you don't have an instance of the result page class. You could save
the data to a session object, redirect the client to the result page,
and have the result page retrieve the data from the session. However,
this will be a bad design because your web server will scale well
under high volume.

Instead, I think your search page should post the parameters to the
result page, the result page then calls the stored procedure, and bind
the data to the datagrid.

Tommy,

"Mo" <mu****@astleygilbert.com> wrote in message news:<#U**************@TK2MSFTNGP10.phx.gbl>...
Hi,

I have a page that is split into two frames: top and bottom. The top page is
a search parameters page and the bottom is the results page; which holds the
datagrid. The search page sends the parameters to a stored procedure. I
would like to update the datasource of the datagrid based on the results of
the stored procedure. I have tried referencing the datagrid explictly based
on its class name of the codebehind file but I am unsuccessful. My stored
procedure has been tested and it works. Any ideas how I can update the
datagrid's datasource from the other page?
Thanks.

Nov 18 '05 #2
Mo
Hi Tommy,

Thanks for the suggestions. I sent my search page values as url parameters
to the results page then I called the stored proc and did the binding, and
everything works great!
"Tommy" <We**********@Hotmail.com> wrote in message
news:a8**************************@posting.google.c om...
If I understand correctly, your search page retrieve the data from
that database, and you want to transfer that data to the result page,
and all this needs to happen in a single reqeust.

I don't think it is possible because when you get to the server side,
you don't have an instance of the result page class. You could save
the data to a session object, redirect the client to the result page,
and have the result page retrieve the data from the session. However,
this will be a bad design because your web server will scale well
under high volume.

Instead, I think your search page should post the parameters to the
result page, the result page then calls the stored procedure, and bind
the data to the datagrid.

Tommy,

"Mo" <mu****@astleygilbert.com> wrote in message

news:<#U**************@TK2MSFTNGP10.phx.gbl>...
Hi,

I have a page that is split into two frames: top and bottom. The top page is a search parameters page and the bottom is the results page; which holds the datagrid. The search page sends the parameters to a stored procedure. I would like to update the datasource of the datagrid based on the results of the stored procedure. I have tried referencing the datagrid explictly based on its class name of the codebehind file but I am unsuccessful. My stored procedure has been tested and it works. Any ideas how I can update the
datagrid's datasource from the other page?
Thanks.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Kevin Pedersen | last post by:
Hello, I am using an editable datagrid. After I save the changes the datagrid shows the old values. I've read the posts about the Page_Load and not binding the datagrid each time. The SQL that...
2
by: JAW | last post by:
I have posted this in a couple of the other newsgropus but have not recieved any responses. Thought I would try it here. I have a frameset that contains frames (top and bottom). In the bottopm...
13
by: Lyners | last post by:
I have a web page writen in ASP.NET that contains some javascript so that when a user presses a button, or edits a certain field in a datagrid, another cell in the datagrid is filled with a value....
4
by: steroche | last post by:
I would REALLY appreciate help please please please! Im sure it is probably blindingly obvious to most of you but I am totally in the dark here!I am lost - i thought i had finally figured out this...
4
by: Jonathan Upright | last post by:
Greetings to anyone who can help: I'm using WebMatrix to make ASP.NET pages, and I chose the "Editable DataGrid" at the project selector screen. As you may know, it defaults to the Microsoft...
9
by: Geraldine Hobley | last post by:
Hello I'm getting the above mentioned error in my applicatio I have a datagrid bound to a datasource like s MyDatagrid.DataSource = Mydataset.Tables(Order) - this all works fine However I...
13
by: shookim | last post by:
I don't care how one suggests I do it, but I've been searching for days on how to implement this concept. I'm trying to use some kind of grid control (doesn't have to be a grid control, whatever...
1
by: geeteshss | last post by:
Dear all, actually i spent a whole month on the R&D of datagrid edit ,update,cancel events but recently my guide told me to make it user friendly because no user would like to go on searching rows...
8
by: Brock | last post by:
I am trying to populate a Crystal Report from data in my DataGrid. The reason for this is that I want the user to be able to change values without updating the database, but still have their report...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.