Home All Groups Group Topic Archive Search About

Clearing textbox controls after postback

Author
5 Jan 2006 12:05 PM
martinharvey via DotNetMonster.com
This is probably a simple question but i would appreciate some help.

I have a registration page that uploads customer information to the database.
The information
is uploading ok but the customer information stays in the textboxes after the
information is uploaded.
Can anyone tell me how to clear this information

For reference the code is

Sub btn_Click(sender As Object, e As EventArgs)
If Page.IsValid then
customers.AddCustomer( firstName.Text, lastName.Text)
Dim customerID As Integer
Context.Session("worldshop_CustomerID")= customerID

End If
End Sub

many thanks

martin

--
Message posted via http://www.dotnetmonster.com

Author
6 Jan 2006 8:38 AM
Bobby
I think after update the user information, you can Response.Redirect to
this page. I think this method is without fail.
Author
6 Jan 2006 1:24 PM
martinharvey via DotNetMonster.com
Bobby wrote:
>I think after update the user information, you can Response.Redirect to
>this page. I think this method is without fail.

thank you for your help

martin