I might know it's not that easy but wanted to ask!
Assuming I have asp.net long form divided to 3 bootstrap tabs and only few fields within the first and last tab have asp.net validations. The save button is out of the tabs content area and could be clicked anytime and when that happen while a specific tab content displayed, the user will not realize the fired validator in another.
Is there a way to jump to that tab and maybe could be advanced if focused on the field? is there other tab technique solution that could be helpful or the problem is with the default ASP.NET field validators?
i have worked with bootstrap wizard, i was using the following code for moving to next or previous tab after submitting data..
for moving next tab
$('#form_wizard').bootstrapWizard('next');
for moving previous
$('#form_wizard').bootstrapWizard('previous');
have a look here
Related
Hi so I have a boot strap modal form which opens up and shows some data, the data is actually in a tabs but I don't think that is important. I have an update page as when you click on one of the buttons in the grid it opens up a dialog pop up. Due to how the modal form refreshes due to a postback I decided to implement the tabs in an update panel. However while it all works there is only one thing which I would like to tidy up. Not really a big issue but it would be nicer if after the drag and drop on the grid rows a JQuery is called to basically store the new order. However as this is in a modal form the whole modal form refreshes, this is intended to keep the D&D feature working in the grid but ideally I just want the update panel to refresh not the whole modal form. Using webforms in asp.net and vb.net.
Thanks any help appreciated.
I have two modal popups on a page, both inside user controls, and both have different names, and different behavior id's. Also, the hidden buttons used with them have different id's. I use javascript to click those buttons to show the popup.
On load of the page, the first popup is hidden, but the second one is not, and is at the bottom of the page completely visible. When I click the link that is supposed to show the second popup, the first one is shown instead, but the javascript to load the default values into the first popup does not run, so I'm confused as to what is going on. Any ideas?
I have solved the issue. My situation is bit different. for you both pop ups are in a user control. But for me only one is in user control and other one is in the page itself. hope this will shed some light on your issue.
I gave different id's for
Hidden Target button (TargetControlID)
OK button (OkControlID)
Popup Panel (pnlPopup)
Model Popup control
Still if you are not sure, try your page in firefox with firebug installed. This will help you to identify any java-script errors.
Hope this helps.
in my ajaxified page i have used several user control shifting from one user control to anothe r and then pressing the back button takes me to first page instead of previously filtered page
how to solve this
all this filters are linkbuttons i am also using listview these filters are actually filtering the content of this listview
You may take a look at the jquery history plugin. If you are using UpdatePanel to perform the AJAX requests you might find this article helpful as well as this video.
I am using a ListView for displaying list of items in a List page. I am also using DataPager control in my page for paging.
PROBLEM
While I am in the middle of the List let 5th page out of 10 pages and going to another page then clicking browser back button I am again comming back to my list page with page number showing 1st page out of 10.
What could be the solution.
Thanks in advance.
ASP.NET uses PostBacks to manipulate the state of the form, such as paging. What this means is that every interaction on the page - a button click, a LinkButton click - is really just submitting (posting) a form back to the same page. Hence the name, postback. An unfortunate downside of this approach is that it breaks the back button.
One possible fix is to use the Post/Redirect pattern which is becoming more common with ASP.NET MVC, but the principles still apply. However, I'd strongly discourage using widely in your application, as it would essentially double the amount of requests.
There is a tab menu which was created by asp.net control. Now I'm changing this with a new tab menu I made with javascript. There is an event on third tab and when i click the tab it's posting back with asp.net ajax as asyn. but it takes me to the first tab after postingback every time but I don't want to change the tab after this. it must be stay on the third tab just must be changed content that's all. How do I solve it?
thank you
If your home-made tabset is in the update panel, then it will be part of the partial update. Your tab control needs to remember it's viewstate so that when it is rendered after a postback (or partial update) it will render with the right selected tab. I suggest using a hidden field on the page that holds the value or index of the selected tab. Then, when you go to render the tabset from a postback, you read from that hidden field and know what tab is selected and render as such.