I have a gridview that has a radiobuttonlist ( YES/NO ) selections. but since you cant uncheck once selected, they are asking to add a clear option so that if they make a mistake they can clear it..
How can i do that within a gridview so that they can clear any mistakes prior to submission?
I have a loop checking all my radiobuttons to perform an update, so if i would like to be able to clear the selection as soon as the click on "Clear" so when they submit, that row shows as if it was never selected.
I have webform that is used to search for records and displays them...the form contains a dropdownlist, a textbox, a button, and a gridview...user select an entry from the dropdown, type in a matching value and then click on the button to add the entry into the gridview. All of these seem to be working just fine...however, the issue am having is this...after working with the first entry and users search for the second record, the gridview still maintains the entries from the first search. How do i go about resetting the gridview each time there is a new search? Here is what my code looks like.
How do I get the gridview to reset the next time the btnSearch button is clicked?
I want to develop a page with gridview which allows me to update/delete/insert records in a database table. I put 2 buttons in the FooterTemplate with ID = InsertNew and ID = InsertCancel. The insert function works fine but seems that the system won't go to the section 'ElseIf e.CommandName = "InsertCancel" Then'. Here is the code behind:
I just want to clear all the fields in the footer when user click the cancel button.
How do I clear my formview after a record has been inserted or deleted? At the moment it just sits in the previous state with the same details in the fields, still with the Insert button. Either it would be good to drop the formview altogether (I have a grid view on the same page) or move into the edit mode for the just inserted record.
Also the same with the delete - the formview stays on screen with the deleted record details and the delete button still available - I know it has fired though as my gridview is updated.
I am working on one project which is totally related to Trading.i am working on one module of invoice generation .here i used temporary table .all the product which is selected by the customer , first those all are stored in " data table" and when i am going to press submit button all product or data stored in data table directly stored in Database... i don't know how to clear that temporary table on button click....
I have a combobox that is used as a control for Formview, so when the user selects a name from the combobox the data in formview displays in edit mode. However, some if the data that is displayed in formview needs to be empty. For example if the Date is being pulled in, it needs to be empty or null in edit mode.
A DetailsView in Insert mode has all fields cleared after events such as the following:
1. Clicking New. 2. Clicking Cancel. 3. Clicking Insert (if the default mode is Insert).
I have some fields linked to ViewState and they are populatd at PreRender event handler. I am wondring if there is a single place where all relevant ViewState elements can be cleared instead of doing this in all possible relevant handlers such as ItemCreated, ItemCanceled, ItemInserted, etc.
I am having two dropdownlist in my project,one dropdownlist for empid, another dropdownlist for month, if the user select the empid, the values are retrieved in the textbox.
In the second dropdownlist, if the user select the month in the dropdownlist it will display the leave details, its all working fine, if the user again select the first dropdownlist that means empid, I want to show the second dropdownlist as select month, how can do this.....