Wednesday, January 23, 2008

How do I use ASP.NET File upload control inside AJAX Update panel?

Can you use ASP.NET File Upload control inside the AJAX Update Panel without any difficulty? Actually, ASP.NET File upload control requests full post back to post the file to server. So, when you put File upload control inside the AJAX Update panel, it will return null value as a post file.

So, what is the solution for this? Yes, you can define post back trigger to fire full page post back. I hope you realized the set-up behind this and next time I will post about “How do I use ASP.NET File upload control inside the GridView + Update Panel?”

FAQ00023

Labels: ,

Thursday, January 17, 2008

How do I use decimal value with ASP.NET AJAX ASP.NET AJAX NumericUpDownExtender?

I hope you know the ache of implementing ASP.NET AJAX NumericUpDownExtender with decimal values. Specially, without a web service. Anyway, practically I never face this problem before. But I picked this post from CDNUG forum.

In this example I will show to how use ASP.NET AJAX NumericUpDownExtender to increase 0.25 and decrease 0.25 with two simple web methods.

FAQ00017_1

FAQ00017_2

Labels: ,

Thursday, January 3, 2008

What can I do with ScriptManager.LoadScriptsBeforeUI?

With ASP.NET AJAX you can have property called LoadScriptsBeforeUI. Oh, what is that…? Yes, it can’t do anything big. But worth to consider if you think about ASP.NET AJAX UI.

In our AJAX life you know some AJAX applications UI loads some fast but it takes few seconds to interact with client. On other hand some applications UI takes more times to load, but can interact with client as soon as it loads. So, with ASP.NET ASP.NET AJAX ScriptManager, you can choose what you want. It may be first load UI markup and then scripts or…

FAQ00003

If you set ScriptManager.LoadScriptsBeforeUI = True, then script load first and next UI markup. With this option UI will be handy when it loads.
If you set ScriptManager.LoadScriptsBeforeUI=False, then UI load first and next Script. With this, UI will load some fast but have to wait till script load.

FYI: LoadScriptsBeforeUI default value is TRUE.

Labels: ,