Cleaning Up Old Anonymous ProfilesYou may wonder what is happening wit การแปล - Cleaning Up Old Anonymous ProfilesYou may wonder what is happening wit ไทย วิธีการพูด

Cleaning Up Old Anonymous ProfilesY

Cleaning Up Old Anonymous Profiles
You may wonder what is happening with an anonymous user’s profile when the associated user signs up for an account and becomes a registered user. The answer is: nothing. The old profile is discarded and the user gets a new profile that is associated with the registered account. Fortunately, this is easy to fix. Whenever a user changes from an anonymous to an authenticated user (that is, when she logs in), ASP.NET fi res the Profile_OnMigrateAnonymous event that you can handle. You handle this event in a Global.asax, which is used for code that handles application- or session-wide events as you’ve seen before. Inside an event handler for this event, you can access two profiles for the same user: the old, anonymous profile that is about to get detached from the user and the new profile that is associated with the user who is currently logging in. You can then copy over relevant data and delete the old user account and its related profile data. From then on, you deal with the new profile only. Although not used in the Planet Wrox website, this event handler is a perfect place to copy anonymous profile data from the old profile to the new one, as demonstrated by the following code:
0/5000
จาก: -
เป็น: -
ผลลัพธ์ (ไทย) 1: [สำเนา]
คัดลอก!
Cleaning Up Old Anonymous ProfilesYou may wonder what is happening with an anonymous user’s profile when the associated user signs up for an account and becomes a registered user. The answer is: nothing. The old profile is discarded and the user gets a new profile that is associated with the registered account. Fortunately, this is easy to fix. Whenever a user changes from an anonymous to an authenticated user (that is, when she logs in), ASP.NET fi res the Profile_OnMigrateAnonymous event that you can handle. You handle this event in a Global.asax, which is used for code that handles application- or session-wide events as you’ve seen before. Inside an event handler for this event, you can access two profiles for the same user: the old, anonymous profile that is about to get detached from the user and the new profile that is associated with the user who is currently logging in. You can then copy over relevant data and delete the old user account and its related profile data. From then on, you deal with the new profile only. Although not used in the Planet Wrox website, this event handler is a perfect place to copy anonymous profile data from the old profile to the new one, as demonstrated by the following code:
การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 2:[สำเนา]
คัดลอก!

การทำความสะอาดขึ้นโปรไฟล์เก่าที่ไม่เปิดเผยตัวคุณอาจสงสัยว่าสิ่งที่เกิดขึ้นกับผู้ใช้ที่ไม่ระบุชื่อรายละเอียดของสัญญาณเมื่อผู้ที่เกี่ยวข้องสำหรับบัญชีและกลายเป็นผู้ใช้ที่ลงทะเบียน คำตอบคือไม่มีอะไร โปรไฟล์เก่าจะถูกยกเลิกและผู้ใช้จะได้รับรายละเอียดใหม่ที่เชื่อมโยงกับบัญชีที่ลงทะเบียน โชคดีที่นี้เป็นเรื่องง่ายที่จะแก้ไข เมื่อใดก็ตามที่เปลี่ยนแปลงของผู้ใช้จากที่ไม่ระบุชื่อผู้ใช้รับรองความถูกต้อง (นั่นคือเมื่อเธอบันทึกใน) สาย ASP.NET res เหตุการณ์ Profile_OnMigrateAnonymous ว่าคุณสามารถจัดการ คุณจัดการกับเหตุการณ์นี้ใน Global.asax ซึ่งจะใช้รหัสที่จัดการเหตุการณ์โปรแกรมประยุกต์หรือเซสชั่นที่กว้างที่สุดเท่าที่คุณเคยเห็นมาก่อน ภายในตัวจัดการเหตุการณ์สำหรับเหตุการณ์นี้คุณสามารถเข้าถึงสองรูปแบบสำหรับผู้ใช้เดียวกันเก่ารายละเอียดที่ไม่ระบุชื่อที่เกี่ยวกับการได้รับการถอดออกจากผู้ใช้และรายใหม่ที่มีความเกี่ยวข้องกับผู้ใช้ที่อยู่ในขณะนี้เข้าสู่ระบบคุณสามารถ. คัดลอกไปแล้วข้อมูลที่เกี่ยวข้องและลบบัญชีผู้ใช้เก่าและข้อมูลรายละเอียดที่เกี่ยวข้อง จากนั้นให้คุณจัดการกับรายละเอียดใหม่เท่านั้น แม้ว่าจะไม่ได้นำมาใช้ในเว็บไซต์แพลนเน็ต Wrox, จัดการเหตุการณ์นี้เป็นสถานที่ที่สมบูรณ์แบบเพื่อคัดลอกข้อมูลรายละเอียดที่ไม่ระบุชื่อจากโปรไฟล์เก่าไปใหม่ที่แสดงให้เห็นโดยรหัสต่อไปนี้:
การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 3:[สำเนา]
คัดลอก!
ทำความสะอาดเก่าโปรไฟล์ไม่ระบุชื่อ
คุณอาจสงสัยว่าสิ่งที่เกิดขึ้นกับโปรไฟล์ผู้ใช้ที่ไม่ระบุชื่อเมื่อผู้ใช้ลงนามขึ้นสำหรับบัญชีที่เกี่ยวข้องและเป็นผู้ใช้ที่ลงทะเบียน ตอบ : ไม่มี ข้อมูลเก่าทิ้งและผู้ใช้จะได้รับข้อมูลใหม่ที่เกี่ยวข้องกับบัญชีผู้ใช้ที่ลงทะเบียน โชคดี , นี้ง่ายต่อการแก้ไขเมื่อใดก็ตามที่ผู้ใช้จะเปลี่ยนจากผู้ไม่ประสงค์ออกนามเป็นผู้ใช้สิทธิ์ ( คือตอนล็อกอิน ) , ASP.NET Fi RES ที่ profile_onmigrateanonymous เหตุการณ์ที่คุณสามารถจัดการ คุณจัดการกับเหตุการณ์นี้ใน global.asax ซึ่งใช้รหัสที่จัดการโปรแกรมช่วงกว้างหรือเหตุการณ์ที่คุณเคยเห็นมาก่อน ภายในงานจัดกิจกรรมนี้ คุณสามารถเข้าถึงสองโปรไฟล์สำหรับผู้ใช้เดียวกันเก่านิรนามโปรไฟล์ที่เป็นเรื่องเกี่ยวกับที่จะได้รับแยกออกจากผู้ใช้และโปรไฟล์ใหม่ที่สัมพันธ์กับผู้ใช้ที่กำลังเข้าสู่ระบบ จากนั้นคุณสามารถคัดลอกข้อมูลที่เกี่ยวข้อง และลบบัญชีผู้ใช้เก่าและของที่เกี่ยวข้อง ประวัติข้อมูล จากนั้น คุณจัดการกับรายใหม่เท่านั้น ถึงแม้ว่าจะไม่ใช้ในดาวเคราะห์ wrox เว็บไซต์งานนี้จัดเป็นสถานที่ที่สมบูรณ์แบบเพื่อคัดลอกข้อมูลโปรไฟล์โปรไฟล์ไม่ระบุชื่อจากเก่าไปใหม่ ดังที่แสดงโดยรหัสต่อไปนี้ :
การแปล กรุณารอสักครู่..
 
ภาษาอื่น ๆ
การสนับสนุนเครื่องมือแปลภาษา: กรีก, กันนาดา, กาลิเชียน, คลิงออน, คอร์สิกา, คาซัค, คาตาลัน, คินยารวันดา, คีร์กิซ, คุชราต, จอร์เจีย, จีน, จีนดั้งเดิม, ชวา, ชิเชวา, ซามัว, ซีบัวโน, ซุนดา, ซูลู, ญี่ปุ่น, ดัตช์, ตรวจหาภาษา, ตุรกี, ทมิฬ, ทาจิก, ทาทาร์, นอร์เวย์, บอสเนีย, บัลแกเรีย, บาสก์, ปัญจาป, ฝรั่งเศส, พาชตู, ฟริเชียน, ฟินแลนด์, ฟิลิปปินส์, ภาษาอินโดนีเซี, มองโกเลีย, มัลทีส, มาซีโดเนีย, มาราฐี, มาลากาซี, มาลายาลัม, มาเลย์, ม้ง, ยิดดิช, ยูเครน, รัสเซีย, ละติน, ลักเซมเบิร์ก, ลัตเวีย, ลาว, ลิทัวเนีย, สวาฮิลี, สวีเดน, สิงหล, สินธี, สเปน, สโลวัก, สโลวีเนีย, อังกฤษ, อัมฮาริก, อาร์เซอร์ไบจัน, อาร์เมเนีย, อาหรับ, อิกโบ, อิตาลี, อุยกูร์, อุสเบกิสถาน, อูรดู, ฮังการี, ฮัวซา, ฮาวาย, ฮินดี, ฮีบรู, เกลิกสกอต, เกาหลี, เขมร, เคิร์ด, เช็ก, เซอร์เบียน, เซโซโท, เดนมาร์ก, เตลูกู, เติร์กเมน, เนปาล, เบงกอล, เบลารุส, เปอร์เซีย, เมารี, เมียนมา (พม่า), เยอรมัน, เวลส์, เวียดนาม, เอสเปอแรนโต, เอสโทเนีย, เฮติครีโอล, แอฟริกา, แอลเบเนีย, โคซา, โครเอเชีย, โชนา, โซมาลี, โปรตุเกส, โปแลนด์, โยรูบา, โรมาเนีย, โอเดีย (โอริยา), ไทย, ไอซ์แลนด์, ไอร์แลนด์, การแปลภาษา.

Copyright ©2025 I Love Translation. All reserved.

E-mail: