Click here to Skip to main content
15,885,985 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to reset all values when we click on submit button.
Posted
Comments
CPallini 17-Dec-13 3:59am    
You are free to do that. Now, the question is?
An@nd Rajan10 17-Dec-13 4:16am    
express your problem in detail..
Member 10434230 17-Dec-13 5:32am    
what is problem in resetting the value?
joginder-banger 17-Dec-13 8:48am    
TextBox1.Text="";

1 solution

Hi Tanugarg,

You can do it easily in VB.Net.

VB
Protected Sub btnSubmit_Click(sender As Object, e As EventArgs)
'Your code for submission    
If submitted = True Then
        'Check the submission status before resetting all controls
        textbox1.clear()
        textbox2.clear()
        textbox3.clear()
    End If
End Sub

Hope this helps you a bit.

Regards,
RK
 
Share this answer
 
Comments
Member 10469372 18-Dec-13 5:08am    
update text box value when i type in the text Box & click submit button
♥…ЯҠ…♥ 18-Dec-13 8:13am    
While typing you want to update? No don't do that, it may lead to bad data, instead try LostFocus() event, once you type value in txtbx1 and press TAB key to update still have some drawback but instead of doing that its better.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900