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 2007

Tip: Looking for answers? Try searching our database.

Databound controls - Refresh

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dave - 15 Jun 2007 17:32 GMT
I only do ASP part time so this is a beginner question.  I will
attempt to make this a starightforward question...

Is there any technique to keep values a user types into databound
controls after a page refresh (or in this case a
window.location.replace(...))?

I have an UpdateDB() ASP function.  Can that be kicked off by an event
when the user finishes typing into a asp:textbox, for example, so the
data is saved before a refresh?
bruce barker - 15 Jun 2007 20:16 GMT
location.replace does not postback data. you can append the values to
the on the requested page, use querystring to get the values

-- bruce (sqlwork.com)

> I only do ASP part time so this is a beginner question.  I will
> attempt to make this a starightforward question...
[quoted text clipped - 6 lines]
> when the user finishes typing into a asp:textbox, for example, so the
> data is saved before a refresh?
Dave - 15 Jun 2007 21:32 GMT
Thanks.  The only problem with using a querystring in this case is
that one of the fields is for 'notes' that can be up to 255
characters.  I guess that can be put into the querystring.  I will go
ahead and start on that, but is there any other option?

In case this helps I'm using a flash object for uploading files called
'flash uploader'.  After the upload, I make the page refresh
(location.replace) in order to show the uploaded files.  This is when
the text in the other controls disappears.  Maybe there is a way to
put the updateDB() function into the cs code but I haven't figured it
out.

> location.replace does not postback data. you can append the values to
> the on the requested page, use querystring to get the values
[quoted text clipped - 13 lines]
>
> - Show quoted text -

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.