0
I am creating an Asp.net web page and I wanted when the site was reloaded or pressed the "F5" key all the data of the textbox to pass the "".
0
I am creating an Asp.net web page and I wanted when the site was reloaded or pressed the "F5" key all the data of the textbox to pass the "".
0
How did you report that you are not using the PostBack
for no operation, you can turn off the Viewstate. In the page declaration on your .aspx
add the attribute EnableViewState="false"
.
<%@ Page EnableViewState="false" ...
0
Just put the text to "" (null) when the page Load()
Browser other questions tagged asp.net vb.net textbox
You are not signed in. Login or sign up in order to post.
Could you explain your scenario better? Are you having any Viewstate or Postback problems?
– Leandro Angelo
I don’t know how to do it so I’m asking! I don’t even know where to start
– José Gomes
But what’s happening? you fill in the fields and when refreshing the page the old values are displayed?
– Leandro Angelo
yes that’s right. the texts continue there with the values
– José Gomes
You have some component that has the attribute
AutoPostBack="true"
?– Leandro Angelo
@Leandroangelo Não
– José Gomes