is it possible to change to a specific interior page on the wizard?
lets say I'm on page 2 and I want to move to 5 directly without the user clicking next button 3 times.
thanks!
I have 10 items .I am selecting 4th item .On selection of item i am displaying confirmation popup .On click of Ok in popup it navigates to another page.In that page I am showing all those 10 items .But my concern is whatever the item i am selecting the scrollbar should comes to that particular item.
I am using the ASP.net MVC 5 to build the web application.
It's little more complicated than the simple MVC example I googled. Not so sure what I've done is the right way to do.
A user is able to select the Region or an item ID: {number} on the left hand in the Menu 1. The menu is populated as a multi-level menu which means there are two levels of this menu, Region and ID.
Each level decides which controller to call. For example, When Region 1 id clicked, RegionsController will be invoked, and render a view for the content.
There is a Menu 2 on the right hand, it's a menu according to which level clicked, so it could be different menu items depending on whether Region or ID were clicked.
Menu 2 is the functional menu, such as Map, Record, ... For example, Map is a menuitem in Menu2 correspoding to Region Level.
Record is a menuitem in Menu 2 corresponding to ID Level.
The layout is showing as below, including two menus (partial view) and a content.
Scenario:
User clicks on Region 1, call the Region controller to render the view on the right. Menu2 is populated according to the Region. A user is able to click any menu items on Menu2 to render the content
When a user clicked on Region 1, call control action to handle /Region/Index/1 to render the view. I will save the Id = 1 to both the cookie and session in order to use when the Menu 2 menuitem1 or menuitem2 had clicked. So the content is decided by Menu 1 and Menu2.
User clicks on ID:009, call the ID controller to render the view on the right. Menu2 is populated according to the Region. A user is able to click any menu items on Menu2 to render the content
Same as 1. When a user clicked on Region 1, call control action to handle /ID/Index/008 to render the view. I will save the Id = 008 to both the cookie and TempData in order to use when the Menu 2 menuitem1 or menuitem2 had clicked. So the content is decided by Menu 1 and Menu2.
Questions:
If I want to see the Region 1 and Map, I need to save which item (Menu1 item) was clicked. So I can render the content when the menuitem# clicked on the Menu2. The truth is every controller needs to get which Id in Menu 1 was clicked.
Save click item
SessionManager.SaveItem(id, this.HttpContext);
Get click item
SessionManager.GetItem(this.HttpContext);
It is too annoying to do this in every controller. Is there a better way?
Menu1 decides which Menu2 menuitems displays. So I have to keep track of which Menu 2 menuitems shall be display. In the IDController Index action, I need to render the partial view with "Record" menuitem. On the contrary, in the MapController, I need to render the partial veiw with "Map" menuitem.
How could I improve this kind of MVC architecture?
I have a listbox in my wp7 application. Some 20 to 30 items are in the listbox. I need to show single item at a time. When sliding it show next or previous item. How can I create such a listbox
I am developing an application with next and previous buttons. Between those buttons, I want to place numbers. This would look like:
PreviousBtn 1 2 3 4 5 NextBtn
How can I place the five numbers between the buttons?
Instead of ButtonField I have a custom button class to implement buttons. I am using the following code.
numberBtn = new ImgButtonField[ total().size()];
for (i = 0; i <total().size(); i++) {
numberBtn[i] = new ImgButtonField(total().elementAt(i).getNo());
}
the numberBtn is having total 40 numbers. How can I display (PreviousBtn 1 2 3 4 5 NextBtn) format, if I clicked on next or pre buttons it should show (PreviousBtn 2 3 4 5 6 NextBtn).
I have images corresponding to the numbers suppose if I click on 1 it should display one image on the screen and so on. So how to place these all images without giving all image resource paths for each corresponding number. Is any simpler way to get all images at a strech when numbers are clicked?
Place that 40 image button in to horizontal field manager.. Scroll the manager whenever you press next and previous button.. This is simple way to do this..