GetOAuthToken 不弹窗,我放在Global.asax里的Application_Start可以弹窗,但是放在控制器里则不能弹窗,我需要弹窗获取token,
你放在控制器里面是post请求,返回的json格式。你要弹窗应该是html 或者重定向
你把代码放在视图里面试试