1. Script Manager
2. Script Manager Proxy
3. Timer
4. Update Panel
5. Update Progress
I will discuss these in details one by one:
1. Script Manager
The ScriptManager control is central to AJAX functionality in ASP.NET. The control manages all ASP.NET AJAX resources on a page. This includes downloading Microsoft AJAX Library scripts to the browser and coordinating partial-page updates that are enabled by using UpdatePanel controls. In addition, the ScriptManager control enables you to do the following:
* Register script that is compatible with partial-page updates. In order to manage dependencies between your script and the core library, any script that you register is loaded after the Microsoft AJAX Library script.
* Specify whether release or debug scripts are sent to the browser.
* Provide access to Web service methods from script by registering Web services with the ScriptManager control.
* Provide access to ASP.NET authentication, role, and profile application services from client script by registering these services with the ScriptManager control.
* Enable culture-specific display of ECMAScript (JavaScript) Date, Number, and String functions in the browser.
* Access localization resources for embedded script files or for stand-alone script files by using the ResourceUICultures property of the ScriptReference control.
* Register server controls that implement the IExtenderControl or IScriptControl interfaces with the ScriptManager control so that script required by client components and behaviors is rendered.
When implementing Script Manager one has to remember that it should be placed before any control in the web-page. Further Using the ScriptManager Control with Master Pages, User Controls, and Other Child Components one has to remember that a page can contain only one ScriptManager control in its hierarchy. To register services and scripts for nested pages, user controls, or components when the parent page already has a ScriptManager control, use the ScriptManagerProxy control.
Microsoft also gives us the liberty of making our own scripts and using them via the script manager thus enabling to make our own library of scripts that suit our requirements.
2. Script Manager Proxy
Only one instance of the ScriptManager control can be added to the page. The page can include the control directly, or indirectly inside a nested component such as a user control, content page for a master page, or nested master page. In cases where a ScriptManager control is already on the page but a nested or parent component needs additional features of the ScriptManager control, the component can include a ScriptManagerProxy control. For example, the ScriptManagerProxy control enables you to add scripts and services that are specific to nested components.
3. Timer
This is the control with with most of the window programmers would be fimiliar. By implementing this in the webpage we can generate a request to the server from the client at specific time intervals which in turn would update he webpage from time to time. It updates anything that is present within the update panel.
4. Update Panel
It is a container that contains the controls on which the AJAX is to be implemented. All the controls within the update panel would be updated via AJAX implementation while the others would be done through post-back.
5. Update Progress
Many a times it is seen that even update panel takes a fraction of time to complete the request and response cycle. For that time being the end user does not know if updation operation is going on. To solve this we can use the Update progress control. In this we specify the template ,which can be any text or image, which will be shown whenever the update panel is fetching fresh values i.e. its in its request response cycle.
Example
Example for the above mentioned topics is as follows:
I have made a page where script manager control, update panel control, update progress control and timer control is used. The page consists of a textbox and a button. Whatever you write in the textbox, on clicking the button you get the length of the text entered. Now to simulate some processing on the server i have made a couple of nested loops that would execute for 3-4 seconds. This would fire the update progress control. Further there is a timer that would go to the server and bring the date-time stamp every 5 seconds. The screen shots of the coding is as follows:
The code behind is as follows:
1. When the application is run we see the following in the webpage:
2. When the timer control fires automatically after 5 seconds
3. When we write a text in the texbox and click the Calculate button... the request goes to the server and update progress control is shown.
4.After the processing at the server is complete the length of the text entered is shown.
Hence we see how easily we can implement the AJAX controls in ASP.NET.
Thanks jaivardhan for the update. Can you please give more examples of the above !
ReplyDeleteThanks jaivardhan for the example...
ReplyDeleteKeep posting stuff like this i really like it
ReplyDeletevery good link i like it. Thanks Jaivardhan Joshi
ReplyDeleteThanks for the support ! I will be coming up with new posts on other topics soon
ReplyDeleteGood point, I use Microsoft Ajax since it has the ability to customize server controls to include client capabilities.
ReplyDeletethe problem of data corruption in the files of specified format can be fixed by the export sql .mdf utility
ReplyDeleteI was searching on google and directed to this blog. I found it very informative. Great work, Keep it up.
ReplyDeletegreat! this is also good for those studying for MCTS Web exams.
ReplyDeletehope you share more.
I would like to appreciate your work for good accuracy and got informative knowledge from here.....................Please contact us for Oracle Fusion Financials Course Coaching in Hyderabad details in our Erptree Training Institute
ReplyDeleteUsually the blog you posted is very useful to us thanks for posting this blog..................Click here to find out more regarding Oracle OTM Training
ReplyDeleteThank you very much. The post was long, but I loved to read it till the last word. It was so nice blog and useful to Informatics learners.
ReplyDeleteSAP HANA Training in Dallas
SAP HANA Training in Dallas
I would like to thank you for the efforts you have made in writing this article. I am hoping the same best work from you in the future as well. Your write up is a fine example of it.
ReplyDeleteBest Oracle Fusion HCM Training in Hyderabad
thanks for sharing this article to us ,it is very nice article thanks for sharing this article to us,
ReplyDeletei got good info about this article thanks for sharing ..best regards.
MS Office institute in hyderabad
thanks for nice blog keep on sharing blogs if like read more visit it https://snowflakemasters.in/
ReplyDeletehttps://duckcreektraining.com/thanks for sharing nice blog
ReplyDeleteThank you very much. The post was long, but I loved to read it till the last word. It was so nice blog and useful to Informatics learners.
ReplyDeleteSakarya
ReplyDeleteKayseri
Van
Konya
Samsun
460FEJ
elazığ
ReplyDeleteerzincan
bayburt
tunceli
sakarya
WX18U
elazığ
ReplyDeletebilecik
kilis
sakarya
yozgat
32R
ankara parça eşya taşıma
ReplyDeletetakipçi satın al
antalya rent a car
antalya rent a car
ankara parça eşya taşıma
2BC4ZP
A1000
ReplyDeleteErzurum Lojistik
Karaman Parça Eşya Taşıma
Diyarbakır Lojistik
Kilis Evden Eve Nakliyat
Mardin Lojistik
C2445
ReplyDeleteEskişehir Şehir İçi Nakliyat
Ağrı Şehir İçi Nakliyat
Ünye Evden Eve Nakliyat
Kayseri Parça Eşya Taşıma
Yozgat Şehir İçi Nakliyat
Etlik Fayans Ustası
Bitcoin Nasıl Alınır
Ünye Oto Elektrik
Mardin Parça Eşya Taşıma
0C391
ReplyDeleteAğrı Şehir İçi Nakliyat
Tekirdağ Evden Eve Nakliyat
Pancakeswap Güvenilir mi
Mamak Parke Ustası
Eskişehir Evden Eve Nakliyat
Kayseri Lojistik
Çerkezköy Oto Boya
Hatay Lojistik
Kayseri Şehirler Arası Nakliyat
A55A0
ReplyDeletekonya ücretsiz görüntülü sohbet uygulamaları
rastgele görüntülü sohbet
kızlarla rastgele sohbet
sesli sohbet uygulamaları
urfa ücretsiz sohbet uygulamaları
nanytoo sohbet
muğla mobil sohbet sitesi
en iyi görüntülü sohbet uygulamaları
edirne bedava görüntülü sohbet
6E33D
ReplyDeleteOsmaniye Bedava Görüntülü Sohbet Sitesi
kayseri sohbet odaları
canlı görüntülü sohbet siteleri
diyarbakır en iyi ücretsiz görüntülü sohbet siteleri
Eskişehir Parasız Sohbet Siteleri
çanakkale mobil sohbet odaları
van görüntülü sohbet siteleri
canli goruntulu sohbet siteleri
bursa rastgele görüntülü sohbet uygulaması