SmartNavigation -- Postback
Posted on 2003-03-11
I have an webform page abc.aspx in which I link to a css file for setting styles to controls on the page. When I set SmartNavigation property to true in the page directive, during the postback the styles set for the controls using the css are not retained. Instead some default styles(font - size, family) are applied. I want the styles from the css to be applied for my controls. How can this be sorted out?
Also I have another doubt regarding the postback. I am using an asp:listbox control with multiple items in it, assume 10, and the height of the listbox control is set in such a fashion that only one item is visible all the times(scroll bar appears). Now the problem is, if I select the 5th item and during the postback the 5th item is selected but its not visible. The 1st item in the listbox is always visible. I want the 5th item to be selected and made visible by default during postback. I mean the listbox must be scrolled to the 5th item after postback. Is there any property for this? or How this problem could be solved?
NEED THE SOLUTION URGENTLY.