Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / June 2008

Tip: Looking for answers? Try searching our database.

loosing data on first web page when reloaded.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Paul - 28 Jun 2008 00:10 GMT
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.
Signature

Paul G
Software engineer.

Munna - 28 Jun 2008 06:09 GMT
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
Paul - 30 Jun 2008 15:59 GMT
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.

Signature

Paul G
Software engineer.

> Hi
>
[quoted text clipped - 17 lines]
> www.munna.shatkotha.com/blog
> www.shatkotha.com

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.