Clear label when opening the main page

Asked

Viewed 63 times

2

I’m making a site in Asp.net using Vb and when I refresh delete the data from textbox’s and also wanted to clean what is written on the label can help me?

I’m using the code below and it’s not working

 Label10.Text = ""

The code has to be in Vb

  • 1

    What part of the code are you putting that in?

  • 1

    I’m uploading the page

  • Show the rest of your code...

  • 1

    It’s to be sure José, note if this piece of code is in the page load even, if it is not inside the Ispostback and if before finishing the Load it is not filling the Label again.

  • 1

    was this @Wellingtonaraujo thanks for the help

  • So I put my description in the answer, so that q question has an answer... then you vote there... rsrsrs

Show 1 more comment

1 answer

3


Note that this code snippet is in the page load even if it is not within an Ispostback treatment (Ex: If Not IsPostBack Then) and if before finishing Load it is not filling the Label again.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.