Click here to Skip to main content
15,886,137 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
I am having an asp.net page on which I am having a multi-view control control with three views & three buttons on top of view panel to change views.

When I am selecting button to change view, the page is getting postback and the controls are resetting-this time it is taking time to apply the css to controlls.

so it looks like page is flickering.
and same thing is happening on any other action happening on page(reload).

- I kept the updating part in update panel but the page is getting reloaded and flickering is occurs when page is getting loaded again.

How to overcome this...

Please suggest.

Thanks in advance for your suggestions. :)

--Avinash
Posted

You Can be Use JQuery and Json :)
 
Share this answer
 
Comments
Afzaal Ahmad Zeeshan 22-Jan-15 12:09pm    
How would that help the OP?
Avinash6474 22-Jan-15 12:39pm    
If I am using any other asp.net control on page and because of that control if page is reloading then how to maintain state of controls.
I have drop down and dependent drop down controls so if page is reloading then selected values are resetting to original. How to overcome this?
If you have any link of example pks share . It will help lot.
Thanks.!
ekanshsaxena 23-Jan-15 4:56am    
protected void Page_Load(object sender, EventArgs e)
{
DataTable CityMembersTable = GetCity();
ddlCity.DataSource = CityMembersTable;
ddlCity.DataTextField = "CityName";
ddlCity.DataValueField = "CityID";
ddlCity.DataBind();

ddlCity.Items.Insert(0, new ListItem("<--Choose City-->", ""));
}
Avinash6474 27-Jan-15 6:17am    
Once data added to drop down list , on SelectedIndex_Change event the page will get post back and the selected item from drop down will be reset again.
How to over come this with?

If used all code behind technique then the drop down will keep selection after postback too. but with jQuery it is resetting all drop down values to original.
If I have 6-7 drop down on page and every time on selection if page is getting postback then how to keep previous selected values?
Use Ajax Update Panel On Every Drop Down Than Should be work properly.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900