How to assign Profile values?

前端 未结 10 741
别那么骄傲
别那么骄傲 2020-11-22 08:49

I don\'t know what I am missing, but I added Profile properties in the Web.config file but cannot access Profile.Item in the code or create a new profile.

10条回答
  •  轮回少年
    2020-11-22 09:19

    I was also running through the same issue. But instead of creating a class which inherits from ProfileBase, I used the HttpContext.

    Specify properties in web.config file as follows : - ProfilePropertyWeb.config

    Now, write the following code : -

    Code Behind Profile Properties

    Compile and run the code. You will get following output: -

    Output

提交回复
热议问题