c Problem 5 of passing parameters to a webform page

Updated on technology 2024-02-08
15 answers
  1. Anonymous users2024-02-05

    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"***"

  2. Anonymous users2024-02-04

    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"]%>

  3. Anonymous users2024-02-03

    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?

  4. Anonymous users2024-02-02

    Get the passed parameters directly from the page;

    string id="aid"];

  5. Anonymous users2024-02-01

    1.Static variables are passed.

    2.The constructor passes a value. Transfer values.

  6. Anonymous users2024-01-31

    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.

  7. Anonymous users2024-01-30

    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.

  8. Anonymous users2024-01-29

    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"

  9. Anonymous users2024-01-28

    Add a form2 constructor.

    In form2, add :

    public form2(string textbox1)

  10. Anonymous users2024-01-27

    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.

  11. Anonymous users2024-01-26

    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.

  12. Anonymous users2024-01-25

    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.

  13. Anonymous users2024-01-24

    If you want to pass values, you can use databases, Windows queue services, WCF, named pipes, etc., depending on your specific needs.

  14. Anonymous users2024-01-23

    url pass the parameters you want.

  15. Anonymous users2024-01-22

    WebService WCF Named Pipes and Stuff Like That.

Related questions