Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/374.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/260.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 在asp.net mvc操作中检查用户web3.eth.accounts[0]值_Javascript_C#_Asp.net_Web3_Metamask - Fatal编程技术网

Javascript 在asp.net mvc操作中检查用户web3.eth.accounts[0]值

Javascript 在asp.net mvc操作中检查用户web3.eth.accounts[0]值,javascript,c#,asp.net,web3,metamask,Javascript,C#,Asp.net,Web3,Metamask,如何使舒尔在我的MVC操作中传递的参数字符串地址当前等于js window.web3.eth.acccounts[0] public ActionResult myAction( string address) { if(address == // there should be check js window.web3.eth.acccounts[0]) { // other code } } 什么意思?这是一个简单的比较。。。有什么问题吗?嗨,我想让用户能够在我的asp.net网

如何使舒尔在我的MVC操作中传递的参数字符串地址当前等于js window.web3.eth.acccounts[0]

public ActionResult myAction( string address)
{
  if(address == // there should be check js window.web3.eth.acccounts[0])
{
   // other code
}
}

什么意思?这是一个简单的比较。。。有什么问题吗?嗨,我想让用户能够在我的asp.net网站上更改昵称。但我不能使用User.Identity来检查用户身份,因为我只是简单地检查用户是否登录到Metamask,而没有在我的网站上使用登录名或密码。因此,我需要一种方法来检查用户在当前时间登录到Metamask,并且在我的mvc操作中具有与昵称为的用户相同的地址。