Thank you in advance for your valuable time in advance.
I have spend several hours trying to fix the following issue, but no luck so far. I am building ASP.NET C# webforms, specifically using bootstrap selectpicker on multiple dropdownlists. During a full postback (i.e. if (!IsPostBack)), the webpage loses CSS
for 3-4 seconds while the page is loading. Even on the initial load of the webpage, I can see simple AJAX dropdownlists for a second or two before bootstrap format appears. Can you please provide or direct me to the solution?
According to your description, as far as i know, this issue maybe related to the loading lazy of CSS file, please share your code for us to test, this will better help you solve the problem.
Best Regards,
Eric Du
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
uring a full postback (i.e. if (!IsPostBack)), the webpage loses CSS for 3-4 seconds while the page is loading.
If you do not want to show the dropdownlist <select> before bootstrap css styles apply to it, you can try to hide that dropdownlist in default, and set short time delay (using
setTimeout() method) to show that dropdownlist.
With Regards,
Fei Han
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Member
1 Points
2 Posts
asp.net C# bootstrap selectpicker lost CSS on dropdownlist for few seconds during page loading
Dec 10, 2017 11:17 PM|monaliza17|LINK
Hi All,
Thank you in advance for your valuable time in advance.
I have spend several hours trying to fix the following issue, but no luck so far. I am building ASP.NET C# webforms, specifically using bootstrap selectpicker on multiple dropdownlists. During a full postback (i.e. if (!IsPostBack)), the webpage loses CSS for 3-4 seconds while the page is loading. Even on the initial load of the webpage, I can see simple AJAX dropdownlists for a second or two before bootstrap format appears. Can you please provide or direct me to the solution?
Thank you
Contributor
6730 Points
2715 Posts
Re: asp.net C# bootstrap selectpicker lost CSS on dropdownlist for few seconds during page loadin...
Dec 11, 2017 08:24 AM|Eric Du|LINK
Hi monaliza17,
According to your description, as far as i know, this issue maybe related to the loading lazy of CSS file, please share your code for us to test, this will better help you solve the problem.
Best Regards,
Eric Du
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
All-Star
40565 Points
6233 Posts
Microsoft
Re: asp.net C# bootstrap selectpicker lost CSS on dropdownlist for few seconds during page loadin...
Dec 22, 2017 07:55 AM|Fei Han - MSFT|LINK
Hi monaliza17,
If you do not want to show the dropdownlist
<select>
before bootstrap css styles apply to it, you can try to hide that dropdownlist in default, and set short time delay (using setTimeout() method) to show that dropdownlist.With Regards,
Fei Han