Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Assigning value to a textbox
Message
De
11/03/2003 11:12:28
 
 
À
11/03/2003 05:08:26
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires Web
Divers
Thread ID:
00764099
Message ID:
00764280
Vues:
23
Well, we need to see some code. When do you fill the DataSet? What are you doing when the Save button is clicked? Also, I ran into something with IE's cacheing of web pages, which may be the problem you're having. In the Page Load, I added Response.Expires = 0 so that the page is always reloaded fresh, it doesn't use a cached web page.

~~Bonnie

>Hi!
>
>I have a webform in which the user enters his company data. Once those data is saved it will appear whenever this webform is loaded. I use a dataset to collect the data from my database and assign the values using
>
>textbox1.text=dataset.tables(0).rows(0).item("field")
>
>
>When the user changes some of these values and clicks the save-button the values of the textboxes are still the initial values.
>
>This means:
>initial value = "Hello"
>altered value = "Hi"
>save-button is clicked and textbox.text="Hello" although "Hi" is displayed
>
>What have I done wrong?
>
>Thanks for help!
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform