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

loosing data on first web page when reloaded.

Hi I have 2 webforms, webform 1 and webform 2. Webform 2 is opened with the
selection of a hyperlink on webform 1. I have webform 1 automatically reload
when webform to is closed via a close button on webform2. The problem is
that several of the controls on webform 1 have data that the user has entered
and when they open and close webform 2 the controls are cleared on webform 1
when it reloads. Just wondering if there is a way to save the data in the
controls when the hyperlink is selected that opens webform 2? Many of the
controls on webform 1 have autopostback set to false to reduce uneccessary
postbacks.
Thanks Paul.
--
Paul G
Software engineer.
Jun 27 '08 #1
2 1274
Hi

"I have webform 1 automatically reload
when webform to is closed via a close button on webform2"

did you written any javascript code to do that your your page
automatically do that...?
"Just wondering if there is a way to save the data in the
controls when the hyperlink is selected that opens webform 2?"

you can use Ajax for that... when onclick on the hyperlink
call a javascript method and save your required data to the server's
session...

Best of luck

Munna
www.munna.shatkotha.com
www.munna.shatkotha.com/blog
www.shatkotha.com
Jun 28 '08 #2
Hi, thanks for the response.

did you written any javascript code to do that your your page
automatically do that...?
Yes just a simple javascript for the onclick event of the close button.

you can use Ajax for that... when onclick on the hyperlink
call a javascript method and save your required data to the server's
session...
I do have the Ajax development kit on my machine, do you know what ajax
control it (if it is one) is or is there an example anywhere, thanks Paul.

--
Paul G
Software engineer.
"Munna" wrote:
Hi

"I have webform 1 automatically reload
when webform to is closed via a close button on webform2"

did you written any javascript code to do that your your page
automatically do that...?
"Just wondering if there is a way to save the data in the
controls when the hyperlink is selected that opens webform 2?"

you can use Ajax for that... when onclick on the hyperlink
call a javascript method and save your required data to the server's
session...

Best of luck

Munna
www.munna.shatkotha.com
www.munna.shatkotha.com/blog
www.shatkotha.com
Jun 30 '08 #3

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

Similar topics

11
by: Sims | last post by:
Hi, I heard that there was a chance of 'loosing' a session ID between pages, (when the user clicks from one link to another). Is it really possible? Where could I find a definitive answer to...
2
by: mg | last post by:
I want to hold references to several window objects var win = window.open(... in a javascript array AND not loose the elements in this array when the .aspx page is reloaded after one of...
1
by: krian | last post by:
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...
4
by: Matt Jensen | last post by:
Howdy all Been searching and can't find a good answer to my problem. I've got a usercontrol 'banner' at the top of my page, and when the selection in the dropdown list changes I want the "host"...
15
by: tmax | last post by:
PHP Pros: I have a simple html form that submits data to a php script, which processes it, and then redisplays the same page, but with a "thank you" message in place of the html form. This is...
0
by: Sam | last post by:
I am fairly new to ASP. Net 2.0, background MS Access 2000/2003 and working knowledge of SQL 2000. Scenario: Page1: Blank Page loads with 2 Text Boxes (TxtLast, TxtFirst), a Command...
1
by: Falcula | last post by:
Hello, I have a treeview control, when i select a item i navigate to url. But selected node is lost, it reset itself, loosing state. I post my code here. Thanks in advance. <script...
2
by: WuBin | last post by:
Hi, I have a GridVew and a sqlDtaSurce control in ASP.NET real-time page. The sqlDtaSurce control use a complicated query to load data from a SQL database. This real-time page is reloaded by...
6
by: =?Utf-8?B?Rmx5Z3V5?= | last post by:
I am trying to keep from reloading my XmlDocument every time my page reloads. To do this I am using ViewState. System.Xml.XmlDocument myDataXmlDoc = new System.Xml.XmlDocument();...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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...

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.