By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,882 Members | 928 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,882 IT Pros & Developers. It's quick & easy.

Restore added data in Data Grid in a Page When the page is reloaded

P: n/a
Hi,
I need a help from anybody. My problem is here
I wrote two WebApplication in ASP.net Using C#. The name of the
applications are (Journal.aspx and Payment.aspx). These Two pages have
DataGrids in each page and links to the other page(Journal.aspx
contain Payment.aspx link and Payment.aspx contain Journal.aspx link)
Suppose we added (updated) data in the DataGrid which is in
"Journal.aspx" page and clicked the link which in the page. Then it
loads the Payment.aspx page , suppose if we click on the
"Journal.aspx" the data, which was added(updated) in firsttime, should
be restored when the "journal.aspx" page is loaded.

What ever changes we made to DataGrid in the Journal.aspx , the
changes should be presented when the page is again relaoded..
How It can be done.......?
by
kiran
Nov 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi kiran,

Change the links pointing to the other page to buttons which submit the
form back to itself. In the button click event, do whatever you need to do
to store the data (in a database, in session). Then call Response.Redirect
to go to the other page.

When you click a link, it tells the browser to view something else. The
browser does this without regard to the content of the current page. So,
the current page is essentially lost. If you later click a link coming back
to this page, you will get a new instance of the page.

By changing the links to post back buttons, we allow your page to return
its data to the server where it can be stored for later use.

Thank you, Mike
Microsoft, ASP.NET Support Professional

Microsoft highly recommends to all of our customers that they visit the
http://www.microsoft.com/protect site and perform the three straightforward
steps listed to improve your computerís security.

This posting is provided "AS IS", with no warranties, and confers no rights.
--------------------
From: ve*********@yahoo.com (krian)
Newsgroups: microsoft.public.dotnet.framework.aspnet
Subject: Restore added data in Data Grid in a Page When the page is reloaded Date: 12 Nov 2003 02:58:37 -0800
Organization: http://groups.google.com
Lines: 17
Message-ID: <2b**************************@posting.google.com >
NNTP-Posting-Host: 203.199.197.92
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: posting.google.com 1068634717 24591 127.0.0.1 (12 Nov 2003 10:58:37 GMT) X-Complaints-To: gr**********@google.com
NNTP-Posting-Date: Wed, 12 Nov 2003 10:58:37 +0000 (UTC)
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!news-out.cwix.com!newsfeed.cwix.co
m!news.maxwell.syr.edu!postnews1.google.com!not-for-mail Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:190308
X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet

Hi,
I need a help from anybody. My problem is here
I wrote two WebApplication in ASP.net Using C#. The name of the
applications are (Journal.aspx and Payment.aspx). These Two pages have
DataGrids in each page and links to the other page(Journal.aspx
contain Payment.aspx link and Payment.aspx contain Journal.aspx link)
Suppose we added (updated) data in the DataGrid which is in
"Journal.aspx" page and clicked the link which in the page. Then it
loads the Payment.aspx page , suppose if we click on the
"Journal.aspx" the data, which was added(updated) in firsttime, should
be restored when the "journal.aspx" page is loaded.

What ever changes we made to DataGrid in the Journal.aspx , the
changes should be presented when the page is again relaoded..
How It can be done.......?
by
kiran


Nov 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.