Link to home
Start Free TrialLog in
Avatar of nallakumar_s
nallakumar_s

asked on

SmartNavigation -- Postback

Hi,

1.SmartNavigation:

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?

2.Postback:

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.

Regards,
Nallakumar.S
ASKER CERTIFIED SOLUTION
Avatar of Commodus2
Commodus2
Flag of Saint Martin, (French part) image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bob Learned
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:

Answered by Commodus2

Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

TheLearnedOne
EE Cleanup Volunteer