I dont know whether this simple task or not, but I tried to search in google but couldn't find anything.
I've a asp.net form and user enters some data in the text boxes provided. Whenever user submits the form, browser will save that form data. I don't want this form data to be saved in browser. How can I restrict the browser saving this form data without touching the browser settings?
Application is developed using asp.net and normal text boxes are used here.
I have a page with a text box, a button and a GridView. Enter an account number in the text box, press the check button and the result will show in the GridView.
Now user wants that if the text box is clear, the GridView disappear.
I can only find TextBox1_OnTextChanged. But I want to have that while the user is clearing the text, if the length of text becomes zero, the GridView is clear out. So I am looking for OnTextChanging(). Well of course this function does not exist. How to achieve the same purpose?
I never knew that there was something like when you enter <xx> in the textbox it gives the error, so my question is how can i avoid this kind of problem? and how can i avoid this error? I cant say to ppl do not enter this in textbox who know what ppl can do, so it is better to make sure you wont get error cuz of this.
I ve design a page that has nine text box name txtSubject1 to txtSubject9 with the visibile properties to be false.I now have a method called Save1, Save2 to Save9 depending on the no of subject selected from the dropdown.But i think that is not professional bellow is a sample of how i did't and i believe the textbox can n number of an array that can be selected from the drop down. i need someone to put me through how to insert this into the database out side the fake method i ve used.
very first when the page loads the focus willl be on the next button, when i try to enter the text in the text box, focus changes from the next to the previous button (Previous button is the first button i have).
can i add new records in gridview by entering value in textbox in runtime?suppose a value is entered in textbox and concerned record is displayed in gridview again if i want to add a new record in gridview along with the old record how can i add?
I am working on a project in .NET (C#), connected with a database. And I am entering values in database through 'text-box' control, for a part of the project. What I want is to check if the user entering value already exsists in the database and if so, shows error during that time only.
I have searched for any familiar post here, that could solve my query, but didn't get any.
my EXACT objective(if not cleared earlier):-
when the user enter the value in textbox, automatically an event to check any duplicate records in database should occur. And if found, displays an error message
I have an ASP.Net UpdatePanel that updates on a timer. Within the UpdatePanel and nested in a GridView, I have a TextBox that the user enters a value in with a submit button. Everything works fine, except if the user does not submit the value before the timed interval, the text is removed from the TextBox. Is there a way to persist the user entry into the TextBox between updates? Is there a better way of doing this?