将值从Js文件传递到C# [英] Passing value from Js file to C#
问题描述
大家好。
我有一些紧急而且重要的事情,我对一些非常愚蠢但非常重要的东西感到震惊。
我想知道从js文件传递一个值到aspx.cs文件
场景就像那个
我通过网址收到查询的详细信息
http://xyz.com /?host=www.12hello.com&user=devx@gmail.com&pass=12345&object=document_&id=220793710&fieldName=Document&fileName=happy.doc
我将这个从abc.com发布到xyz.com并附上所有变量
所以现在它发布到default.aspx页面并且能够看到值
我能够读取默认页面中的所有值....
现在主要问题是
我想得到一些变量(例如:User,Id,filename)到page two.aspx.cs和5 .aspx.cs
背后的原因是我想将相同的文件名传递给输出文件,其他正在发生的操作是two.aspx.cs和five.aspx.cs
如何我可以这样做,我该如何测试呢
PLease help
然后就这样做。 ..
http://xyz.com/two.aspx?host=www.12hello.com&user=devx@gmail.com&pass=12345&object=document_&id=220793710&fieldName=Document&fileName=happy.doc
Hello all
I have something urgent and important and I'm struck in something really silly but important.
I would like to know to pass a value from js file to aspx.cs file
The scenario is like that
I'm receiving details of the query through the the url
http://xyz.com/?host=www.12hello.com&user=devx@gmail.com&pass=12345&object=document_&id=220793710&fieldName=Document&fileName=happy.doc
I'm posting the this from abc.com to xyz.com with all the variables
So for now its posting to default.aspx page and able to see the values
I'm able to read all the values in default page....
NOW THE MAIN ISSUE IS
I would like to get some of the variables (e.g: User, Id, filename) to page two.aspx.cs and five.aspx.cs
The reason behind is I would like to pass the same filename to output file and other operations which are happening is two.aspx.cs and five.aspx.cs
HOW CAN I DO THAT and how can I test it
PLease help
Then do it like...
http://xyz.com/two.aspx?host=www.12hello.com&user=devx@gmail.com&pass=12345&object=document_&id=220793710&fieldName=Document&fileName=happy.doc
这篇关于将值从Js文件传递到C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!