System.Net.WebClient.OpenRead(... [英] System.Net.WebClient.OpenRead(...

查看:111
本文介绍了System.Net.WebClient.OpenRead(...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以告诉我System.Net.WebClient.OpenRead(Uri地址)在Web应用程序的客户端或服务器端执行吗?

Can any one tell me that System.Net.WebClient.OpenRead(Uri address) executes at client end or server end in web application ?

推荐答案

它执行在您运行代码的计算机上。



如果您询问要请求的网页内的代码,则呈现页面的任何服务器端代码将执行,但它不会执行客户端代码(javascript或其他)。客户端代码的执行取决于客户端执行。当您使用这样的低级请求请求页面时,您可以运行任何客户端代码。
It "executes" on the computer you run the code from.

If you are asking about code inside the webpage that you are requesting, any server-side code that renders the page will execute, but it will not execute client side code (javascript or whatever). The execution of the client side code is up to the client to execute. When you request the page using low-level requests like this, it would be up to you to run any client side code.


这篇关于System.Net.WebClient.OpenRead(...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆