How to reload the page in asp? - asp-classic

I have 2 dropdown list boxes in my asp page where I need to select category and sub-category.
Sub-category dropdown list will be populated based on the category dropdown list box selection.
The problem is the sub-category list box is not loading accordingly when i select an item in category list box.
So I am going to previous page and click on the button to get the current page(where cateory & sub category list boxes are located) and selecting the sub category details(now sub category list box got loaded).
Is there any way to stay on the current page and get the sub category list box loaded for selection at first time itself.
Please any one help..

Set AutoPostBack=true and handle ChangeItem event at category dropDown.

#Kanchana: This should help get you started -- http://www.satya-weblog.com/2009/08/jquery-ajax-example-of-select-values.html

Related

Want to re-instantiate a component when navigating to same aux route

I have a list of items with Actions drop-down for each item in the left-section of page. I also have a right rail which displays a different component based on action type selected. I'm using aux-route to accomplish this.
One of the Action the user can take is "edit" where in a form is displayed to edit the metadata of the list item. While editing, user can click on + button next to some of the input field to add another input field dynamically.
Now my problem is, when the edit-form is open for a list item and I click edit on another item in the list, I wanted my edit-component to be re-instantiated.
Because the aux-route is same for all the list items for edit-action, edit-view is not instantiated once again. Is there a way to achieve it?
Right now fixed it with RouteReuseStrategy

Change the NewPage for a TcxPageControl in the PageChanging event

We use a page control to step through a selection process from orders to products. The first tab shows a list of orders, the second tab shows a list of products for the selected order, and the 3rd tab contains a list of properties for the selected product.
If the user choose an order with only 1 product, we want to skip tab 2 and go straight to tab 3 to show the properties of the sole product.
I thought this could be done by setting the NewPage property of the PageChanging event, but it doesn't. What is a better way? To set the ActivePageIndex within the PageChanging event instead?
I would hide the tabs so the user cannot select them at all, and then use a pair of buttons to move back and forth between the pages as needed. When the user is on page 1 and is ready to move to the next page, the button handler can decide which page to show next.

Gridview is not set at first page during binding

I have dropdown list on my page. When I click on submit button, gridview is filled based on the choice in the dropdown list. It also contains pagging. Now when I move on page two and then change dropdown list value and again fill the grid, it fill perfectly but shows from the previous page index and not from the first page. I trid using "Gridveiw.PageIndex=0" but still its not working. What might be the reason behind this??
first set Gridveiw.PageIndex = 0; like you are doing and then bind the grid.

Insert Item Template in Asp.NET

What I want is How to have a Insert Item Template in Asp.NET.
Like in a Add User Page.I Get Automatically All the Items and the Text Boxes After That.
And the Create User Button in the end.
The same i Want .All Items along with the Text Boxes And the Insert Button At the End.And the Items should be Inserted into the Database.
What I Want is to permanently Display the Insert Item Page.
For Ex:- In Case of Students :
FisrtName:-----------
MiddleName:----------
LastName:------------
Without Any Button Been Clicked.
Like a AddStudent Page or Create Student Page.
I Think You Got My Point
Thanks in Advance.
If it's a FormView as you've commented, you should call FormView.ChangeMode(FormViewMode.Insert):
Me.FormView1.ChangeMode(FormViewMode.Insert)
Me.FormView1.DataBind()

Drop down menu in Drupal

I have created one page and added called list as main menu to it.
Afterwards, I created a second page and added that page as the child of the first page. Now I want to show the second page in the menu link, in the form of a drop down. If I hover my mouse over the list, it displays list1 as sub. My problem is that I cannot get list1 into a Drupal variable.
Please help.
Try superfish. If you want to change the order then create a new menu and select the item accordingly.

Resources