I am using a ASP.Net and AJAX web which contain
TabContainer
gridView(grid view generated in run time and make 1 of
the column as the tab page header)
combobox
2 textbox(date fr/to)
button
Problem is.. after the data was retrieved.. everything look find. now i want to fire the tab container event.. autopostback set to true.. once user selected the tabs.. all the things from the page are disappear..(actually i test for other component which is set the autopost to true.. it will make some effect) its seem to be reload without pulling back the existing movement.. what can i do to enhance it? is it anything related to my coding? or setting? or concept was wrong already?
before tab click
after tab is selected
Related
So, basically my problem is that i have a series of tabs on my page, one of the tabs (not the default one) has two drop-down lists, the second drop-down list only populates after an item from the first drop-down list is selected, obviously without putting the autopostback = true value in my drop-down list, they wont automatically populate however adding autopostback = true causes the page to reload and changes tabs back to the primary default tab. Is there any way around this that people know as i don't really want the users having to change back to the correct tab 4 times to fill in a form. Thanks
I think your dropdown is asp:DropDown (server side). I recomend you to use html element and do your staff at front end with jquery,ajax etc. But in your case if you want to update part of the page without using front end tools (jquery-ajax), You should use asp:UpdatePanel for it. Search for it, it is not so complex. Good luck.
Introduction to the UpdatePanel Control
How do I use updatePanel in asp.net without refreshing all page
I'm using telerik Grid which has a command button that adds new row/record or another command button that edits selected row/record.
Each grid is inside a twitter bootstrap tab content (Yes, I didn't use telerik tab). What is happening is that when one of buttons that I mentioned above clicked, I expect the tab that contains that button be active at page load.
So is there anyway to get that button so I can use it to activate the proper tab? (ID of that button is enough for me, I will do the rest with jQuery)
Every control that posts back, in an ASP.NET web forms world, sets the __EVENTTARGET and __EVENTARGUMENT (if there is an argument) form values. The __EVENTTARGET form variable has the client ID of the button, so that might be the optimal way. If it's within the grid, I'm not sure, but the __EVENTTARGET may either be the button or grid ID.
Ok, so I've researched this to the end of the earth and can't seem to find a solution that works.
I have a C# application, which is basically a web form made up of radio button lists and text boxes in an update panel. The form has multiple 'sections', each of which the user submits when completed. Each control performs a postback. This is because if the user modifies a section after completing it, the 'section saved' label needs to disappear.
This all works well, except the postbacks lose the tab order of the controls. I have found code examples that save the last control that had focus, which works well for the radio button lists, but because the text boxes post back when a user tabs to the next control (not modifies the text), it doesn't select the next control. The user has to hit tab again and it jumps to the third text box, not the second because technically, the second text box is what had focus after the initial postback. I hope this makes sense.
Any ideas? I can post code if required.
I should probably also add that this page is within a frame of our community portal.
Page A has a dropdownlist of shipping methods.
User makes a selection and clicks next.
Page B allows them to change their shipping address, which changes their shipping methods.
User clicks back button.
Page A shows new shipping methods in drop down, but Chrome has added a blank option at the top and made it the selected option. This blank option DOES NOT EXIST in the view source.
Chrome is choosing to insert a phantom blank selection item when its persisted drop down list value no longer exists, rather than respecting the selected="selected" tagged option.
This causes .net event validation to fail whenever the user tries to interact with the form, because this blank selection isn't real. "Invalid postback or callback argument. Event validation is enabled"
I've tried form.reset() on page load, and turning autocomplete off on the form tag. Anyone have any ideas? Much appreciated.
I have a a gridview with a dynamic number of columns and rows. In each of the gridiview cells, a textbox get's added dynamicaly. I need users to be able to tab through these textboxes, but I can't get it to work.
I set the tabindex of the the textbox when it is created in the code behind, however when I try and tab in the page it doesn't work. If I click inside a textbox in the grdiview then pressing tab does nothing at all, If I click outside the gridview I can tab through the other controls on the page, and it will tab into the first cell of the gridiview, and then stop/
Perhaps you can create a javascript method to get a list of all textboxes on the page, and shift focus to the next one, by checking for a keypress event?
Well I solved the problem. I had some javascript running on Key Down to prevent users entering anything other than numbers, which blocked tabbing. Removed it and it worked.