Pass values from page to user control

前端 未结 5 1587
别那么骄傲
别那么骄傲 2021-02-14 07:21

I am storing name and last name in two labels in main page. I also have those values in a class (class doesnt do much but i am using them for future expansion). I have a user co

5条回答
  •  忘了有多久
    2021-02-14 08:01

    Step 1: You can expost the values as property and than you can make use of that easily.

    Step 2: To access your page from the user control you can make use of Parent property or may be some custome login to access the parent page and than write code to consume the property value.

提交回复
热议问题