473,407 Members | 2,629 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,407 software developers and data experts.

Databound controls - Refresh

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?

Jun 15 '07 #1
2 1591
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)

Dave wrote:
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?
Jun 15 '07 #2
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.
On Jun 15, 2:16 pm, bruce barker <nos...@nospam.comwrote:
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)

Dave wrote:
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 intodatabound
controlsafter a pagerefresh(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 arefresh?- Hide quoted text -

- Show quoted text -

Jun 15 '07 #3

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

Similar topics

0
by: John Smith | last post by:
Hello all: Another day another problem :). How do you synch a databound combobox with the rest of the controls that are on a form. I have a combobox that lists a bunch of names and upon...
7
by: Mark | last post by:
Hello. I am developing an Access 2000 form, and I want to populate a databound list box using a saved query that requires parameters. Is there any way to do this? I tried creating a DAO querydef...
5
by: clickon | last post by:
This is driving me nuts, it is such a simply thing to do but i cannot for the life of me work out how you are suposed to do it. I want to update the data in DropDownListB based on what is...
2
by: Charlie | last post by:
Hi: The new databound controls (GridView, DetailsView, ect.) use declaritive syntax (i.e, setup in HTML at design time). However, at times sql statements and parameters may need to be derived...
7
by: | last post by:
I'm using ASP.NET 2.0, C#, SQL Server 2005, and databound controls like the DataList and the GridView. Right now I'm using SqlDataSource as part of very quick and dirty site; I'm not looking to...
3
by: Jeff | last post by:
hey asp.net 2.0 I want to programmatically populate (with data from the database) a label control in a FormView on a webpage. Is it a good idea to put my logic inside the DataBound event of...
6
by: =?Utf-8?B?SnVzdGlu?= | last post by:
Hello: Does anyone know how I can create a multi-column listbox in VB.Net (Windows)...I am using VS.Net 2003. If there is another control available that can be databound with multiple...
1
by: Dave | last post by:
When a user logs into my site, a row for order info is inserted into an MDB table. The next page uses a databound control that references the quantity in that newly created row. Is it possible...
0
by: morathm | last post by:
I have a windows client database management application written in C# that connects to remote web services to do all the heavy work. The thin-client app uses strong typed datasets, all maintained at...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.