-
Click on the karma, in the background button, the karma will turn to transfer value.
in page load().
It's best to judge.
string astr="";
if("bid"]+""!="")
astr="bid"];
That's it, with the value of astr, it's passed over"***"
-
What is a compiled page? If it's just that CS has been compiled and aspx hasn't, there's no difficulty. Wouldn't it be nice to add parameters to the link inside? The original one was replaced by ?bid=<%="aid"]%>
-
I don't think your problem is clearly described. If you say the page has already been compiled. Then you can only use js to implement parameter passing.
You mean put? aid=1312.
And then pass it on? bid=1312?
-
Get the passed parameters directly from the page;
string id="aid"];
-
1.Static variables are passed.
2.The constructor passes a value. Transfer values.
-
There are several ways to do this:
Use querystring
Use the session variable.
Use any of the above three ways to define a variable in one page, and then receive it in another page.
-
Are you WinForm or Webform
You don't describe it in enough detail, either of which can pass the value to the backend.
You can get the value of the control and save it to the database.
-
With is the best way, example:
There is a page that is transmitted.
On the page, take the parameters like this.
string strid=request["id"];strid will be equal to"111"
-
Add a form2 constructor.
In form2, add :
public form2(string textbox1)
-
Write the parameter as an object, you can try ilist, datatable, xml, or you can save the object to the session.
session("sssss") = objectobject object name.
It can also be placed in a cache object because the session has an expiration time.
Of course, if it's a web page, the easiest way to pass the value is get or post, get is what is behind the question mark in the browser's address bar, and post is inside the form.
-
Why can't I use a session? Build an arraylist and add them one by one. However, after the team is finished, the arraylist can be stuffed to the session.
-
Use the database, from to put the data into a table in the database, and the aspx page is read, or the aspx page is put and the from is read.
In short, it is more convenient and simple to use data.
-
If you want to pass values, you can use databases, Windows queue services, WCF, named pipes, etc., depending on your specific needs.
-
url pass the parameters you want.
-
WebService WCF Named Pipes and Stuff Like That.