Thursday 2 December 2021

Differences between ASP.NET and Client-Side Technologies / Client Side Scripting vs Server Side Scripting


Client-side refers to the browser and the machine running the browser. Server-side on the other

hand refers to a Web server.

क्लाइंट-साइड, ब्राउज़र और ब्राउज़र को चलाने वाली मशीन को संदर्भित करता है। दूसरी तरफ सर्वर-साइड वेब सर्वर को संदर्भित करता है।

Client-Side Scripting

Javascript and VBScript are generally used for Client-side scripting. Client-side scripting executes in the browser after the page is loaded. Using client-side scripting you can add some cool features to your page. Both, HTML and the script are together in the same file and the script is downloaded as part of the page which anyone can view. A client-side script runs only on a browser that supports scripting and specifically the scripting language that is used. Since the script is in the same file as the HTML and as it executes on the machine you use, the page may take longer time to download.


जावास्क्रिप्ट और वीबीस्क्रिप्ट आमतौर पर क्लाइंट-साइड स्क्रिप्टिंग के लिए उपयोग किए जाते हैं। क्लाइंट-साइड स्क्रिप्टिंग बेबपेज लोड होने के बाद ब्राउज़र में निष्पादित होती है। क्लाइंट-साइड स्क्रिप्टिंग का उपयोग करके आप अपने पेज में कुछ शानदार सुविधाएं जोड़ सकते हैं। HTML और स्क्रिप्ट दोनों एक ही फाइल में एक साथ हैं जिसे डाउनलोड भी किया जाता है और जिसे कोई भी देख सकता है। क्लाइंट-साइड स्क्रिप्ट केवल उस ब्राउज़र पर चलती है जिस पर स्क्रिप्टिंग और विशेष रूप से उपयोग की जाने वाली स्क्रिप्टिंग भाषा Allowed हैं। चूंकि क्‍लाइंट स्क्रिप्ट, HTML फ़ाइल में ही है और जैसे ही यह आपके द्वारा उपयोग की जाती हैं मशीन पर निष्पादित होती है, इस कारण कई बार बेब पेज डाउनलोड करने में अधिक समय लग सकता है।

 

Server-Side Scripting

ASP.NET is purely server-side technology. ASP.NET code executes on the server before it is

sent to the browser. The code that is sent back to the browser is pure HTML and not ASP.NET

code. Like client-side scripting, ASP.NET code is similar in a way that it allows you to write your

code alongside HTML. Unlike client-side scripting, ASP.NET code is executed on the server

and not in the browser. The script that you write alongside your HTML is not sent back to the

browser and that prevents others from stealing the code you developed.

ASP.NET विशुद्ध रूप से सर्वर-साइड तकनीक है। ASP.NET कोड ब्राउजर को भेजे जाने से पहले सर्वर पर निष्पादित होता है। ब्राउज़र को भेजा गया कोड HTML है न कि ASP.NET कोड। क्लाइंट-साइड स्क्रिप्टिंग की तरह ही ASP.NET कोड भी एचटीएमएल को साथ में लिखने की अनुमति प्रदान करता है। क्लाइंट-साइड स्क्रिप्टिंग के विपरीत, ASP.NET कोड सर्वर पर निष्पादित किया जाता है  न की ब्राउज़र में । HTML के साथ लिखी गई स्क्रिप्ट को ब्राउजर पर नहीं भेजा जाता है,  सर्वर साइड स्क्रिप्‍टिंग ब्राउज़र और दूसरों को आपके द्वारा विकसित कोड को चुराने से रोकता है।


No comments:

Post a Comment