私はaspx(html)にこの機能を持っています
<body onload="NewPage2()">
<script type="text/javascript">
function NewPage2() {
var url = getUrlVars(url);
document.getElementById("HiddenField1").Value = url["access_token"];
}
</script>
<div class = content>
<form id="form1" runat="server">
<asp:HiddenField id="HiddenField1" runat="server" Value=""/>
</form>
CODE1: <asp:Label ID="Label1" runat="server" Text="Label" ForeColor="#CC0000" />
</div>
</div>
</body>
どうすれば、var(on jquery(html)) を aspx.cs の variableURL2 に取得できますか?
protected void Page_Load(object sender, EventArgs e)
{
string code = HiddenField1.Value;
Label1.Text = code;
saveToken(token, code);
}