小编sik*_*kha的帖子

如何在c#中获取代码背后的javascript值

我需要在c#中获取代码背后的javascript值.我知道我可以使用隐藏字段,但页面上没有用于回发的服务器控件.请告诉我如何在代码中获取代码.

这是我的代码:

<html>
<head>
<title>Facebook Get Logged in User Details UserName,Email,Profile Image</title>
    <script src="jquery-1.6.2.min.js" type="text/javascript"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
</head>
<body>
<script>
    // Load the SDK Asynchronously



    (function (d) {
        var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
        if (d.getElementById(id)) { return; }
        js = d.createElement('script'); js.id = id; js.async = true;
        js.src = "//connect.facebook.net/en_US/all.js";
        ref.parentNode.insertBefore(js, ref);
    } (document));

    // Init the SDK upon load
    window.fbAsyncInit = function () {
        FB.init({
            appId: 'APPID', // App ID
            channelUrl: '//' + window.location.hostname + …
Run Code Online (Sandbox Code Playgroud)

javascript c# asp.net ajax jquery

2
推荐指数
1
解决办法
2万
查看次数

标签 统计

ajax ×1

asp.net ×1

c# ×1

javascript ×1

jquery ×1